From 6447cc25190a8186b588d7fe683481e7362c4c94 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 2 Dec 2019 18:46:49 +1100 Subject: [PATCH] HAL_ChibiOS: support receiver RSSI --- libraries/AP_HAL_ChibiOS/RCInput.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/RCInput.cpp b/libraries/AP_HAL_ChibiOS/RCInput.cpp index ced9e78aa0..d06964ecba 100644 --- a/libraries/AP_HAL_ChibiOS/RCInput.cpp +++ b/libraries/AP_HAL_ChibiOS/RCInput.cpp @@ -152,6 +152,7 @@ void RCInput::_timer_tick(void) for (uint8_t i=0; i<_num_channels; i++) { _rc_values[i] = AP::RC().read(i); } + _rssi = AP::RC().get_RSSI(); rcin_mutex.give(); #ifndef HAL_NO_UARTDRIVER rc_protocol = AP::RC().protocol_name(); @@ -180,6 +181,7 @@ void RCInput::_timer_tick(void) _rcin_timestamp_last_signal = last_iomcu_us; #ifndef HAL_NO_UARTDRIVER rc_protocol = iomcu.get_rc_protocol(); + _rssi = iomcu.get_RSSI(); #endif } rcin_mutex.give();