Commander: start pulling arming related parts into separate folder

* PreFlightCheck: remove unused reportFailures flag
* Commander: pull all pre flight checks together on the PreFlightCheck class
* PreFlightCheck: separate checks into their own files
This commit is contained in:
Matthias Grob
2019-11-05 11:25:59 -05:00
committed by Daniel Agar
parent 08a27492b4
commit 1a79f75f94
32 changed files with 1838 additions and 1281 deletions
@@ -37,6 +37,5 @@ px4_add_module(
commander_tests.cpp
state_machine_helper_test.cpp
../state_machine_helper.cpp
../PreflightCheck.cpp
DEPENDS
)
@@ -42,6 +42,7 @@
#include "../state_machine_helper.h"
#include <unit_test.h>
#include "../Arming/PreFlightCheck/PreFlightCheck.hpp"
class StateMachineHelperTest : public UnitTest
{
@@ -304,7 +305,7 @@ bool StateMachineHelperTest::armingStateTransitionTest()
true /* enable pre-arm checks */,
nullptr /* no mavlink_log_pub */,
&status_flags,
(check_gps ? ARM_REQ_GPS_BIT : 0),
(check_gps ? PreFlightCheck::ARM_REQ_GPS_BIT : 0),
2e6 /* 2 seconds after boot, everything should be checked */
);