lego-ble-wireless-protocol-docs icon indicating copy to clipboard operation
lego-ble-wireless-protocol-docs copied to clipboard

Explain usage of Encoder Preset: {0x0b,0x00,0x81,0x01,0x11,0x51,0x02,0x5a,0x00,0x00,0x00};

Open marcrupprath opened this issue 4 years ago • 1 comments

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

marcrupprath avatar Feb 02 '20 18:02 marcrupprath

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

justxi avatar May 02 '21 20:05 justxi