Subject:
|
RE: c++
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Fri, 15 Oct 1999 03:40:35 GMT
|
Original-From:
|
Pedram Amini <PAMINI@TCSsaynotospam.TULANE.EDU>
|
Viewed:
|
881 times
|
| |
| |
That would not make the motion any smoother. Granted (yes it is obvious)
that it would make the shuting down of the motors smoother it still does not
have the desired effect. The solution I believe is somehow coding it so that
as long as the button is pressed the motor is on and when its released
either the motor turns off or floats. I've implemented it in JavaScript for
example using an embedded ActiveX control and the OnMouseDown() OnMouseUp()
functions. I know this question may be better suited for a c++ mailing list,
but any help is greatly appreciated.
Pedram
-----Original Message-----
From: news-gateway@lugnet.com [mailto:news-gateway@lugnet.com]On Behalf
Of Søren Bak
Sent: Thursday, October 14, 1999 3:29 PM
To: lego-robotics@crynwr.com
Subject: Re: c++
In lugnet.robotics, lego-robotics@crynwr.com (Pedram Amini) writes:
> I am coding a program that communicates with the RCX, and everything seems
> to be working. However, I have come across one problem. I have a set of
> buttons that control the movement of the motors. What I am trying to do is
> smooth out the movement. For example in RCXcc's joystick panel the motor is
> on so long as the mouse button is pressed on the appropriate button, when
> the mouse is released the motor turns off. How can I incorporate this smooth
> motion?
>
> Thanks
>
> Pedram
It depends...
One solution is to let the motor float.
Another and (I think) obvious solution is to gradually decrease the motor
speed
by calling SetMotorSpeed (or whatever you call that function) repeatedly
with a
decreasing speed value.
Søren
|
|
Message is in Reply To:
| | Re: c++
|
| (...) It depends... One solution is to let the motor float. Another and (I think) obvious solution is to gradually decrease the motor speed by calling SetMotorSpeed (or whatever you call that function) repeatedly with a decreasing speed value. Søren (25 years ago, 14-Oct-99, to lugnet.robotics)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|