antonvh / mpy-robot-tools

Install on a SPIKE Legacy or LEGO MINDSTORMS Robot Inventor hub for easy Bluetooth communication, animation, and motor synchronization.
https://antonsmindstorms.com
GNU General Public License v3.0
35 stars 11 forks source link

Add `angle` and `reset_angle` to ctrl_plus #13

Open tylerfowle opened 2 years ago

tylerfowle commented 2 years ago

Add the ability to query and reset the angle of remotely controlled smart hubs

antonvh commented 2 years ago

Hi Tyler, You could add the method yourself. Lego calls reset angle Presetangle(). They show an example here:

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#encoding-of-writedirectmodedata-0x81-0x51

I can't find any mention in their docs about reading the motor position, tacho, or angle.