Switch

constructor(@Nullable servo: Servo, openPosition: Double, closePosition: Double)

Constructs a new Switch.

Parameters

servo

the servo to use

openPosition

the position to set the servo to when open

closePosition

the position to set the servo to when closed


constructor(@Nullable servo: Servo)

Constructs a new Switch with default open and close positions.

Parameters

servo

the servo to use