View Single Post
  #2   Spotlight this post!  
Unread 15-02-2012, 20:14
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Damping the joystick at 1

Quote:
Originally Posted by Pirate programe View Post
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.


Last edited by Ether : 15-02-2012 at 20:42.
Reply With Quote