diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-01-10 18:18:28 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-01-10 19:50:44 +0100 |
commit | 1507d479e099549a81c99fd9f702b4a278fa763d (patch) | |
tree | ba97cfdc1fccf7b31f577505c7da79f2de753b5b /src/modules | |
parent | c51b73c1967199aafc8d31262172be51fe987fae (diff) | |
download | px4-firmware-1507d479e099549a81c99fd9f702b4a278fa763d.tar.gz px4-firmware-1507d479e099549a81c99fd9f702b4a278fa763d.tar.bz2 px4-firmware-1507d479e099549a81c99fd9f702b4a278fa763d.zip |
commander: Refresh safety tests to avoid false positives in unit tests.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/commander/commander_tests/state_machine_helper_test.cpp | 2 |
1 files changed, 2 insertions, 0 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 874090e93..3cfa8b4c6 100644 --- a/src/modules/commander/commander_tests/state_machine_helper_test.cpp +++ b/src/modules/commander/commander_tests/state_machine_helper_test.cpp @@ -280,6 +280,8 @@ bool StateMachineHelperTest::armingStateTransitionTest(void) status.arming_state = test->current_state.arming_state; status.condition_system_sensors_initialized = test->condition_system_sensors_initialized; status.hil_state = test->hil_state; + // The power status of the test unit is not relevant for the unit test + status.circuit_breaker_engaged_power_check = true; safety.safety_switch_available = test->safety_switch_available; safety.safety_off = test->safety_off; armed.armed = test->current_state.armed; |