View Single Post
  #12   Spotlight this post!  
Unread 08-02-2006, 23:21
Donut Donut is online now
The Arizona Mentor
AKA: Andrew
FRC #2662 (RoboKrew)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Goodyear, AZ
Posts: 1,289
Donut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond repute
Re: Robot doesn't drive straight

Well, we found part of the problem at least. We were using last year's drive code, and missed a part of the code that added 5 to the joystick value before it was given to the motors for no documented reason. We are using a one-joystick mixing system, and when the x-axis values were fed through, this caused one pwm value to decrease by 5 while the other increased by 5, throwing our motors out of sync by 10 pwm values at all times.

We've also reversed the wires from the victors to the motors on one side, so that we are sending the same pwm to all 4 motors, in case the victors or motors respond better to certain pwm values (high rather than low or vice versa).

We have not tested the motors yet since we made the programming fix, hopefully the problem should be solved tommorow. We have been testing our robot off the ground on a crate. I don't know about the 40%, that's what bush was having a problem with.