View Single Post
  #10   Spotlight this post!  
Unread 09-02-2011, 11:17
Ben_R_R's Avatar
Ben_R_R Ben_R_R is offline
Assistant Programing Mentor
FRC #2194 (Fondy Fire)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: WI
Posts: 21
Ben_R_R is an unknown quantity at this point
Re: downloading code on to robot difficulty

Solution to the original problem in case anyone else has this problem:

Check if you are declaring any new RobotDrive objects. If I recall the default code robot drive takes 4 PWM channels as arguments, but it will work if you are running the motors off the first 2 PWM channels. If you are only using 2 PWMs to run your motors, you can free up the extra channels like so:

Find this line:

m_robotDrive = new RobotDrive(1, 3, 2, 4);

Change to:

m_robotDrive = new RobotDrive(1, 2);

See if that helps.

@LiquidMagik

check along the same lines as above. Make sure none of the other objects are using the digital channel 1. If you can't find anything, see if the problem goes away when you change channels.
__________________
2194 Alumni and Mentor
Reply With Quote