Skip to content

Commit

Permalink
AP_RCTelemetry: add CRSF expanded link stats OSD fields
Browse files Browse the repository at this point in the history
Adds RSSI dBm, SNR, LQ, Tx power and active antenna OSD fields
  • Loading branch information
rmaia3d committed Feb 28, 2024
1 parent f0c9cfd commit 5ae4461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_RCTelemetry/AP_CRSF_Telem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ AP_RCProtocol_CRSF::RFMode AP_CRSF_Telem::get_rf_mode() const

if (!_crsf_version.pending && _crsf_version.use_rf_mode) {
if (is_elrs()) {
return static_cast<AP_RCProtocol_CRSF::RFMode>(uint8_t(AP_RCProtocol_CRSF::RFMode::ELRS_RF_MODE_4HZ) + crsf->get_link_status().rf_mode);
return static_cast<AP_RCProtocol_CRSF::RFMode>(uint8_t(AP_RCProtocol_CRSF::RFMode::CRSF_RF_MAX_MODES) + crsf->get_link_status().rf_mode);
}
return static_cast<AP_RCProtocol_CRSF::RFMode>(crsf->get_link_status().rf_mode);
} else if (is_tracer()) {
Expand Down

0 comments on commit 5ae4461

Please sign in to comment.