![]() |
Robot Drifts when driving strait.
Now the robot is shipped I'm kind of tinkering with last years robot. This robot has some form of loss in the drive train on the left side and causes it to drift intermittently with the 2005 navigation code when driving strait. The encoders work but they don't seem to be used when driving strait. Anyone have some code I can try to adjust PWM's based on encoder counts?
|
Re: Robot Drifts when driving strait.
Quote:
Here is something our team was toying with...never got it finished and debugged totally...but if your using encoders this is a start for you. Code:
long drv_left_encoder; |
Re: Robot Drifts when driving strait.
Quote:
|
Re: Robot Drifts when driving strait.
We had a similar problem with last year's robot because one motor was on the wrong fuse thus causing the robot to drift.
|
Re: Robot Drifts when driving strait.
We've had a similar problem a bunch of times. I usually found it to simply be a lack of lubrication. If the robot's been sitting around for a long period of time the gearboxes may need to be greased. The drifting might be the result of one gearbox needing more lube than the other.
|
Re: Robot Drifts when driving strait.
Quote:
|
Re: Robot Drifts when driving strait.
I't uses a pair of drive motors. The same as this years robots use. Its just a single motor per wheel instead of 2per.
|
Re: Robot Drifts when driving strait.
The cmd_drive code doesn't attempt to make sure the wheels are turning at the same velocity, just that they turn the same number of ticks. Does the robot straighten up at the end?
If you have different amounts of wheel slip on the two sides counting encoder ticks won't help at all. Hope you guys did well at BAE. |
| All times are GMT -5. The time now is 04:40. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi