View Single Post
  #7   Spotlight this post!  
Unread 30-01-2014, 13:06
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: Acceleration Ramp Up Code

Quote:
Originally Posted by ElectricNoodle View Post
Actually yes I read through yesterday, and was interested in the "Slew Rate" and "Low Pass Filtering" sections ...Which of these options do you think is best?
From what you described in your original post, it sounds like you want the slew rate limiter.

In a text-based language, it would look something like 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 (e.g. every 20 milliseconds for TeleOp)

limitedJoystick is the rate-limited joystick value you use to control your motors.





Reply With Quote