|
Re: Vex Programming
I have written a position control PID function using a pot for feedback. It models almost exactly what we will be using in FRC. Currently I am modifying the function to work with as many axis's as needed without having to duplicate the section of code for each axis. Just pass the arguments to it for each PWM you want to control. I've included a flag to indicate when the damping feature kicks in, more to prove it works than anything else.
|