Go to Post I'm not certain that I agree with me on this reasoning, either. - Richard Wallace [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 13 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #7   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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 17:38.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi