Skip to content

Absolute position management

Yusuke Ide edited this page Oct 5, 2020 · 2 revisions

/resetPos (int)motorID

Argument

Argument Range Description
motorID 1-4, 255 motor ID

Executable timing

Always

Description

Reset ABS_POS register to 0. This is equivalent to setting the current position to HOME.

/setPosition (int)motorID (int)newPosition

Argument

Argument Range Description
motorID 1-4, 255 motor ID
newPosition -2,097,152 - 2,097,151 speciifed coordinates

Executable timing

when the motor is stopped

Description

Rewrites the ABS_POS register to the specified coordinates. The current motor position is set to the specified coordinates.

/getPosition (int)motorID

Argument

Argument Range Description
motorID 1-4, 255 motor ID

Executable timing

Always

Description

Gets the contents of the ABS_POS register (current position).

Response

/position (int)motorID (int)ABS_POS
Argument Range Description
motorID 1-4, 255 motor ID
ABS_POS -2,097,152 - 2,097,151 current position
Clone this wiki locally