diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2013-12-08 16:52:41 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2013-12-08 16:52:41 +0100 |
commit | 278e05e425f6aca75e2d6b43a17945b095176997 (patch) | |
tree | a34782d0ca8f528d589ec18b3f037c5a84242354 /src/modules/uORB/topics/vehicle_status.h | |
parent | 4d846b480c9118090fe60a887fb1eb0824b38f56 (diff) | |
download | px4-firmware-278e05e425f6aca75e2d6b43a17945b095176997.tar.gz px4-firmware-278e05e425f6aca75e2d6b43a17945b095176997.tar.bz2 px4-firmware-278e05e425f6aca75e2d6b43a17945b095176997.zip |
added simple flight termination state machine which enbales parachute on request
Diffstat (limited to 'src/modules/uORB/topics/vehicle_status.h')
-rw-r--r-- | src/modules/uORB/topics/vehicle_status.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/uORB/topics/vehicle_status.h b/src/modules/uORB/topics/vehicle_status.h index 1c184d3a7..1c3763924 100644 --- a/src/modules/uORB/topics/vehicle_status.h +++ b/src/modules/uORB/topics/vehicle_status.h @@ -95,6 +95,12 @@ typedef enum { HIL_STATE_ON } hil_state_t; + +typedef enum { + FLIGHTTERMINATION_STATE_OFF = 0, + FLIGHTTERMINATION_STATE_ON +} flighttermination_state_t; + typedef enum { MODE_SWITCH_MANUAL = 0, MODE_SWITCH_ASSISTED, @@ -229,6 +235,8 @@ struct vehicle_status_s uint16_t errors_count2; uint16_t errors_count3; uint16_t errors_count4; + + flighttermination_state_t flighttermination_state; }; /** |