mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
[hal,wpilib] Rename "Test" robot mode to "Utility" (#8782)
The "Utility" name better matches its intended generic use case and avoids overloaded terminology with unit testing (e.g. the need to name the opmode annotation `@TestOpMode`). The driver station will also be updated to reflect this change.
This commit is contained in:
@@ -20,6 +20,6 @@ Trigger RobotModeTriggers::Disabled() {
|
||||
return Trigger{&wpi::RobotState::IsDisabled};
|
||||
}
|
||||
|
||||
Trigger RobotModeTriggers::Test() {
|
||||
return Trigger{&wpi::RobotState::IsTestEnabled};
|
||||
Trigger RobotModeTriggers::Utility() {
|
||||
return Trigger{&wpi::RobotState::IsUtilityEnabled};
|
||||
}
|
||||
|
||||
@@ -40,11 +40,11 @@ class RobotModeTriggers {
|
||||
static Trigger Disabled();
|
||||
|
||||
/**
|
||||
* Returns a trigger that is true when the robot is enabled in test mode.
|
||||
* Returns a trigger that is true when the robot is enabled in utility mode.
|
||||
*
|
||||
* @return A trigger that is true when the robot is enabled in test mode.
|
||||
* @return A trigger that is true when the robot is enabled in utility mode.
|
||||
*/
|
||||
static Trigger Test();
|
||||
static Trigger Utility();
|
||||
};
|
||||
|
||||
} // namespace wpi::cmd
|
||||
|
||||
Reference in New Issue
Block a user