rc_update: introduce support for toggle buttons via RC channels

Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
Claudio Micheli
2021-09-14 09:52:32 +02:00
committed by Matthias Grob
parent ca2d8f6de2
commit c50daae4a3
4 changed files with 132 additions and 3 deletions
+8 -1
View File
@@ -26,11 +26,18 @@ uint8 FUNCTION_ARMSWITCH = 22
uint8 FUNCTION_STAB = 23
uint8 FUNCTION_AUX_6 = 24
uint8 FUNCTION_MAN = 25
uint8 FUNCTION_FLTBTN_SLOT_1=26
uint8 FUNCTION_FLTBTN_SLOT_2=27
uint8 FUNCTION_FLTBTN_SLOT_3=28
uint8 FUNCTION_FLTBTN_SLOT_4=39
uint8 FUNCTION_FLTBTN_SLOT_5=30
uint8 FUNCTION_FLTBTN_SLOT_6=31
uint8 FUNCTION_FLTBTN_NUM_SLOTS=6
uint64 timestamp_last_valid # Timestamp of last valid RC signal
float32[18] channels # Scaled to -1..1 (throttle: 0..1)
uint8 channel_count # Number of valid channels
int8[26] function # Functions mapping
int8[32] function # Functions mapping
uint8 rssi # Receive signal strength index
bool signal_lost # Control signal lost, should be checked together with topic timeout
uint32 frame_drop_count # Number of dropped frames