Go to Post Teams whose goal is to play on Einstein think about strategy differently from teams whose goal is to be selected for an alliance at a district event. - alopex_rex [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2016, 10:33
ksanger's Avatar
ksanger ksanger is offline
Registered User
FRC #0211 (MaK)
 
Join Date: Mar 2010
Rookie Year: 2010
Location: Rochester NY
Posts: 62
ksanger is on a distinguished road
roboRio Comm lost Resetting VI: DS UI.vi

I'm having a weird problem with our Java code. We've coded a simple robot with an Arms class. Our program errors out on a method that includes a wait() statement. However the wait() statement should not be called as we've commented out the method call in the teleopPeriodic(). Plus it was being called by hitting button 8 on the joystick, which we did not do.

Debug on driverstation shows that the buttons work correctly.

After the program crashes we have a window show up on the desktop stating "Resetting VI: DS UL.vi". We can not close this window. We have no communications to the roborio. Rebooting the roborio does not bring communications back.

We are on win 8.1. 64 bit.

Any suggestions would be welcome.

Thanks
Reply With Quote
  #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,572
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
  #3   Spotlight this post!  
Unread 08-02-2016, 18:10
ksanger's Avatar
ksanger ksanger is offline
Registered User
FRC #0211 (MaK)
 
Join Date: Mar 2010
Rookie Year: 2010
Location: Rochester NY
Posts: 62
ksanger is on a distinguished road
Re: roboRio Comm lost Resetting VI: DS UI.vi

Thank you;

We did finally figure out to use a timer and timer.delay() instead. I do not remember if the last roboRio Comm lost Resetting VI: DS UI.vi occurred before we made that change though.
Reply With Quote
Reply


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 10:53.

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