From cea8ad4236b77c36669d9208db1a4869773c32b5 Mon Sep 17 00:00:00 2001 From: Ryan Johnston <31726584+ryanjAA@users.noreply.github.com> Date: Tue, 19 Jan 2021 13:16:17 -0600 Subject: [PATCH] Control Zero F7 - RSSI Fix - SBUS Only/PPM Partial This fixes RSSI for the Control Zero F7 but I have noticed that while this works perfectly for SBUS receivers, for PPM receivers it does not decrease the RSSI visual value in QGC when removing the RC transmitter connection. When a PPM receiver is connected and the connection is lost the autopilot goes into RC Scan Mode (in the RC Update Module) to determine what is connected (even though something already is connected). The main issue with this is that PPM receivers don't go into RC Failsafe but I don't think it is an issue with this autopilot. It looks to be an issue with the RC Update Module and how it is handled at the module level for non I/O coprocessor autopilots. Tested with an X8R (SBUS) and a Dragonlink (PPM) as well as a Dragonlink set to SBUS as the output. SBUS worked as intended. See screenshots below. --- boards/mro/ctrl-zero-f7/src/board_config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/mro/ctrl-zero-f7/src/board_config.h b/boards/mro/ctrl-zero-f7/src/board_config.h index a6f5e70f5b..b18806fd3b 100644 --- a/boards/mro/ctrl-zero-f7/src/board_config.h +++ b/boards/mro/ctrl-zero-f7/src/board_config.h @@ -87,13 +87,13 @@ #define ADC_BATTERY_VOLTAGE_CHANNEL /* PA2 */ ADC1_CH(2) #define ADC_BATTERY_CURRENT_CHANNEL /* PA3 */ ADC1_CH(3) #define ADC_SCALED_V5_CHANNEL /* PA4 */ ADC1_CH(4) -#define ADC_RSSI_IN_CHANNEL /* PC1 */ ADC1_CH(11) +#define ADC_RC_RSSI_CHANNEL /* PC1 */ ADC1_CH(11) #define ADC_CHANNELS \ ((1 << ADC_BATTERY_VOLTAGE_CHANNEL) | \ (1 << ADC_BATTERY_CURRENT_CHANNEL) | \ (1 << ADC_SCALED_V5_CHANNEL) | \ - (1 << ADC_RSSI_IN_CHANNEL)) + (1 << ADC_RC_RSSI_CHANNEL)) /* Define Battery 1 Voltage Divider and A per V */ #define BOARD_BATTERY1_V_DIV (18.1f) /* measured with the provided PM board */