Go to Post How do You Chiefdelphi? :cool: - SpaceOsc [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 02-18-2012, 08:59 PM
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
 


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 07:42 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