View Single Post
  #1   Spotlight this post!  
Unread 01-31-2016, 04:47 PM
rod@3711 rod@3711 is offline
Registered User
AKA: rod nelson
FRC #3711 (Iron Mustangs)
Team Role: Mentor
 
Join Date: May 2014
Rookie Year: 2014
Location: Trout Lake, WA
Posts: 64
rod@3711 is an unknown quantity at this point
Smart Dashboard in Test Mode

Sometimes I feel we are the only people using RobotBuilder to generate C++ code, then SmartDashboard to test motors and sensors in Test Mode.

If I make a simple subsystem with 2 old style talon speed controllers and use the default names, I get the following code in robotmap.cpp.

Quote:
subsystem1SpeedController1.reset(new Talon(0));
lw->AddActuator("Subsystem 1", "Speed Controller 1", std::static_pointer_cast<Talon>(subsystem1SpeedCon troller1));

subsystem1SpeedController2.reset(new Talon(1));
lw->AddActuator("Subsystem 1", "Speed Controller 2", std::static_pointer_cast<Talon>(subsystem1SpeedCon troller2));
When I deploy and run in Test Mode, SmartDashboard displays an empty box labelled "Subsystem 1"

If I remove the spaces from "Speed Controller 1", like shown below, everything works as expected.

Quote:
subsystem1SpeedController1.reset(new Talon(0));
lw->AddActuator("Subsystem 1", "Speed1", std::static_pointer_cast<Talon>(subsystem1SpeedCon troller1));

subsystem1SpeedController2.reset(new Talon(1));
lw->AddActuator("Subsystem 1", "Speed2", std::static_pointer_cast<Talon>(subsystem1SpeedCon troller2));
I had similar experiences when I played with Preferences last Fall. Spaces are sometimes not your friend.
Reply With Quote