mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user