mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_RCTelemetry: add extended RC link stats OSD fields
Adds RSSI dBm, SNR, LQ, Tx power and active antenna OSD fields
This commit is contained in:
parent
2a7d9f5b5c
commit
d587000c57
@ -258,7 +258,7 @@ AP_RCProtocol_CRSF::RFMode AP_CRSF_Telem::get_rf_mode() const
|
|||||||
|
|
||||||
if (!_crsf_version.pending && _crsf_version.use_rf_mode) {
|
if (!_crsf_version.pending && _crsf_version.use_rf_mode) {
|
||||||
if (is_elrs()) {
|
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);
|
return static_cast<AP_RCProtocol_CRSF::RFMode>(crsf->get_link_status().rf_mode);
|
||||||
} else if (is_tracer()) {
|
} else if (is_tracer()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user