Skip to content

API setAbsDistance

elektrofuzzis edited this page Jan 12, 2020 · 3 revisions

Mit setAbsDistance wird die Sollposition in absoluten Koordinaten für einen Motor gesetzt. Das Kommando startet nicht die Bewegung, diese muss mit startMoving ausgelöst werden. Die Angabe der Sollposition erfolgt in Schritten.

setAbsDistanceAll hat die gleiche Funktion, nur dass hier die Sollpositionen für alle Motoren gleichzeitig gesetzt werden.

Die Motoren sind als Konstanten definiert.


setAbsDistance sets the target position of a motor in absolute coordinates. The command doesn't start the motor at all, startMoving starts a motor with all set parameters. The units of the target position are steps.

setAbsDistanceAll is the same, but it sets the target position for all motors.

Use the motor constants.

Clone this wiki locally