View Single Post
  #2   Spotlight this post!  
Unread 26-01-2013, 14:12
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,042
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: Set the rate of acceleration

Quote:
Originally Posted by BPtigers View Post
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


Reply With Quote