
13-02-2006, 09:57
|
 |
 |
Head of Electronics
AKA: Kevin F.
 FRC #1596 (Twin Saults International Instigators)
Team Role: Electrical
|
|
Join Date: Feb 2005
Rookie Year: 2005
Location: CANADA
Posts: 252
|
|
|
Re: Backwards motor
yes reversing output wires is easiest for coding, then to compensate for bias, drive the robot using pure code (no joystick) with pwm1 being left and pwm2 being right motors...
code:
pwm01 = 175;
pwm02 = 175;
then see if the robot pulls to the left or the right... if so adjust the numbers until it drives straight... you might end up with 175:180 .. then take the difference (5) and add it automatically to the drive code (pwm02 = p2_y +5) so it will send the joysticks value to the pwm but add 5 to compensate for bias.
or for somethign more complicated, use a percentage (as you drive faster add more to the joystick to compensate)
hope that helps
__________________
2005 GLR: 12th/58 Seed, Aliance: 1596, 910, 1447 (Semi Finalists) Website, Rookie All Star, Highest Rookie Seed, and 2 Peer Awards, my BIG thank you thread, PLEASE READ
2005 GTR: 11th/66 Seed, Aliance: 703, 1596, 1680 (Semi Finalists) Highest Rookie Seed & 1 Peer Awards
2005 Championship (Galileo): 36th/86 Seed Highest Galileo Match Score: 123:7 Thanks 447 and 121
2006 Website (Totally Revamped):Instigators1596.com
2006 GLR: 31st/61 Seed, Aliance: 835, 1213, 1596 (Quarter Finalists) Spirit & 3 peer awards, THX!
2006 Waterloo: 7th/31 Seed, Aliance: 1219, 1596, 912 (Semi Finalists) Spirit & 2 peer awards, THX!
2006 Waterloo: Aliance: 1596, 1680, 1114 Higest Match Score: (Q22) 128|32
|