From 9a5aa4f11285358fbee3feefa88f0fc906286852 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 30 Mar 2016 10:00:22 +0200 Subject: [PATCH] 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. --- src/modules/commander/PreflightCheck.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/modules/commander/PreflightCheck.cpp b/src/modules/commander/PreflightCheck.cpp index 49b39147d4..5fdd5b7f4c 100644 --- a/src/modules/commander/PreflightCheck.cpp +++ b/src/modules/commander/PreflightCheck.cpp @@ -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; }