Go to Post If you have an opinion on something, it often says more about you than it does that thing. - JVN [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 25-01-2013, 22:06
Negative 9 Negative 9 is offline
Registered User
FRC #0611
 
Join Date: Dec 2012
Location: Mclean, VA
Posts: 46
Negative 9 is an unknown quantity at this point
Issue using code w/ multiple classes

So today we finally reimaged our cRIO to the latest v47 Java image and got a chance to compile our code.

Originally our code had two classes, one being the usual main class that all teams would be using to control their robots and the other being a custom DriveTrain class our lead programmer wrote to handle our Mecanum Drive.

When we tested our code 3 of the 4 jags were not initialized. The 4th jag that was initialized would not give input to the motor it was connected to. In troubleshooting we found that only the port on the Digital Sidecar that the 4th jag seemed to be initializing its respect jaguar. We tested all of our jags on that port and they all got initialized, but still would not take input. At that point, we swapped sidecars and the same issue still popped up.

Then we figured that it must have been something in the code. We implemented the same algorithms in the custom DriveTrain class in a single class and somehow everything seemed to work as it should. The thing that bugs me about all this is that one port on the Digital Sidecar was working with the multiple classes and I have absolutely no idea why that would be the case.

Any ideas on why that may have been the case? Is there something about how FRC Java supports classes that I'm missing here?
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 08:27.

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