View Single Post
  #11   Spotlight this post!  
Unread 05-02-2013, 15:55
andrew paradis andrew paradis is offline
Registered User
FRC #4976
 
Join Date: Jan 2013
Location: boston, ma
Posts: 1
andrew paradis is an unknown quantity at this point
Re: Set the rate of acceleration

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


where in labview would i put this
Reply With Quote