View Single Post
  #4   Spotlight this post!  
Unread 30-01-2015, 19:05
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,586
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