Annotation Interface Autonomous


@Retention(RUNTIME) @Target(TYPE) @Documented public @interface Autonomous
Annotation for automatic registration of autonomous opmode classes.
  • Element Details

    • name

      String name
      Name. This is shown as the selection name in the Driver Station, and must be unique across all autonomous opmodes in the project. If not specified, defaults to the name of the class.
      Returns:
      Name
      Default:
      ""
    • group

      String group
      Group. All opmodes with the same group are grouped together for selection. If not specified, defaults to ungrouped.
      Returns:
      Group
      Default:
      ""
    • description

      String description
      Extended description. Optional.
      Returns:
      Description
      Default:
      ""
    • textColor

      String textColor
      Text color. Optional. Supports all formats supported by Color.fromString(String).
      Returns:
      Text color
      Default:
      ""
    • backgroundColor

      String backgroundColor
      Text background color. Optional. Supports all formats supported by Color.fromString(String).
      Returns:
      Text background color
      Default:
      ""