Class LauncherGateBlank
java.lang.Object
org.firstinspires.ftc.teamcode.fy25.subsystems.launchergate.LauncherGateBlank
- All Implemented Interfaces:
LauncherGate
A blank implementation of
LauncherGate that does nothing.
Never returns null (returns blank objects instead where applicable), so hopefully no null pointers.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.firstinspires.ftc.teamcode.fy25.subsystems.launchergate.LauncherGate
LauncherGate.Parameters, LauncherGate.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the gate (stop running actuator)doublegetPower()Get the power of the actuator.booleanisOpen()Is the gate open?voidopen()Open the gate (start running actuator)voidsetPower(double power) Set the power at which the actuator will run when the gate is open.voidupdate()Called by robot.update().
-
Constructor Details
-
LauncherGateBlank
public LauncherGateBlank()
-
-
Method Details
-
open
public void open()Description copied from interface:LauncherGateOpen the gate (start running actuator)- Specified by:
openin interfaceLauncherGate
-
close
public void close()Description copied from interface:LauncherGateClose the gate (stop running actuator)- Specified by:
closein interfaceLauncherGate
-
isOpen
public boolean isOpen()Description copied from interface:LauncherGateIs the gate open?- Specified by:
isOpenin interfaceLauncherGate
-
setPower
public void setPower(double power) Description copied from interface:LauncherGateSet the power at which the actuator will run when the gate is open. The new power to set.- Specified by:
setPowerin interfaceLauncherGate
-
getPower
public double getPower()Description copied from interface:LauncherGateGet the power of the actuator. (whether it's set or current power may depend on actuator type)- Specified by:
getPowerin interfaceLauncherGate
-
update
public void update()Description copied from interface:LauncherGateCalled by robot.update(). You do not need to call this method.- Specified by:
updatein interfaceLauncherGate
-