Quote:
Originally Posted by BPtigers
How can I set the rate of acceleration so when I drive the robot forward it doesn't do a wheeling all the time. My teammates are young and like to hit the joystick hard. I don't want to limit the max speed, but rather set a rate of acceleration so it's a nice slow increase in speed. A visual would be awesome I'm a newbie 
|
What you want is a rate limit on your joystick command.
You want the LabVIEW equivalent of something like this:
Code:
o = joystick;
if (o > op+d) o = op+d;
else if (o < op-d) o = op-d;
op = o;
... where
"joystick" is the present value of the joystick command
"o" is the output to the motor controller
"op" is the previous output to the motor controller
"d" is the maximum change you want to allow each iteration