View Single Post
  #2   Spotlight this post!  
Unread 08-02-2015, 10:43
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: WPILib Mecanum Drive, PID and drift

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.
Reply With Quote