Code:
public void operatorControl() {
chassis.setSafetyEnabled(true); {
chassis.tankDrive(leftStick, rightStick);
Timer.delay(0.01);
}
}
A quick aside:
Because you are using SimpleRobot you need to put the teleop code in a loop, e.g.:
Code:
public void operatorControl() {
chassis.setSafetyEnabled(true);
while (isOperatorControl && isEnabled() ){
chassis.tankDrive(leftStick, rightStick);
Timer.delay(0.01);
}
}
The above suggestions for button use are all good, so if they aren't working this might be part of the problem. If you just typed from memory and forgot, ignore this. You also had a superfluous set of braces after you SafetyEnabled, did you accidentally delete something?
Just noticed you have a 30s delay in autonomous. Autonomous mode is only 15s. Unless something changed this year operatorControl() won't be called until autonomous() exits. So you'll be waiting 15s after teleop starts to get control of the 'bot.