Interface LauncherGate
- All Known Implementing Classes:
LauncherGateBlank,LauncherGateCRServoImpl,LauncherGateMotorImpl,LauncherGateServoImpl
public interface LauncherGate
Represents a launcher gate.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classYou must set some of these if this subsystem is present.static enum -
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().
-
Method Details
-
open
void open()Open the gate (start running actuator) -
close
void close()Close the gate (stop running actuator) -
isOpen
boolean isOpen()Is the gate open? -
setPower
void setPower(double power) Set the power at which the actuator will run when the gate is open. The new power to set. -
getPower
double getPower()Get the power of the actuator. (whether it's set or current power may depend on actuator type) -
update
void update()Called by robot.update(). You do not need to call this method.
-