|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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!
|
|
#2
|
||||
|
||||
|
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...)
|
|
#3
|
||||||
|
||||||
|
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
|
|
#4
|
|||
|
|||
|
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);
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|