View Single Post
  #1   Spotlight this post!  
Unread 27-01-2011, 00:36
gouldm2001 gouldm2001 is offline
Registered User
FRC #2550
 
Join Date: Jan 2011
Location: US
Posts: 2
gouldm2001 is an unknown quantity at this point
4 Motor RobotDrive Errors

We are having a problem with this years RobotDrive. When using the four channel input constructor the motor controllers don't work. We are using four jaguars and when we deploy the below code, they never work. The jaguar status lights just blink when the code is reloaded.

We are instantiating a RobotDrive like this:

RobotDrive * drive;

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


and then in our main code:

drive->TankDrive(leftJoystick,rightJoystick);

HOWEVER,if re-compile with this:

drive = new RobotDrive(1,2);

The two jaguars and motors hooked up to channels one and two work.

Also using the example code that ships with WindRiver this year, we can get a RobotDrive instantiated like this working:

RobotDrive drive(1,2,3,4);


Has anyone else seen a bug like this? Are we doing something wrong?
Reply With Quote