View Single Post
  #1   Spotlight this post!  
Unread 08-02-2015, 10:49
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: WPILib Mecanum Drive, PID and drift

Quote:
Originally Posted by SteveS View Post
when we try to drive straight forward, our robot drifts to the right.
Do you mean like this? or like this? A gyro can be used to correct the second one, but the first one not so much.

Make sure you calibrate your motor controllers so that there is no unintended strafe or rotate command being given when you are trying to drive straight.

Try temporarily zeroing-out the strafe and rotate commands in software so that you can command a truly pure forward command and see if that affects the vehicle behavior. If it does, it may mean you are getting unintended strafe and/or rotate command when you don't want it. If so, you could add deadband, or change the driver interface to separate the commands.


Attached Thumbnails
Click image for larger version

Name:	strafe drift.jpg
Views:	97
Size:	92.1 KB
ID:	18217  Click image for larger version

Name:	rotate drift.jpg
Views:	81
Size:	136.0 KB
ID:	18218  

Last edited by Ether : 08-02-2015 at 10:56.
Reply With Quote