View Single Post
  #1   Spotlight this post!  
Unread 16-02-2013, 20:40
omsahmad's Avatar
omsahmad omsahmad is offline
Registered User
FRC #1595 (Dragons)
 
Join Date: Oct 2010
Rookie Year: 2011
Location: Spokane, WA
Posts: 66
omsahmad is just really niceomsahmad is just really niceomsahmad is just really niceomsahmad is just really niceomsahmad is just really nice
Printing values to user messages box

Very simple question, whose answer I cannot figure out. I am using a CAN bus system to control the speed of my motors. I think it is working but I want to display the value of the encoder in the user messages box. How exactly do I accomplish this? Currently only text is showing up in the messages box.

DriverStationLCD is lcd

my code:

lcd->Printf(DriverStationLCD::kUser_Line3, 1, "Rate: ", shooterOne->GetSpeed);
lcd->UpdateLCD();

Thanks
Reply With Quote