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:
José Roberto de Souza
2017-08-28 08:28:57 +02:00
committed by Lorenz Meier
parent e5924f8172
commit 7e3ab95975
4 changed files with 34 additions and 37 deletions
@@ -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 */
);