|
Re: Robotbuilder c++ code dies in Test Mode
Still have problem with the most simple c++ program built with new Robot Builder (one generic subsystem with one motor actuator).
old robot builder
std::shared_ptr<SpeedController> RobotMap::subsystem1SpeedController1; // <<< this is ok
lw->AddActuator("Subsystem 1", "Speed Controller 1", (Talon&) subsystem1SpeedController1); // <<< this caused Test Mode to abort
new robot builder
static std::shared_ptr<SpeedController> subsystem1SpeedController1; // <<< this causes a build error
lw->AddActuator("Subsystem 1", "Speed Controller 1", std::static_pointer_cast<Talon>(subsystem1SpeedCon troller1)); // <<< this is OK
|