From 50e95b6919f6983fab5e41a5c961f11098d054ee Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sat, 1 Jul 2023 14:45:16 +0100 Subject: [PATCH] AP_RCProtocol: report tracer frame rate correctly --- libraries/AP_RCProtocol/AP_RCProtocol_CRSF.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_RCProtocol/AP_RCProtocol_CRSF.cpp b/libraries/AP_RCProtocol/AP_RCProtocol_CRSF.cpp index 9c4350a00d..70042f3d04 100644 --- a/libraries/AP_RCProtocol/AP_RCProtocol_CRSF.cpp +++ b/libraries/AP_RCProtocol/AP_RCProtocol_CRSF.cpp @@ -202,6 +202,8 @@ const char* AP_RCProtocol_CRSF::get_protocol_string(ProtocolType protocol) const uint16_t AP_RCProtocol_CRSF::get_link_rate(ProtocolType protocol) const { if (protocol == ProtocolType::PROTOCOL_ELRS) { return RF_MODE_RATES[_link_status.rf_mode + RFMode::ELRS_RF_MODE_4HZ]; + } else if (protocol == ProtocolType::PROTOCOL_TRACER) { + return 250; } else { return RF_MODE_RATES[_link_status.rf_mode]; }