Quote:
Originally Posted by jls667
I would like to set up field-oriented control.
|
Are you using home-brew mec code, or WPILib robotdrive.java?
If the latter, mec cartesian has an input parameter for gyro. That gives you field-oriented control.
If the former, just grab the rotateVector code from WPIlib.