Class ServoWPIAdapter

java.lang.Object
xbot.common.controls.actuators.XServo
xbot.common.controls.actuators.wpi_adapters.ServoWPIAdapter
All Implemented Interfaces:
DataFrameRefreshable, XBaseIO

public class ServoWPIAdapter extends XServo
  • Constructor Details

    • ServoWPIAdapter

      @AssistedInject public ServoWPIAdapter(@Assisted("channel") int channel, @Assisted("name") String name, DevicePolice police)
  • Method Details

    • set

      public void set(double value)
      Description copied from class: XServo
      Set the servo to a specific value.
      Specified by:
      set in class XServo
      Parameters:
      value - The value to set the servo to. This should be a value between 0 and 1.
    • get

      public double get()
      Description copied from class: XServo
      Get the current value of the servo.
      Specified by:
      get in class XServo
      Returns:
      The current value of the servo, between 0 and 1.