From cac6172d067a33bdbadbd34ddb6140617d5c3317 Mon Sep 17 00:00:00 2001 From: "Pawel Spychalski (DzikuVx)" Date: Sat, 23 Sep 2017 10:50:15 +0200 Subject: [PATCH] RC_DATA protocol frame updated --- README.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 0535a14..f535f12 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ Cheap DIY RC link based on LoRa 868MHz modules ## Frame types -| Value | Description | Direction | -| ---- | ---- | ---- | +| Value | Description | Direction | +| ---- | ---- | ---- | | 000 | RC channels data `RC_DATA` | TX -> RX | | 001 | Receiver health and basic telemetry `RX_HEALTH` | RX -> TX | | 010 | Request receiver configuration | TX -> RX | @@ -23,18 +23,19 @@ Cheap DIY RC link based on LoRa 868MHz modules ### `RC_DATA` frame format -Protocol allows to send 11 RC channels in total encoded as following +Protocol allows to send 10 RC channels in total encoded as following -* channels 1 to 6 encoded using 10 bits each -* channels 7 to 11 encoded using 4 bits per channel +* channels 1 to 4 encoded using 10 bits each (5 bytes) +* channels 5 to 6 encoded using 8 bits each (2 bytes) +* channels 7 to 10 encoded using 4 bits per channel (2 bytes) -Total length of `RC_DATA` payload is 10 bytes +Total length of `RC_DATA` payload is 9 bytes ### `RX_HEALTH` frame format -| Byte | Description | -| ---- | ---- | -| 0 | RX RSSI | -| 1 | RX supply volatage, sent in 0,1V | -| 2 | RX analog input 1 sent in 0,1V | -| 3 | RX analog input 2 sent in 0,1V | +| Byte | Description | +| ---- | ---- | +| 0 | RX RSSI | +| 1 | RX supply volatage, sent in 0,1V | +| 2 | RX analog input 1 sent in 0,1V | +| 3 | RX analog input 2 sent in 0,1V |