if you want to code a fix, take the faster side and multply by something like 0.75.
sooo:
if (pwm11<127) //only for reverse
{ pwm11= (pwm11-127)*0.75 +127; }
that oughta work. i can never remember if pwm11 is left or right, you may have to change it. Let me know how it works.
Quote:
|
Originally Posted by xxmaddjxx
When we drive forward it drives relatively straight. Backwards however it veers of to the left pretty drastically.
Any ideas?
In the code (we are usign FIRST Drivetrain) we set one set of motors to (254-p1_y) because motors are on opposite sides.
We re-calibrated speed controllers but that didnt help either.
Any suggestions welcome.
|