Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Print message to Driver Station in C++ (http://www.chiefdelphi.com/forums/showthread.php?t=132521)

1452-Leo 09-01-2015 21:45

Print message to Driver Station in C++
 
I remember when I used Labview I could easily print a message to the Driver Station. This was really useful for debugging and such, but I can't find a way to do it in C++ (I'm still new, our team has never done it before). Does anyone know of an easy way? Thanks!

jtrv 09-01-2015 21:49

Re: Print message to Driver Station in C++
 
There doesn't seem to be anything in Java this year either. DriverStationLCD class seems to be just... gone. and DriverStation class has about zero practical methods (it allows you to find out which alliance you're on...)

Joe Ross 09-01-2015 21:50

Re: Print message to Driver Station in C++
 
The Driver Station doesn't display messages from any language this year. See http://wpilib.screenstepslive.com/s/...e-2014-to-2015 and http://wpilib.screenstepslive.com/s/...th-c-java-code

tomy 09-01-2015 21:55

Re: Print message to Driver Station in C++
 
My team posted live feed to the driver station using these bits of code:

Code:

#include "DriverStation.h"
#include "NetworkTables/NetworkTable.h"

UserDisplay -> Clear();
UserDisplay -> Printf(DriverStationLCD::kUser_Line3, 1, "Shooter Counter %d", (int)ShooterCounter));
UserDisplay -> UpdateLCD();

UserDisplay -> Clear();
UserDisplay -> UpdateLCD();
SmartDashboard::PutNumber("Shooter Delay", ShooterCounter);

We might have cleared and updated the LCD a bit to much. We used this to see the delay for shooting our ball. This was code was used in updating out 2012 robot. The delay was for the time it took our motors to get up to speed.


All times are GMT -5. The time now is 02:41.

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