Browse Source

AP_RCTelemetry: warn if Passthru miss-configured

Co-authored-by: Alessandro Apostoli <30294218+yaapu@users.noreply.github.com>
gps-1.3.1
Hwurzburg 4 years ago committed by Andrew Tridgell
parent
commit
89246739c4
  1. 8
      libraries/AP_RCTelemetry/AP_CRSF_Telem.cpp

8
libraries/AP_RCTelemetry/AP_CRSF_Telem.cpp

@ -94,6 +94,14 @@ void AP_CRSF_Telem::setup_custom_telemetry() @@ -94,6 +94,14 @@ void AP_CRSF_Telem::setup_custom_telemetry()
return;
}
// check if passthru already assigned
const int8_t frsky_port = AP::serialmanager().find_portnum(AP_SerialManager::SerialProtocol_FrSky_SPort_Passthrough,0);
if (frsky_port != -1) {
gcs().send_text(MAV_SEVERITY_CRITICAL, "CRSF: passthrough telemetry conflict on SERIAL%d",frsky_port);
_custom_telem.init_done = true;
return;
}
// we need crossfire firmware version
if (_crsf_version.pending) {
return;

Loading…
Cancel
Save