mirror of
https://github.com/EFeru/hoverboard-firmware-hack-FOC.git
synced 2025-08-04 01:54:27 +02:00
Updated Variant USART (markdown)
@@ -18,6 +18,7 @@ Commands are send as binary frames with following structure:<br />
|
|||||||
- Speed(signed int16) : Speed with range -1000 to 1000 or Throttle(hovercar) with range 0 to 1000
|
- Speed(signed int16) : Speed with range -1000 to 1000 or Throttle(hovercar) with range 0 to 1000
|
||||||
- Checksum(unsigned int16) : XOR checksum
|
- Checksum(unsigned int16) : XOR checksum
|
||||||
|
|
||||||
|
The least significant byte comes first (little endian).<br>
|
||||||
The FOC firmware will discard frames that are not starting with proper start frame and not ending with correct checksum.<br />
|
The FOC firmware will discard frames that are not starting with proper start frame and not ending with correct checksum.<br />
|
||||||
A timeout will be triggered if no correct frame is received during the time specified with parameter SERIAL_TIMEOUT in config.h (160ms by default).<br />
|
A timeout will be triggered if no correct frame is received during the time specified with parameter SERIAL_TIMEOUT in config.h (160ms by default).<br />
|
||||||
|
|
||||||
@@ -37,6 +38,8 @@ Following feedback is sent:
|
|||||||
- Led(unsigned int16) : Used to control the leds on the sideboard
|
- Led(unsigned int16) : Used to control the leds on the sideboard
|
||||||
- Checksum(unsigned int16) : XOR checksum
|
- Checksum(unsigned int16) : XOR checksum
|
||||||
|
|
||||||
|
The least significant byte comes first (little endian).
|
||||||
|
|
||||||
## Troubleshooting:
|
## Troubleshooting:
|
||||||
|
|
||||||
If the board is [beeping](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Diagnostics)
|
If the board is [beeping](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Diagnostics)
|
||||||
|
Reference in New Issue
Block a user