DualServos

constructor(@Nullable left: Servo, @Nullable right: Servo, leftClosed: Double, leftOpen: Double, rightClosed: Double, rightOpen: Double)

Create a new DualServos.

Parameters

left

the left servo

right

the right servo

leftClosed

the left servo closed position

leftOpen

the left servo open position

rightClosed

the right servo closed position

rightOpen

the right servo open position


constructor(@Nullable left: Servo, @Nullable right: Servo)

Create a new DualServos with default open and close positions. This relies that your servos are configured at the hardware level to move in the correct directions.

Parameters

left

the left servo

right

the right servo