[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

@@ -36,8 +36,8 @@ classes:
IsAutonomousEnabled:
IsTeleop:
IsTeleopEnabled:
IsTest:
IsTestEnabled:
IsUtility:
IsUtilityEnabled:
AddOpMode:
overloads:
RobotMode, std::string_view, std::string_view, std::string_view, const wpi::util::Color&, const wpi::util::Color&:

View File

@@ -5,12 +5,12 @@ classes:
DisabledInit:
AutonomousInit:
TeleopInit:
TestInit:
UtilityInit:
RobotPeriodic:
DisabledPeriodic:
AutonomousPeriodic:
TeleopPeriodic:
TestPeriodic:
UtilityPeriodic:
IterativeRobotBase:
overloads:
double:
@@ -22,7 +22,7 @@ classes:
DisabledExit:
AutonomousExit:
TeleopExit:
TestExit:
UtilityExit:
GetPeriod:
PrintWatchdogEpochs:
doc: |
@@ -44,7 +44,7 @@ classes:
- DisabledInit() -- called each and every time disabled is entered from another mode
- AutonomousInit() -- called each and every time autonomous is entered from another mode
- TeleopInit() -- called each and every time teleop is entered from another mode
- TestInit() -- called each and every time test is entered from another mode
- UtilityInit() -- called each and every time utility is entered from another mode
Periodic() functions -- each of these functions is called on an interval:
@@ -52,7 +52,7 @@ classes:
- DisabledPeriodic()
- AutonomousPeriodic()
- TeleopPeriodic()
- TestPeriodic()
- UtilityPeriodic()
Exit() functions -- each of the following functions is called once when the
appropriate mode is exited:
@@ -60,4 +60,4 @@ classes:
- DisabledExit() -- called each and every time disabled is exited
- AutonomousExit() -- called each and every time autonomous is exited
- TeleopExit() -- called each and every time teleop is exited
- TestExit() -- called each and every time test is exited
- UtilityExit() -- called each and every time utility is exited

View File

@@ -25,8 +25,8 @@ classes:
IsAutonomousEnabled:
IsTeleop:
IsTeleopEnabled:
IsTest:
IsTestEnabled:
IsUtility:
IsUtilityEnabled:
GetThreadId:
ignore: true
StartCompetition:

View File

@@ -12,8 +12,8 @@ classes:
IsAutonomousEnabled:
IsTeleop:
IsTeleopEnabled:
IsTest:
IsTestEnabled:
IsUtility:
IsUtilityEnabled:
AddOpMode:
overloads:
RobotMode, std::string_view, std::string_view, std::string_view, const wpi::util::Color&, const wpi::util::Color&: