resetZeroPosition abstract method

Future<void> resetZeroPosition(
  1. double offset, {
  2. Map<String, dynamic>? extra,
})

Set the current position (modified by offset) to be the new zero (home) position.

// Set the current position as the new home position with no offset.
await myMotor.resetZeroPosition(0.0);

For more information, see Motor component.

Implementation

Future<void> resetZeroPosition(double offset, {Map<String, dynamic>? extra});