aboutsummaryrefslogtreecommitdiff
path: root/src/modules/uORB
diff options
context:
space:
mode:
authorDon Gagne <don@thegagnes.com>2014-03-26 14:51:57 -0700
committerDon Gagne <don@thegagnes.com>2014-03-26 14:51:57 -0700
commit521539897e59f495adaae481911e3a4ac847625e (patch)
treef78bb546f6b90343a2e5600b5c2430ed96537f56 /src/modules/uORB
parent783a2403969032e8c0119196cb94c092847965d1 (diff)
downloadpx4-firmware-521539897e59f495adaae481911e3a4ac847625e.tar.gz
px4-firmware-521539897e59f495adaae481911e3a4ac847625e.tar.bz2
px4-firmware-521539897e59f495adaae481911e3a4ac847625e.zip
Simpler state transition code
Also fixed ARMING_STATE_ARMED_ERROR->ARMING_STATE_STANDBY_ERROR transition.
Diffstat (limited to 'src/modules/uORB')
-rw-r--r--src/modules/uORB/topics/vehicle_status.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/uORB/topics/vehicle_status.h b/src/modules/uORB/topics/vehicle_status.h
index 5d40554fd..0071d3125 100644
--- a/src/modules/uORB/topics/vehicle_status.h
+++ b/src/modules/uORB/topics/vehicle_status.h
@@ -69,6 +69,8 @@ typedef enum {
MAIN_STATE_MAX
} main_state_t;
+// If you change the order, add or remove arming_state_t states make sure to update the arrays
+// in state_machine_helper.cpp as well.
typedef enum {
ARMING_STATE_INIT = 0,
ARMING_STATE_STANDBY,