Quote:
Originally Posted by Ross3098
Last year we used the command:
Code:
DriverStationLCD *m_LCD;
m_LCD->GetInstance();
//Code.............................
m_LCD->Printf(DriverStationLCD::kUser_Line1, 1, "Message");
m_LCD->UpdateLCD();
|
No, your code is declaring a DriverStationLCD pointer m_LCD but it is uninitialized. Your code will fault when you call m_LCD->GetInstance(). Instead, your code should look something like this:
Code:
DriverStationLCD *m_LCD;
m_LCD = DriverStationLCD::GetInstance();