Class MockServo

All Implemented Interfaces:
DataFrameRefreshable, XBaseIO

public class MockServo extends XServo
  • Field Details

    • value

      protected double value
  • Constructor Details

    • MockServo

      @AssistedInject public MockServo(@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.