Quote:
Originally Posted by RufflesRidge
Source code can be found here (see the note on the project home page): https://usfirst.collab.net/sf/projects/wpilib/
One, often used, way of implementing a rotation PID using a gyro is to put it between the joystick and the rotation input of the RobotDrive mecanum method. Use the joystick to command changes in the angular setpoint and use the output of the PID as the rotation input of the mecanum drive method.
|
Thank you for the source code link!
As I understand the PIDController class, the output (Joystick class) must have a PIDOutput member or derived from that class. Joystick has neither. How would you implement that?