Go to Post Mr.Lavery You Make My Day - Rohith Surampudi [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 26-03-2014, 16:45
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Kinect, cRIO crashes, and RetVal 3

We've been having a few issues getting our kinect code (in Java) and cRIO to work properly this year. The first issue we had was when our code accidentally called the cancel() method of a command that had not yet been instantiated. Before we got the usual NullPointerException and "Robots don't quit", the robot locked up and continued to leave all outputs in the state they were in when the error happened. As the robot uncontrollably drove forward for about 2 seconds, it printed the cryptic error message "RetVal: 3" several hundred times, then stopped and printed the stack trace. All motor control outputs were disabled, but relays remained on.

After fixing the mistake, we thought we resolved the problem, but we again experienced the RetVal: 3 message again, which appeared in netconsole about 10 times, and lost communication with the robot. This happened several more times throughout the night, and the cRIO boot time began to increase after each code change. Reimaging did not solve the problem.

Our kinect code creates a kinect stick, then calls the getY() method on that KinectStick. The only time we read values from the Kinect are during the disabledPeriodic method, but all crashes happened when the robot was teleop enabled.
Reply With Quote
  #2   Spotlight this post!  
Unread 26-03-2014, 17:02
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,565
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: Kinect, cRIO crashes, and RetVal 3

Are you using the Cypress PSOC?
Reply With Quote
  #3   Spotlight this post!  
Unread 26-03-2014, 17:13
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: Kinect, cRIO crashes, and RetVal 3

Quote:
Originally Posted by Joe Ross View Post
Are you using the Cypress PSOC?
No. I think the problem has something to do with the KinectStick object. The problem appeared when it was added, and I haven't seen it crash when the KinectStick was removed.
Reply With Quote
  #4   Spotlight this post!  
Unread 26-03-2014, 17:31
magnets's Avatar
magnets magnets is offline
Registered User
no team
 
Join Date: Jun 2013
Rookie Year: 2012
Location: United States
Posts: 748
magnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond repute
Re: Kinect, cRIO crashes, and RetVal 3

IIRC, in 2012 teams solved these kinect problems by plugging in a cypress i/o board and setting it to advanced mode.

The kinect code (and way over complicated driver station communication code) is somewhat of a disaster. We've seen our fair share of random communication issues with even the sample software. Looking through the WPI source, they've left a few interesting comments, like "//temporary hack for 241", which I'm sure made sense to the person writing the software at the time, but doesn't really help.

The issue is with the mystery method "getDynamicControlDataFn.call4() , which returns a mystery value of three (not 0, 1, 2 that is shown in the comment).
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 03:48.

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