|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Updated CAN Jaguar Issue
Hey y'all! Question.. (correct me if this should go in the Java section)
During the offseason, our team got an old swerve chassis up and running with five black jags hooked up to the cRio via the serial interface. We programmed the whole setup using Java. After kickoff, we moved the controller board to a new prototype chassis--all CAN and encoder wiring stayed exactly the same. We then updated: 1) cRio -> image v25, with black jag serial plugin selected 2) Driver station 3) Black jags -> firmware version 92 4) Netbeans plugins Now, all our code (which is also exactly the same) fails at jag initialization with an UncleanStatusException. In the past, this problem had to do with a low battery, but we hooked up a fully charged one and the problem still persists. We also tested the jags with BDC-COMM v92, and they work perfectly. Is there anything else that needs to be updated/changed to get these working? |
|
#2
|
|||||
|
|||||
|
Re: Updated CAN Jaguar Issue
Please excuse my unhelpful and indeed useless post in advance, and PLEASE do not follow this advice. Thank you.
Wash the jaguars so they are clean again. ![]() |
|
#3
|
|||
|
|||
|
Re: Updated CAN Jaguar Issue
We tried that, but it resulted in a WetStatusException; we let them dry, but apparently they got dirty again..
|
|
#4
|
|||||
|
|||||
|
Re: Updated CAN Jaguar Issue
Time to go home, Don.
|
|
#5
|
|||
|
|||
|
Re: Updated CAN Jaguar Issue
Unclean can be caused by multiple issues. When we first dabbled in it we cam across three. Cant recall the numbers but one was that the jag plugin wasn't loaded. One was because one of the students loaded the serial plugin and the 2can plugin. The last error was because there was a short on the can bus (particularly the serial plug terminating resistor)
So to summerize ... Check your can network Check to make sure you have added the plugin to the cRio Check that it is loading Make sure you don't have both plugins loaded |
|
#6
|
|||
|
|||
|
Re: Updated CAN Jaguar Issue
Quote:
In any case, we solved it by wrapping the constructors in a try block, and putting that in a loop so that we kept retrying the initialization until successful. The first Jag would occasionally have to be tried a couple of times before success. - Ron Team #2607 controls mentor |
|
#7
|
|||
|
|||
|
Re: Updated CAN Jaguar Issue
Quote:
Also, thanks for the hints, drakesword. |
|
#8
|
|||
|
|||
|
Re: Updated CAN Jaguar Issue
Quote:
- of course give the loop a max number of retries....that way if there is something else going on and it never succeeds, you'll be able to see that rather than just continuing to try indefinitely.....- Ron Team #2607 controls mentor |
|
#9
|
|||
|
|||
|
Re: Updated CAN Jaguar Issue
We would also advise that you run PWM cables to your jags so if the CANBUS goes down you can still control your motors. Just have a reduced functionality mode.
|
|
#10
|
|||
|
|||
|
Re: Updated CAN Jaguar Issue
Quote:
Quote:
|
|
#11
|
|||
|
|||
|
Re: Updated CAN Jaguar Issue
Alright, I tried looping the Jag initialization in Java until the exception went away..we let it go for about a minute then figured it wasn't going to fix anything. We reflashed the cRio for C++, wrote some test code, loaded it, and voila! Working robot. We figured all our problems were solved, shut off the robot, and continued where we left off. BUT..
..next time we powered up, we got the same exception. Drat. We checked the code, redeployed, and still nothing. We rebooted via the driver station a couple more times..and the third or fourth time, it worked. Weird. It continued functioning well for about an hour through numerous code changes/redeploys/reboots, then crapped out on us again. We hard rebooted via the breaker, then rebooted twice via the driver station, and we had control again. So..we're still scratching our heads. Any ideas? |
|
#12
|
|||
|
|||
|
Re: Updated CAN Jaguar Issue
And all of this was while using C++?
Can you try power-cycling the Jags in the case where it fails? I'd like to identify if the jags that stop responding or what. Thanks, -Joe |
|
#13
|
|||
|
|||
|
Re: Updated CAN Jaguar Issue
Quote:
We tried that multiple times, and it never worked. The only time it worked is when we soft-rebooted the cRio a couple times after a power cycle. |
|
#14
|
|||
|
|||
|
Re: Updated CAN Jaguar Issue
Please double check your termination and wiring.
|
|
#15
|
|||
|
|||
|
Re: Updated CAN Jaguar Issue
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|