mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +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:
@@ -10,14 +10,14 @@ import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/** Annotation for automatic registration of test opmode classes. */
|
||||
/** Annotation for automatic registration of utility opmode classes. */
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.TYPE)
|
||||
@Documented
|
||||
public @interface TestOpMode {
|
||||
public @interface Utility {
|
||||
/**
|
||||
* Name. This is shown as the selection name in the Driver Station, and must be unique across all
|
||||
* test opmodes in the project. If not specified, defaults to the name of the class.
|
||||
* utility opmodes in the project. If not specified, defaults to the name of the class.
|
||||
*
|
||||
* @return Name
|
||||
*/
|
||||
Reference in New Issue
Block a user