Skip to content

API motor constants

elektrofuzzis edited this page Jan 12, 2020 · 2 revisions

Mit diesen Konstanten können die Motoren an den verschiedenen Motorkommandos angegeben werden. Die Motoren müssen über die Konstanten und nicht mit den Werten 1..4 angegeben werden können. Der Grund ist sehr einfach – die Motornummern sind über Bits codiert und können bei den *-All-Kommandos einfach mit einem binären OR verbunden werden.


Use this constants to work with the motors commands. It's recommended to use this constants and not plain values like 1..4. The reason is quite simple - the motors are coded bitwise, so the could be tied together with a binary or.

Clone this wiki locally