RC_DATA protocol frame updated

This commit is contained in:
Pawel Spychalski (DzikuVx)
2017-09-23 10:50:15 +02:00
parent fc088ae764
commit cac6172d06

View File

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