View Single Post
  #3   Spotlight this post!  
Unread 09-01-2015, 21:55
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 502
tomy has a spectacular aura abouttomy has a spectacular aura about
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.