mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 16:23:34 +08:00
commander: enable partial preflight checks on RPI
Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com>
This commit is contained in:
committed by
Kabir Mohammed
parent
6201fb5641
commit
a0ee07e357
@@ -561,8 +561,13 @@ bool preflightCheck(orb_advert_t *mavlink_log_pub, bool checkMag, bool checkAcc,
|
|||||||
PX4_WARN("Preflight checks always pass on Snapdragon.");
|
PX4_WARN("Preflight checks always pass on Snapdragon.");
|
||||||
return true;
|
return true;
|
||||||
#elif defined(__PX4_POSIX_RPI)
|
#elif defined(__PX4_POSIX_RPI)
|
||||||
PX4_WARN("Preflight checks always pass on RPI.");
|
if (reportFailures) {
|
||||||
return true;
|
PX4_WARN("Preflight checks for mag, acc, gyro always pass on RPI");
|
||||||
|
}
|
||||||
|
|
||||||
|
checkMag = false;
|
||||||
|
checkAcc = false;
|
||||||
|
checkGyro = false;
|
||||||
#elif defined(__PX4_POSIX_BEBOP)
|
#elif defined(__PX4_POSIX_BEBOP)
|
||||||
PX4_WARN("Preflight checks always pass on Bebop.");
|
PX4_WARN("Preflight checks always pass on Bebop.");
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user