View Single Post
  #8   Spotlight this post!  
Unread 12-01-2011, 15:45
rrossbach rrossbach is offline
Registered User
AKA: Ron R
FRC #2607 (RoboVikings)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2008
Location: Warrington PA
Posts: 90
rrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to behold
Re: Updated CAN Jaguar Issue

Quote:
Originally Posted by Alexander Meyer View Post
Quote:
Originally Posted by rrossbach View Post
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.
Whoops, missed your post. Our code gives up without retrying--that's a good idea. I'll test that when I get there today.

Also, thanks for the hints, drakesword.
At the risk of stating the obvious - 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
__________________

FIRST Mid-Atlantic Volunteer
FRC Team #2607 Mentor
Reply With Quote