diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-19 14:08:49 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-20 09:14:13 +0200 |
commit | 4f0896b10592e235658620ef8f4e93be4e1a7582 (patch) | |
tree | 4889e0939be3a33c1257c5f315c56f104ab9029a /src/modules/commander/commander_tests | |
parent | 7dbb6c4fa80039bd9c42a83161f18da9033ac40a (diff) | |
download | px4-firmware-4f0896b10592e235658620ef8f4e93be4e1a7582.tar.gz px4-firmware-4f0896b10592e235658620ef8f4e93be4e1a7582.tar.bz2 px4-firmware-4f0896b10592e235658620ef8f4e93be4e1a7582.zip |
commander tests: Update test routine to match expected / designed error handling behaviour
Diffstat (limited to 'src/modules/commander/commander_tests')
-rw-r--r-- | src/modules/commander/commander_tests/state_machine_helper_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/commander/commander_tests/state_machine_helper_test.cpp b/src/modules/commander/commander_tests/state_machine_helper_test.cpp index 4ddb4e0fb..967304cb4 100644 --- a/src/modules/commander/commander_tests/state_machine_helper_test.cpp +++ b/src/modules/commander/commander_tests/state_machine_helper_test.cpp @@ -255,10 +255,10 @@ bool StateMachineHelperTest::armingStateTransitionTest(void) // Sensor tests - { "no transition: init to standby - sensors not initialized", + { "transition to standby error: init to standby - sensors not initialized", { vehicle_status_s::ARMING_STATE_INIT, ATT_DISARMED, ATT_NOT_READY_TO_ARM }, vehicle_status_s::HIL_STATE_OFF, ATT_SENSORS_NOT_INITIALIZED, ATT_SAFETY_AVAILABLE, ATT_SAFETY_ON, vehicle_status_s::ARMING_STATE_STANDBY, - { vehicle_status_s::ARMING_STATE_INIT, ATT_DISARMED, ATT_NOT_READY_TO_ARM }, TRANSITION_DENIED }, + { vehicle_status_s::ARMING_STATE_STANDBY_ERROR, ATT_DISARMED, ATT_NOT_READY_TO_ARM }, TRANSITION_DENIED }, // Safety switch arming tests |