mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 15:33:33 +08:00
modules: commander: Group arm requirements in just one byte and add a new requirement
Instead of having several bools to each requirement to arm, lets group then in a byte and use bitmask. This also add a new arm requirement "arm authorization" that will be implemented in another patch.
This commit is contained in:
committed by
Lorenz Meier
parent
e5924f8172
commit
7e3ab95975
@@ -297,8 +297,7 @@ bool StateMachineHelperTest::armingStateTransitionTest()
|
||||
nullptr /* no mavlink_log_pub */,
|
||||
&status_flags,
|
||||
5.0f, /* avionics rail voltage */
|
||||
check_gps,
|
||||
false, /* valid mission not required*/
|
||||
(check_gps ? ARM_REQ_GPS_BIT : 0),
|
||||
2e6 /* 2 seconds after boot, everything should be checked */
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user