I'm looking at printing the value of the joystick y axis to the screen.
Code:
DriverStation *ds;
DriverStationLCD *dsLCD;
Joystick *driveController;
RobotDemo(void)
{
ds = DriverStation::GetInstance();
dsLCD = DriverStationLCD::GetInstance();
driveController = new Joystick(1);
}
void OperatorControl(void)
{
GetWatchdog().SetEnabled(true);
while (IsOperatorControl())
{
GetWatchdog().Feed();
dsLCD->Printf(DriverStationLCD::kUser_Line4, 1, driveController->GetY());
dsLCD->UpdateLCD();
}
}
Is there something that needs to be included?? is there a ToString() like there is in java???
Also is there string concatenation that you can add two strings together?? "Left Drive: " + driverController->GetY()