commander: pass PreflightCheck on Snapdragon

The tests don't work properly on Snapdragon yet, so just report happy
for now. Otherwise users get messages such as "No Gyro found" which is
wrong.
This commit is contained in:
Julian Oes
2016-03-30 10:00:22 +02:00
parent 99723975a6
commit 9a5aa4f112

View File

@@ -385,6 +385,14 @@ static bool gnssCheck(orb_advert_t *mavlink_log_pub, bool report_fail)
bool preflightCheck(orb_advert_t *mavlink_log_pub, bool checkMag, bool checkAcc, bool checkGyro,
bool checkBaro, bool checkAirspeed, bool checkRC, bool checkGNSS, bool checkDynamic, bool reportFailures)
{
#ifdef __PX4_QURT
// WARNING: Preflight checks are important and should be added back when
// all the sensors are supported
PX4_WARN("WARNING: Preflight checks PASS always.");
return true;
#endif
bool failed = false;
/* ---- MAG ---- */
@@ -528,14 +536,6 @@ bool preflightCheck(orb_advert_t *mavlink_log_pub, bool checkMag, bool checkAcc,
}
}
#ifdef __PX4_QURT
// WARNING: Preflight checks are important and should be added back when
// all the sensors are supported
PX4_WARN("WARNING: Preflight checks PASS always.");
failed = false;
#endif
/* Report status */
return !failed;
}