I'm not sure how to add that code in.
Code:
change = joystick - limitedJoystick;
if (change>limit) change = limit;
else (if change<-limit) change = -limit;
limitedJoystick += change;
My idea is that just have limitedJoystick created as a joystick in slot 3 (a virtual joystick). Then I basically take the above code and put it right before my robotdrive (which calls the fake limitedJoystick). But it is not working (I didn't suspect it to) even after I created change/limit as a double.
Any help would be appreciated, I would like to get the slew rate limiter tested as soon as possible so it either fixes the issue or we need to try something mechanical (Since the mechs won't do anything to fix it if they think it can be fixed through software).