Go to Post Underwater basket weaving -- it's a water game, and we can go from "STEM" to "STEAM." - michael.saxon [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 18-02-2012, 20:59
Arnatious Arnatious is offline
Lead Programmer/Requisition Officer
AKA: Ted Kern
FRC #0988 (Team Revolution)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Las Vegas
Posts: 2
Arnatious is an unknown quantity at this point
Initializing more than 4 Jaguar/Victor objects causing ALL to blink yellow

So we've run into a problem after combining our control systems. Working independently, every Jaguar/Victor works, the programming works, etc. However, if we, in our programming, have more than 4 total Jaguars/victors, in or out of robotDrive 's (we are using java), upon Enabling the bot, all Jaguars/Victors flash yellow the same way as if the bot was disabled.

Commenting out the creation of the new objects (keeping the reference variables is okay) allows the robot to run fine, and the 4 jaguars/victors can be in ANY slot on any of our sidecars, as long as there are 4 or less, the robot works. Unfortunately, we require AT LEAST 7 to operate our robot.

Code : http://pastebin.com/bKUaVvin

Our setup is 7 jaguars hooked up to the sidecar with PWM's and into 4 CIM motors, 2 window motors, and a Fisher-Price motor. We have since attempted swapping them for Victors, just in case, but have had no luck.

Steps we've taken to troubleshoot
1: New sidecar
2: Multiple sidecars
3: New 9403 module
4: Used both ribbon (reconstructed) and old cables
5: Tried to load code written by another team for us
6: Reimaged cRio
7: Reset/recalibrated jaguars
8: Used different combinations of jaguars/victors
9: Treated jaguars as victors and victors as jaguars
10: Paired up motors in different drives regardless of whether they are paired or not
11: Unplugged the motor controllers that are not being used (they CAN be plugged in while the object initialization is commented out, it works, its just related to them being initialized in the programming).
among others

Any help is GREATLY appreciated. We are at a loss as to why this is happening. As far as I can see our best bet may be swapping to C++ (which I as the only programmer dislike) or Labview (which I have no clue how to use and would rather avoid).
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2012, 22:35
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Initializing more than 4 Jaguar/Victor objects causing ALL to blink yellow

It sounds like your Digital Sidecar needs to be powered. Check the power LEDs, then check your power wiring.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2012, 13:34
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,979
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Initializing more than 4 Jaguar/Victor objects causing ALL to blink yellow

To amplify on Eric'c comments: Check the 12 volt power going IN to the digital sidecar. It is probably missing.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #4   Spotlight this post!  
Unread 21-02-2012, 19:26
Arnatious Arnatious is offline
Lead Programmer/Requisition Officer
AKA: Ted Kern
FRC #0988 (Team Revolution)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Las Vegas
Posts: 2
Arnatious is an unknown quantity at this point
Solved!

To both of you who helped - thank you! The one thing we overlooked was of course the one thing that caused the problem.
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 09:54.

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