Go to Post Thinking can be uncomfortable, but I always think that it is beneficial. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2011, 18:00
Lakedaimon's Avatar
Lakedaimon Lakedaimon is offline
Registered User
FRC #3012 (Spartans)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2003
Location: Cypress Lakes HS, Katy, TX
Posts: 23
Lakedaimon is an unknown quantity at this point
cannot get fifth jaguar working

This is probably answered somewhere on the forum, but I couldn't find it.

We are using the DefaultRobot code, using four Jaguars to control four drive motors (using SpeedController). We are trying to add a fifth Jaguar to control a motor for our game piece manipulator.

In the DefaultRobot class we declare the fifth Jaguar as such -

Jaguar m_fifthMotor;

In teleopInit, we create the object with -

m_fifthMotor = new Jaguar(5);

Whenever this last line is not in, the four Jaguars for the drive system work fine. Whenever this last is compiled in, the four Jaguars blink while enabled, and thus do not work.

We don't see any errors on the debug output, and the cRio does not appear to be crashing.

What are we doing wrong?
__________________
Firmware is the most expensive thing in the universe. - Jack G. Ganssle
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2011, 18:16
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Post Re: cannot get fifth jaguar working

Dont know if this is your problem but last year we had trouble running more than 4 motors on a side car. The problem turned out to be an incomplete wiring connection(not enough contact with the wire). So check if all three Green LEDs are lit on the Digital Sidecar if not, redo the Wago connection with more wire contact to see if that solves your problem!

Hope that helps,
Jon
__________________
Expect the best, Prepare for the worst
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2011, 17:55
Lakedaimon's Avatar
Lakedaimon Lakedaimon is offline
Registered User
FRC #3012 (Spartans)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2003
Location: Cypress Lakes HS, Katy, TX
Posts: 23
Lakedaimon is an unknown quantity at this point
Re: cannot get fifth jaguar working

We had a wiring problem, the digital sidecar was not getting power from the distribution board. The 5v LED was the only LED lit, power was apparently leaking from somewhere else that was enough to run four motors, but not 5(?). Anyway, once the power was wired correctly, everything works fine. Thanks for the input!
__________________
Firmware is the most expensive thing in the universe. - Jack G. Ganssle
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2011, 22:36
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Re: cannot get fifth jaguar working

Do you have something else declared on the pwm port 5?

Is the code spitting out errors on the robot?

Do you see any error messages in the debug console?
Reply With Quote
  #5   Spotlight this post!  
Unread 14-02-2011, 19:03
ProgrammerMatt ProgrammerMatt is offline
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
ProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really nice
Re: cannot get fifth jaguar working

How are you controlling these jags? CAN or PWM?
Reply With Quote
Reply


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 13:31.

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