Annotation Type MapJoystick


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface MapJoystick
    The MapJoystick annotation specifies how a joystick should be used in the operator interface. This annotation is read by the runtime as well as by RobotInspector. This should be applied to a public static class inside the OI map class. For example:
     public class OIMap {
         @MapJoystick(port = 0, role = Role.LEFT_DRIVER, type = Type.LOGITECH_DUAL_ACTION)
         public static class LeftDriver {
             // specify buttons/commands here
         }
     }
     
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      int port
      The port the joystick is connected to.
      MapJoystick.Role role
      The role the joystick serves, e.g.
      MapJoystick.Type type
      The physical model of joystick used.
    • Element Detail

      • port

        int port
        The port the joystick is connected to.
        Returns:
        The port the joystick is connected to.
      • type

        MapJoystick.Type type
        The physical model of joystick used. This determines how the diagrams are mapped, and what button numbers are allowed.
        Returns:
        The type of the joystick.