mirror of
https://github.com/EFeru/hoverboard-firmware-hack-FOC.git
synced 2025-08-05 18:44:28 +02:00
Updated Variant USART (markdown)
@@ -25,8 +25,8 @@ By default, USART is configured with 115200 baud, 8 data bits, no parity, one st
|
|||||||
## :joystick: Input Command Structure:
|
## :joystick: Input Command Structure:
|
||||||
Commands are send as binary frames with following structure:<br />
|
Commands are send as binary frames with following structure:<br />
|
||||||
- Start frame(unsigned int16) : 0xABCD
|
- Start frame(unsigned int16) : 0xABCD
|
||||||
- Steer(signed int16) : Steer with range -1000 to 1000
|
- Steer(signed int16) : Steer input or Left input with [tank steering](https://github.com/EFeru/hoverboard-firmware-hack-FOC/wiki/Parameters#-tank-steering)[-1000 - 1000]
|
||||||
- Speed(signed int16) : Speed with range -1000 to 1000
|
- Speed(signed int16) : Speed input or Right input with [tank steering](https://github.com/EFeru/hoverboard-firmware-hack-FOC/wiki/Parameters#-tank-steering)[-1000 - 1000]
|
||||||
- Checksum(unsigned int16) : XOR checksum
|
- Checksum(unsigned int16) : XOR checksum
|
||||||
|
|
||||||
The least significant byte comes first (little endian).<br>
|
The least significant byte comes first (little endian).<br>
|
||||||
|
Reference in New Issue
Block a user