Switch

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

Constructs a new Switch.

Parameters

servo

the servo to use

closePosition

the position to set the servo to when closed

openPosition

the position to set the servo to when open


constructor(@Nullable servo: Servo)

Constructs a new Switch with default open and close positions.

Parameters

servo

the servo to use