java.lang.Object
org.firstinspires.ftc.teamcode.fy25.subsystems.launchergate.LauncherGateBlank
All Implemented Interfaces:
LauncherGate

public class LauncherGateBlank extends Object implements LauncherGate
A blank implementation of LauncherGate that does nothing. Never returns null (returns blank objects instead where applicable), so hopefully no null pointers.
  • Constructor Details

    • LauncherGateBlank

      public LauncherGateBlank()
  • Method Details

    • open

      public void open()
      Description copied from interface: LauncherGate
      Open the gate (start running actuator)
      Specified by:
      open in interface LauncherGate
    • close

      public void close()
      Description copied from interface: LauncherGate
      Close the gate (stop running actuator)
      Specified by:
      close in interface LauncherGate
    • isOpen

      public boolean isOpen()
      Description copied from interface: LauncherGate
      Is the gate open?
      Specified by:
      isOpen in interface LauncherGate
    • setPower

      public void setPower(double power)
      Description copied from interface: LauncherGate
      Set the power at which the actuator will run when the gate is open. The new power to set.
      Specified by:
      setPower in interface LauncherGate
    • getPower

      public double getPower()
      Description copied from interface: LauncherGate
      Get the power of the actuator. (whether it's set or current power may depend on actuator type)
      Specified by:
      getPower in interface LauncherGate
    • update

      public void update()
      Description copied from interface: LauncherGate
      Called by robot.update(). You do not need to call this method.
      Specified by:
      update in interface LauncherGate