resetPosition

fun resetPosition(position: Double = 0.0): StatusCode

Resets the position of the TonguFX motor to the specified value.

This extension function calls TonguFX.setPosition with the provided position,

Receiver

The TonguFX instance representing the motor controller.

Return

The StatusCode indicating the result of the operation.

Parameters

position

The position to set the motor to. Defaults to 0.0.