View Single Post
  #5   Spotlight this post!  
Unread 08-02-2015, 11:51
SteveS's Avatar
SteveS SteveS is offline
Registered User
FRC #2594
 
Join Date: Jan 2015
Rookie Year: 2007
Location: Idaho
Posts: 5
SteveS is an unknown quantity at this point
Re: WPILib Mecanum Drive, PID and drift

Quote:
Originally Posted by RufflesRidge View Post
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?
Reply With Quote