Enum WSOutputs

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<WSOutputs>, Outputs

    public enum WSOutputs
    extends java.lang.Enum<WSOutputs>
    implements Outputs
    Output mappings are stored here. Below each Motor, PWM, Digital Output, Solenoid, and Relay is enumerated with their appropriated IDs. The enumeration includes a name, output type, and output config object.
    • Enum Constant Detail

      • LEFT_DRIVE

        public static final WSOutputs LEFT_DRIVE
      • RIGHT_DRIVE

        public static final WSOutputs RIGHT_DRIVE
      • LEFT_DRIVE_FOLLOWER

        public static final WSOutputs LEFT_DRIVE_FOLLOWER
      • RIGHT_DRIVE_FOLLOWER

        public static final WSOutputs RIGHT_DRIVE_FOLLOWER
      • TEST_MOTOR

        public static final WSOutputs TEST_MOTOR
      • DRIVE1

        public static final WSOutputs DRIVE1
      • ANGLE1

        public static final WSOutputs ANGLE1
      • DRIVE2

        public static final WSOutputs DRIVE2
      • ANGLE2

        public static final WSOutputs ANGLE2
      • DRIVE3

        public static final WSOutputs DRIVE3
      • ANGLE3

        public static final WSOutputs ANGLE3
      • DRIVE4

        public static final WSOutputs DRIVE4
      • ANGLE4

        public static final WSOutputs ANGLE4
      • TEST_SERVO

        public static final WSOutputs TEST_SERVO
      • DIO_O_0

        public static final WSOutputs DIO_O_0
      • TEST_SOLENOID

        public static final WSOutputs TEST_SOLENOID
      • LL_MODE

        public static final WSOutputs LL_MODE
      • LL_LEDS

        public static final WSOutputs LL_LEDS
    • Method Detail

      • values

        public static WSOutputs[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (WSOutputs c : WSOutputs.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WSOutputs valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getName

        public java.lang.String getName()
        Returns the name mapped to the Output.
        Specified by:
        getName in interface Outputs
        Returns:
        Name mapped to the Output.
      • getConfig

        public OutputConfig getConfig()
        Returns the config of Output for the enumeration.
        Specified by:
        getConfig in interface Outputs
        Returns:
        OutputConfig of enumeration.
      • get

        public Output get()
        Returns the actual Output object from the OutputManager
        Returns:
        The corresponding output.