Class MockDigitalDevice

java.lang.Object
org.firstinspires.ftc.teamcode.fy23.fakestuff.MockDigitalDevice
All Implemented Interfaces:
Button, DigitalDevice

public class MockDigitalDevice extends Object implements DigitalDevice, Button
Can also be used as a mock Button.
  • Constructor Details

    • MockDigitalDevice

      public MockDigitalDevice(boolean initialState)
  • Method Details

    • isActive

      public boolean isActive()
      Description copied from interface: DigitalDevice
      When a device is "active" depends on the implementation.
      Specified by:
      isActive in interface Button
      Specified by:
      isActive in interface DigitalDevice
    • setActive

      public void setActive(boolean newState)