RC_DATA protocol frame updated
This commit is contained in:
25
README.md
25
README.md
@@ -13,8 +13,8 @@ Cheap DIY RC link based on LoRa 868MHz modules
|
|||||||
|
|
||||||
## Frame types
|
## Frame types
|
||||||
|
|
||||||
| Value | Description | Direction |
|
| Value | Description | Direction |
|
||||||
| ---- | ---- | ---- |
|
| ---- | ---- | ---- |
|
||||||
| 000 | RC channels data `RC_DATA` | TX -> RX |
|
| 000 | RC channels data `RC_DATA` | TX -> RX |
|
||||||
| 001 | Receiver health and basic telemetry `RX_HEALTH` | RX -> TX |
|
| 001 | Receiver health and basic telemetry `RX_HEALTH` | RX -> TX |
|
||||||
| 010 | Request receiver configuration | TX -> RX |
|
| 010 | Request receiver configuration | TX -> RX |
|
||||||
@@ -23,18 +23,19 @@ Cheap DIY RC link based on LoRa 868MHz modules
|
|||||||
|
|
||||||
### `RC_DATA` frame format
|
### `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 1 to 4 encoded using 10 bits each (5 bytes)
|
||||||
* channels 7 to 11 encoded using 4 bits per channel
|
* 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
|
### `RX_HEALTH` frame format
|
||||||
|
|
||||||
| Byte | Description |
|
| Byte | Description |
|
||||||
| ---- | ---- |
|
| ---- | ---- |
|
||||||
| 0 | RX RSSI |
|
| 0 | RX RSSI |
|
||||||
| 1 | RX supply volatage, sent in 0,1V |
|
| 1 | RX supply volatage, sent in 0,1V |
|
||||||
| 2 | RX analog input 1 sent in 0,1V |
|
| 2 | RX analog input 1 sent in 0,1V |
|
||||||
| 3 | RX analog input 2 sent in 0,1V |
|
| 3 | RX analog input 2 sent in 0,1V |
|
||||||
|
|||||||
Reference in New Issue
Block a user