aboutsummaryrefslogtreecommitdiff
path: root/src/modules/commander/state_machine_helper.cpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-07-20 14:31:23 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-07-20 14:31:23 +0200
commitf3b8890601e40e5131c55e6f96ad1452a53410eb (patch)
tree2c7c9149741e7dcf3cf3186c599234ee59cea827 /src/modules/commander/state_machine_helper.cpp
parentb3a80025b3bf514e987d19b7292ba0f9d16d7d1d (diff)
downloadpx4-firmware-f3b8890601e40e5131c55e6f96ad1452a53410eb.tar.gz
px4-firmware-f3b8890601e40e5131c55e6f96ad1452a53410eb.tar.bz2
px4-firmware-f3b8890601e40e5131c55e6f96ad1452a53410eb.zip
commander: Explain sensor arming fail case to users
Diffstat (limited to 'src/modules/commander/state_machine_helper.cpp')
-rw-r--r--src/modules/commander/state_machine_helper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/commander/state_machine_helper.cpp b/src/modules/commander/state_machine_helper.cpp
index 4ca8471fc..16ed8dd52 100644
--- a/src/modules/commander/state_machine_helper.cpp
+++ b/src/modules/commander/state_machine_helper.cpp
@@ -200,6 +200,7 @@ arming_state_transition(struct vehicle_status_s *status, /// current
/* Sensors need to be initialized for STANDBY state */
if (new_arming_state == ARMING_STATE_STANDBY && !status->condition_system_sensors_initialized) {
+ mavlink_log_critical(mavlink_fd, "NOT ARMING: Sensors not operational.");
valid_transition = false;
}