[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

@@ -89,12 +89,12 @@ public class Robot extends TimedRobot {
public void teleopPeriodic() {}
@Override
public void testInit() {
// Cancels all running commands at the start of test mode.
public void utilityInit() {
// Cancels all running commands at the start of utility mode.
CommandScheduler.getInstance().cancelAll();
}
/** This function is called periodically during test mode. */
/** This function is called periodically during utility mode. */
@Override
public void testPeriodic() {}
public void utilityPeriodic() {}
}

View File

@@ -63,11 +63,11 @@ public class Robot extends TimedRobot {
m_robotDrive.arcadeDrive(-m_controller.getLeftY(), -m_controller.getRightX());
}
/** This function is called once each time the robot enters test mode. */
/** This function is called once each time the robot enters utility mode. */
@Override
public void testInit() {}
public void utilityInit() {}
/** This function is called periodically during test mode. */
/** This function is called periodically during utility mode. */
@Override
public void testPeriodic() {}
public void utilityPeriodic() {}
}

View File

@@ -91,12 +91,12 @@ public class Robot extends TimedRobot {
public void teleopPeriodic() {}
@Override
public void testInit() {
// Cancels all running commands at the start of test mode.
public void utilityInit() {
// Cancels all running commands at the start of utility mode.
CommandScheduler.getInstance().cancelAll();
}
/** This function is called periodically during test mode. */
/** This function is called periodically during utility mode. */
@Override
public void testPeriodic() {}
public void utilityPeriodic() {}
}

View File

@@ -39,7 +39,7 @@ public class Robot extends TimedRobot {
/**
* This function is called every 20 ms, no matter the mode. Use this for items like diagnostics
* that you want ran during disabled, autonomous, teleoperated and test.
* that you want ran during disabled, autonomous, teleoperated and utility.
*
* <p>This runs after the mode specific periodic functions, but before LiveWindow and
* SmartDashboard integrated updating.
@@ -98,12 +98,12 @@ public class Robot extends TimedRobot {
public void teleopPeriodic() {}
@Override
public void testInit() {
// Cancels all running commands at the start of test mode.
public void utilityInit() {
// Cancels all running commands at the start of utility mode.
CommandScheduler.getInstance().cancelAll();
}
/** This function is called periodically during test mode. */
/** This function is called periodically during utility mode. */
@Override
public void testPeriodic() {}
public void utilityPeriodic() {}
}

View File

@@ -87,12 +87,12 @@ public class Robot extends TimedRobot {
public void teleopPeriodic() {}
@Override
public void testInit() {
// Cancels all running commands at the start of test mode.
public void utilityInit() {
// Cancels all running commands at the start of utility mode.
CommandScheduler.getInstance().cancelAll();
}
/** This function is called periodically during test mode. */
/** This function is called periodically during utility mode. */
@Override
public void testPeriodic() {}
public void utilityPeriodic() {}
}

View File

@@ -82,12 +82,12 @@ public class Robot extends TimedRobot {
public void teleopPeriodic() {}
@Override
public void testInit() {
// Cancels all running commands at the start of test mode.
public void utilityInit() {
// Cancels all running commands at the start of utility mode.
CommandScheduler.getInstance().cancelAll();
}
/** This function is called periodically during test mode. */
/** This function is called periodically during utility mode. */
@Override
public void testPeriodic() {}
public void utilityPeriodic() {}
}

View File

@@ -79,12 +79,12 @@ public class Robot extends TimedRobot {
public void teleopPeriodic() {}
@Override
public void testInit() {
// Cancels all running commands at the start of test mode.
public void utilityInit() {
// Cancels all running commands at the start of utility mode.
CommandScheduler.getInstance().cancelAll();
}
/** This function is called periodically during test mode. */
/** This function is called periodically during utility mode. */
@Override
public void testPeriodic() {}
public void utilityPeriodic() {}
}

View File

@@ -82,14 +82,14 @@ public class Robot extends TimedRobot {
public void teleopPeriodic() {}
@Override
public void testInit() {
// Cancels all running commands at the start of test mode.
public void utilityInit() {
// Cancels all running commands at the start of utility mode.
CommandScheduler.getInstance().cancelAll();
}
/** This function is called periodically during test mode. */
/** This function is called periodically during utility mode. */
@Override
public void testPeriodic() {}
public void utilityPeriodic() {}
/** This function is called once when the robot is first started up. */
@Override

View File

@@ -64,11 +64,11 @@ public class Robot extends TimedRobot {
m_robotDrive.arcadeDrive(-m_controller.getRawAxis(2), -m_controller.getRawAxis(1));
}
/** This function is called once each time the robot enters test mode. */
/** This function is called once each time the robot enters utility mode. */
@Override
public void testInit() {}
public void utilityInit() {}
/** This function is called periodically during test mode. */
/** This function is called periodically during utility mode. */
@Override
public void testPeriodic() {}
public void utilityPeriodic() {}
}