Updated Variant USART (markdown)

Candas1
2021-03-09 13:42:11 +01:00
parent c3ad1149c5
commit 2dc0c1a7a2

@@ -21,6 +21,10 @@ Commands are send as binary frames with following structure:<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 />
## Calibration:
[Calibration](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Calibration) is not required with USART control, but can be done if you use an input devices(e.g. Joystick or Throttle handle) on the Arduino and are not taking care of calibration center value and min/max range there.
## Feedback:
Following feedback is sent:
- Start frame(unsigned int16) : 0xABCD
@@ -33,9 +37,6 @@ Following feedback is sent:
- Led(unsigned int16) : Used to control the leds on the sideboard
- Checksum(unsigned int16) : XOR checksum
## Calibration:
[Calibration](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Calibration) is not required with USART control, but can be done if you use an input devices(e.g. Joystick or Throttle handle) on the Arduino and are not taking care of calibration center value and min/max range there.
## Troubleshooting:
If the board is beeping