Go to Post I am a firm believer that there is no model that can be transplanted/copied from one team to another and have the same level of success. There just isn't a formula for it. The mindset you should have is: "I know I have made a positive impact on my community". - tim-tim [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 01-30-2015, 07:05 PM
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,547
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: Remote command failed with exit status 1

Quote:
Originally Posted by Whippet View Post
I got the following message in the DS message window:

Code:
 ERROR Unhandled exception: edu.wpi.first.wpilibj.tables.TableKeyNotDefinedException: Unkown Table Key: /SmartDashboard/Forward Time at [edu.wpi.first.wpilibj.networktables2.NetworkTableNode.getDouble(NetworkTableNode.java:51), edu.wpi.first.wpilibj.networktables.NetworkTable.getNumber(NetworkTable.java:294), edu.wpi.first.wpilibj.smartdashboard.SmartDashboard.getNumber(SmartDashboard.java:144), org.usfirst.frc.team4301.robot.Robot.disabled(Robot.java:90), edu.wpi.first.wpilibj.SampleRobot.startCompetition(SampleRobot.java:126), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:234)]
What are we doing wrong?
This is telling you that your code is crashing on line 90 because the SmartDashboard value you are getting doesn't exist. You can either surround those gets by try/catch, or add a default value like you used other places.
Reply With Quote
 


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 08:16 AM.

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