mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpilib] Rename DriverStation::IsOperatorControl() to IsTeleop() (#3505)
This commit is contained in:
@@ -53,10 +53,10 @@ void Robot::StartCompetition() {
|
||||
frc::LiveWindow::SetEnabled(false);
|
||||
frc::Shuffleboard::DisableActuatorWidgets();
|
||||
} else {
|
||||
frc::DriverStation::InOperatorControl(true);
|
||||
frc::DriverStation::InTeleop(true);
|
||||
Teleop();
|
||||
frc::DriverStation::InOperatorControl(false);
|
||||
while (IsOperatorControlEnabled()) {
|
||||
frc::DriverStation::InTeleop(false);
|
||||
while (IsTeleopEnabled()) {
|
||||
frc::DriverStation::WaitForData();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user