[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:
Peter Johnson
2026-04-20 20:29:25 -07:00
committed by GitHub
parent 14d14e4ebc
commit ab00aac960
111 changed files with 487 additions and 488 deletions

View File

@@ -303,19 +303,19 @@ class DriverStationBackend final {
static bool IsTeleopEnabled() { return GetControlWord().IsTeleopEnabled(); }
/**
* Check if the DS is commanding test mode.
* Check if the DS is commanding utility mode.
*
* @return True if the robot is being commanded to be in test mode
* @return True if the robot is being commanded to be in utility mode
*/
static bool IsTest() { return GetControlWord().IsTest(); }
static bool IsUtility() { return GetControlWord().IsUtility(); }
/**
* Check if the DS is commanding Test mode and if it has enabled the robot.
* Check if the DS is commanding Utility mode and if it has enabled the robot.
*
* @return True if the robot is being commanded to be in Test mode and
* @return True if the robot is being commanded to be in Utility mode and
* enabled.
*/
static bool IsTestEnabled() { return GetControlWord().IsTestEnabled(); }
static bool IsUtilityEnabled() { return GetControlWord().IsUtilityEnabled(); }
/**
* Adds an operating mode option. It's necessary to call PublishOpModes() to