View Single Post
  #1   Spotlight this post!  
Unread 01-15-2015, 07:16 AM
Cinnamon Toast's Avatar
Cinnamon Toast Cinnamon Toast is offline
Registered User
FRC #3641 (The Flying Toasters)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Michigan
Posts: 32
Cinnamon Toast is an unknown quantity at this point
SmartDashboard Class Problems

Hello fellow programmers,

I've run into a problem with the SmartDashboard.h class. As you may have found out, the DriverStationLCD class that many used last year to output text to the User Messages part of the Driver Station has been replaced with the SmartDashboard.h class. As far as I'm concerned there's no way to actually output text to the equivalent section of this years driver station. Instead, the SmartDashboard class lets you output data to the basic tab of the FRC Dashboard. We as a team used to use this readout in the User Messages as a live feedback for our potentiometer and ultra sonic sensor values with the following code.

ds->PrintfLine(DriverStationLCD::kUser_Line3, "Pot: %f", angle);

From what I've seen from the class documentation of SmartDashboard.h, there is no way to output a floating point value. Any argument for output seems to have to be char based. Also, we used to be able to use the updateLCD line to get live feedback of the values as they changed. How can we actually get such variables to output to the driver station? I would really appreciate any help that I can get. Thank you all in advance.
Reply With Quote