Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marcrupprath opened this issue Feb 2, 2020 · 1 comment

Comments

@marcrupprath
Copy link

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

@justxi
Copy link

justxi commented May 2, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants