Cannon

constructor(prolong: Servo, openPosition: Double, closePosition: Double)

Constructs a new Cannon.

Parameters

prolong

the servo to use

closePosition

the position to set the servo to when not firing

openPosition

the position to set the servo to when firing


constructor(prolong: Servo)

Constructs a new Cannon. Implicitly set the close position to 0.0 and the open position to 1.0.

Parameters

prolong

the servo to use