Quote:
Originally Posted by ElectricNoodle
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.