View Single Post
  #9   Spotlight this post!  
Unread 14-04-2015, 17:25
cbf cbf is offline
Registered User
FRC #2877
 
Join Date: Feb 2012
Location: Newton, MA
Posts: 73
cbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nice
Re: Can't deploy code to robot

Quote:
Originally Posted by Whippet View Post
We had the same issue, removing any SmartDashboard references fixed it.
Were you trying to do an autonomous selector on the SmartDashboard?

Because this code would cause our robot to crash in autonomous:
Code:
	SmartDashboard::PutData("AutoCommand1Can", autoCommandMoveToZone); 
	SmartDashboard::PutData("AutoCommand1Can", autoCommand1Can); 
 	SmartDashboard::PutData("AutoCommand1Can", autoCommand1Can1Tote);
The problem was buried deep in the NetworkTables code. I believe one of the STL mapping classes would return a null pointer on an attempt to add a duplicate key to the map, and the code wasn't checking for that.

I've been meaning to report it to the WPILib people, but I've been kind of busy..