Skip to content

API setRelDistance

elektrofuzzis edited this page Jan 12, 2020 · 2 revisions

Mit setRelDistance wird die Sollposition in relativen 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.

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

Die Motoren sind als Konstanten definiert.


setRelDistance sets the target position of a motor in relative 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.

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

Use the motor constants.

Clone this wiki locally