lego-ble-wireless-protocol-docs
lego-ble-wireless-protocol-docs copied to clipboard
Explain usage of Encoder Preset: {0x0b,0x00,0x81,0x01,0x11,0x51,0x02,0x5a,0x00,0x00,0x00};
Hello,
When using App of Rally Car there is a calibration sequence with
Subcommand :0x51,0x02 Data:bytes ,0x00,0x00,0x00,0x00 and Subcommand: 0x51,0x02 Databytes : ,0x5a,0x00,0x00,0x00
Can you explain in detail how it works and how to choose values for Data ?
Thanks in advance
Marc
Hi, the last four byte seem to be the absolute position, at least it works with the external motor from boost.
EDIT: It is documented in chapter 6.1 "(P)RESET ENCODER Command encoded as WriteDirectModeData (Cmd 0x81, Sub Cmd 0x51)": https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#encoding-of-writedirectmodedata-0x81-0x51