View Single Post
  #9   Spotlight this post!  
Unread 14-04-2015, 19:32
Whippet's Avatar
Whippet Whippet is offline
MIT Class of 2020
AKA: Luis Trueba
FRC #4301 (New Tech Narcissists)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cambridge, MA
Posts: 1,186
Whippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond repute
Send a message via Yahoo to Whippet
Re: Can't deploy code to robot

Quote:
Originally Posted by cbf View Post
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..
Yeah, that was the problem.
__________________
2010: FRC 3043, Build Assistant
2011: FRC 3043, Head of Minibot subteam; FLL 12762, Team Captain
2012: FRC 3043, Electrical; FLL 12762, Team Captain; FTC 5670, Team Captain
2013: FRC 4301, Electrical, Team Co-Captain
2014: FRC 4301, Electrical/Programming, Team Co-Captain
2015: FRC 4301, Electrical/Programming, Team Captain
2016: FRC 4301, Chief Technical Officer; FTC 10860, 10861, and 11004: Mentor. Winner, Hub City Regional (3310 & 4063)