Go to Post I'm frustrated by the world's reluctance to bend over backwards for FIRST. - Madison [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-01-2016, 16:47
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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi