vehicle_status: add latest arming/disarming reason

Makes it easier to debug.
This commit is contained in:
Beat Küng
2020-08-04 10:55:26 +02:00
committed by Daniel Agar
parent 1f5d0cd2d0
commit 5f8c6512b3
6 changed files with 106 additions and 21 deletions
@@ -305,8 +305,8 @@ bool StateMachineHelperTest::armingStateTransitionTest()
nullptr /* no mavlink_log_pub */,
&status_flags,
arm_req,
2e6 /* 2 seconds after boot, everything should be checked */
);
2e6, /* 2 seconds after boot, everything should be checked */
arm_disarm_reason_t::UNIT_TEST);
// Validate result of transition
ut_compare(test->assertMsg, test->expected_transition_result, result);