Go to Post remember to keep this simple but yet complex everyone - Team#2057-Vegas [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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:52 AM.

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