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

    • WsServo

      public WsServo(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 Details

    • 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.