The goal of this patch is to allow compatibility with GR12/GR16/GR24 graupner receiver by :

- allowing decoding of SUMD frame with failsafe bit set
- updating stack failsafe state with the sumd failsafe info

Refer to #5817 issue
This commit is contained in:
Benoit3
2016-11-12 14:28:57 +01:00
committed by Lorenz Meier
parent 697d401b73
commit 83e9e1c382
5 changed files with 22 additions and 9 deletions
+2 -1
View File
@@ -302,9 +302,10 @@ bool RCTest::sumdTest(void)
uint8_t rx_count;
uint16_t channel_count;
uint16_t channels[32];
bool sumd_failsafe;
if (!sumd_decode(b, &rssi, &rx_count, &channel_count, channels, 32)) {
if (!sumd_decode(b, &rssi, &rx_count, &channel_count, channels, 32, &sumd_failsafe)) {
//PX4_INFO("decoded: %u channels (converted to PPM range)", (unsigned)channel_count);
for (unsigned i = 0; i < channel_count; i++) {