From 7d3f0d07b794f22a2a44760e8d3b96c91b6bc6a1 Mon Sep 17 00:00:00 2001 From: Pete A Date: Fri, 20 Oct 2023 11:41:36 +0100 Subject: [PATCH] Fix betaflight RC channels by uncommenting a couple of lines --- app/telemetry/models/fcmavlinksystem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/telemetry/models/fcmavlinksystem.cpp b/app/telemetry/models/fcmavlinksystem.cpp index e016a4b5e..781e675a3 100644 --- a/app/telemetry/models/fcmavlinksystem.cpp +++ b/app/telemetry/models/fcmavlinksystem.cpp @@ -232,12 +232,12 @@ bool FCMavlinkSystem::process_message(const mavlink_message_t &msg) break; } case MAVLINK_MSG_ID_RC_CHANNELS_RAW:{ - // Seems to be outdated + // Seems to be outdated. Apart from Betaflight, where this is life //qDebug()<<"Got message RC channels raw"; mavlink_rc_channels_raw_t rc_channels_raw; mavlink_msg_rc_channels_raw_decode(&msg, &rc_channels_raw); - //const auto tmp=Telemetryutil::mavlink_msg_rc_channels_raw_to_array(rc_channels_raw); - //RCChannelsModel::instanceFC().update_all_channels(tmp); + const auto tmp=Telemetryutil::mavlink_msg_rc_channels_raw_to_array(rc_channels_raw); + RCChannelsModel::instanceFC().update_all_channels(tmp); set_rc_rssi_percentage( Telemetryutil::mavlink_rc_rssi_to_percent(rc_channels_raw.rssi)); break; }