To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 7404
7403  |  7405
Subject: 
Re: c++
Newsgroups: 
lugnet.robotics
Date: 
Thu, 14 Oct 1999 19:29:24 GMT
Viewed: 
741 times
  
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 has 1 Reply:
  RE: c++
 
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 (...) (25 years ago, 15-Oct-99, to lugnet.robotics)

Message is in Reply To:
  c++
 
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. (...) (25 years ago, 13-Oct-99, to lugnet.robotics)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR