Browse Source

PreflightCheck: do not check for primary mag & inconsistencies if system has no mag

sbg
Beat Küng 7 years ago
parent
commit
92bf761bf1
  1. 2
      src/modules/commander/PreflightCheck.cpp

2
src/modules/commander/PreflightCheck.cpp

@ -717,6 +717,7 @@ bool preflightCheck(orb_advert_t *mavlink_log_pub, vehicle_status_s &status,
} }
} }
if (sys_has_mag == 1) {
/* check if the primary device is present */ /* check if the primary device is present */
if (!prime_found) { if (!prime_found) {
if (reportFailures && !failed) { if (reportFailures && !failed) {
@ -732,6 +733,7 @@ bool preflightCheck(orb_advert_t *mavlink_log_pub, vehicle_status_s &status,
failed = true; failed = true;
} }
} }
}
/* ---- ACCEL ---- */ /* ---- ACCEL ---- */
if (checkSensors) { if (checkSensors) {

Loading…
Cancel
Save