Class WsServo


  • public class WsServo
    extends AnalogOutput
    Controls a servo.
    • Constructor Detail

      • WsServo

        public WsServo​(java.lang.String name,
                       int channel,
                       double p_default)
        Constructs the servo from config.
        Parameters:
        name - Descriptive name of the servo.
        channel - Hardware port number the servo is connected to.
        p_default - Default position.
    • Method Detail

      • sendDataToOutput

        public void sendDataToOutput()
        Sets servo position to current value.
        Specified by:
        sendDataToOutput in class Output
      • notifyConfigChange

        public void notifyConfigChange()
        Does nothing, config values only affects start state.