mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 02:03:33 +08:00
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:
committed by
Daniel Agar
parent
08a27492b4
commit
1a79f75f94
@@ -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 */
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user