Quote:
Originally Posted by Pirate programe
Sorry for the undescriptive name, but there's no real way to describe this with my high-school math knowledge.
We've noticed that when our robot goes at a speed, and then moves in the opposite direction at the same speed, it starts tipping over. As such, we'd like the joystick, when it is set to a certain value (let's say 1), to slowly ramp up toward that value, instead of immediately going to it.
Any ideas?
|
Run your joystick commands through a rate-limit filter.
Do the LabVIEW equivalent of this:
Code:
change = joystick - limitedJoystick;
if (change>limit) change = limit;
else (if change<-limit) change = -limit;
limitedJoystick += change;
limit is the amount of change you will allow every iteration
limitedJoystick is the rate-limited joystick value you use to control your motors.