LEGO / lego-ble-wireless-protocol-docs

This repository contains information about LEGO Hubs (name, battery level, etc.) and to interact with any sensors and motors connected to it.
https://lego.github.io/lego-ble-wireless-protocol-docs
MIT License
340 stars 43 forks source link

Please Explain Encoder Math, How to drive XL Motor about 120° with 50 % speed #18

Closed marcrupprath closed 4 years ago

marcrupprath commented 4 years ago

Hello, can you give me an example for the calculaton on how to fill in the command

Example Data send: 0F-00-81-01-11-0C-00-98-06-80-CE-32-64-00-00

When i want to drive XL Motor for +120 / and in secondly example -120°, with speed of 50% I don't understand calculation examples .

Thanks:

by the way: Data revieved: 05-00-82-01-05 Data revieved: 05-00-82-01-0C

Code "05", and 0C are not listed in doc , or i haven'f find it ;-)

Marc

marcrupprath commented 4 years ago

Never mind: Meanwhile i have noticed that your apps using positioning command 0x0d instead: "Position" simply is desired angle.

It would be nice when you will regroup your documentation my means that you will have chapters / sections describing which commands and Options are available for a specific HUB , drive, …..

The actual try and error and reverse Engineering is very time consuming.