View Single Post
  #12   Spotlight this post!  
Unread 30-01-2011, 20:00
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Gyro + accelometer C++ Programing

Quote:
Originally Posted by tomy View Post
Is there anything special you have to do to see it the driver station?
Code:
DriverStationLCD *display = DriverStationLCD::GetInstance();
char text[255];
sprintf(text, "Gyro Value: %f", gyro.GetAngle());
display->Clear();
display->PrintfLine(DriverStationLCD::kUser_Line1, text);
display->UpdateLCD();
Or if you mean the display on the Dashboard, take a look at the DashboardData sender in some of the example projects (such as Vision tracking).
Reply With Quote