View Single Post
  #2   Spotlight this post!  
Unread 02-17-2005, 10:06 PM
JoshJ JoshJ is offline
Registered User
#0316 (LuNaTeCs)
Team Role: College Student
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Salem County
Posts: 44
JoshJ is on a distinguished road
Send a message via AIM to JoshJ
Re: Robot veers left when driving backwards!

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.

Last edited by JoshJ : 02-18-2005 at 06:24 PM.