From 636457403c69d0facfd8410dacf181ab003812a6 Mon Sep 17 00:00:00 2001 From: Candas1 Date: Wed, 3 Mar 2021 14:21:11 +0100 Subject: [PATCH] Updated Variant USART (markdown) --- Variant-USART.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Variant-USART.md b/Variant-USART.md index 3a9fe58..07a1425 100644 --- a/Variant-USART.md +++ b/Variant-USART.md @@ -1,7 +1,7 @@ This variant can be used to control the board from another board(e.g. Arduino, ESP32, ESP8266,RASPBERRY PI) or a computer via a serial protocol.
The example [Arduino sketch](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Arduino/hoverserial/hoverserial.ino) will send commands and process the feedback.
Those commands are send as binary frames with following structure:
-- Start frame : 0XABCD as unsigned int16 +- Start frame : 0xABCD as unsigned int16 - Steer : -1000 to 1000 as signed int16 - Speed : -1000 to 1000 as signed int16 - Checksum : XOR checksum as unsigned int16