|
Re: Can't deploy code to robot
Quote:
Originally Posted by cbf
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)
|