View Single Post
  #2   Spotlight this post!  
Unread 07-02-2016, 15:48
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: roboRio Comm lost Resetting VI: DS UI.vi

I can duplicate the robot crashing with wait due to throwing an IllegalMonitorStateException, but not the DS.

In iterative (or command) your code shouldn't be calling a wait or Timer.delay unless it's in it's own thread. Otherwise it will block communication with the DS. Use a state machine instead.

It's hard to speculate why your wait code is being called without seeing the code.
Reply With Quote