mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +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:
@@ -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() {}
|
||||
}
|
||||
|
||||
@@ -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() {}
|
||||
}
|
||||
|
||||
@@ -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() {}
|
||||
}
|
||||
|
||||
@@ -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() {}
|
||||
}
|
||||
|
||||
@@ -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() {}
|
||||
}
|
||||
|
||||
@@ -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() {}
|
||||
}
|
||||
|
||||
@@ -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() {}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user