Go to Post Is any robot ever actually done? - BlondeNerd [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-27-2011, 12:36 AM
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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:00 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi