Interface LauncherWheel
- All Known Implementing Classes:
LauncherWheelBlank,LauncherWheelImpl
public interface LauncherWheel
Represents a launcher wheel and its state.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classYou must set some of these if this subsystem is present.static enumRepresents the state of the launcher. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the current velocity of the launch wheel.getState()Get the current state of the launcher.voidsetLaunchVelocity(double velocity) Set the velocity at which the launch wheel will run when it is READY.voidspinDown()Remove power from the launch wheelvoidspinUp()Apply power to the launch wheelvoidupdate()Called by robot.update().
-
Method Details
-
spinUp
void spinUp()Apply power to the launch wheel -
spinDown
void spinDown()Remove power from the launch wheel -
getState
LauncherWheel.State getState()Get the current state of the launcher. This will be STARTING immediately after calling readyLauncher(), and will become READY once the launch wheel is up to speed. -
setLaunchVelocity
void setLaunchVelocity(double velocity) Set the velocity at which the launch wheel will run when it is READY. The new velocity to set, in ticks per second. -
getLaunchVelocity
double getLaunchVelocity()Get the current velocity of the launch wheel. -
update
void update()Called by robot.update(). You do not need to call this method.
-