AirplaneLauncher

public final class AirplaneLauncher extends Feature implements Buildable

This sets up the airplane launcher servo and uses it to launch the plane.

Connections: A servo in port 6 to launch and in port 7 to change the height and a controller1.

Controls: Press triangle to launch the plane. Press the left bumpet to move the launcher down and the right bumper to move it up.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
private ScriptParameters environment
Link copied to clipboard
public final String name
Link copied to clipboard
public final Boolean needsInit

Functions

Link copied to clipboard
public Unit build()

The method to run when a feature is being built.

Link copied to clipboard
public final ScriptParameters getEnvironment()
Link copied to clipboard
public Unit init(ScriptParameters parameters)
Link copied to clipboard
public Unit loop()

The method to run on every loop of this feature. If this feature is conditional, this will only run if Conditional.when returns true.

Link copied to clipboard
public Unit run(ScriptParameters parameters)
Link copied to clipboard
public final Unit setEnvironment(ScriptParameters environment)