Updated Variant USART (markdown)

Candas1
2021-04-26 16:19:24 +02:00
parent c269726ae6
commit 8bf23e862a

@@ -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)