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:
@@ -60,10 +60,10 @@ public class EducationalRobot extends RobotBase {
|
||||
DriverStation.waitForData();
|
||||
}
|
||||
} else {
|
||||
DriverStation.inOperatorControl(true);
|
||||
DriverStation.inTeleop(true);
|
||||
teleop();
|
||||
DriverStation.inOperatorControl(false);
|
||||
while (isOperatorControlEnabled()) {
|
||||
DriverStation.inTeleop(false);
|
||||
while (isTeleopEnabled()) {
|
||||
DriverStation.waitForData();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,10 +61,10 @@ public class Robot extends RobotBase {
|
||||
LiveWindow.setEnabled(false);
|
||||
Shuffleboard.disableActuatorWidgets();
|
||||
} else {
|
||||
DriverStation.inOperatorControl(true);
|
||||
DriverStation.inTeleop(true);
|
||||
teleop();
|
||||
DriverStation.inOperatorControl(false);
|
||||
while (isOperatorControlEnabled()) {
|
||||
DriverStation.inTeleop(false);
|
||||
while (isTeleopEnabled()) {
|
||||
DriverStation.waitForData();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user