commander: enable partial preflight checks on RPI

Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com>
This commit is contained in:
Nicolae Rosia 2017-05-18 21:20:08 +03:00 committed by Kabir Mohammed
parent 6201fb5641
commit a0ee07e357
1 changed files with 7 additions and 2 deletions

View File

@ -561,8 +561,13 @@ bool preflightCheck(orb_advert_t *mavlink_log_pub, bool checkMag, bool checkAcc,
PX4_WARN("Preflight checks always pass on Snapdragon.");
return true;
#elif defined(__PX4_POSIX_RPI)
PX4_WARN("Preflight checks always pass on RPI.");
return true;
if (reportFailures) {
PX4_WARN("Preflight checks for mag, acc, gyro always pass on RPI");
}
checkMag = false;
checkAcc = false;
checkGyro = false;
#elif defined(__PX4_POSIX_BEBOP)
PX4_WARN("Preflight checks always pass on Bebop.");
return true;