diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-01-25 23:24:12 +0100 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-01-25 23:24:12 +0100 |
commit | ebc7cb03b726ebfb864e770a82b92bb67b6bfd4c (patch) | |
tree | 52e78eeb79037b29acd694208c257a76dd859124 /src/modules/uORB/topics/vehicle_status.h | |
parent | e8a1b620e9a5e69db0523d70c3a0833754aa21b2 (diff) | |
download | px4-firmware-ebc7cb03b726ebfb864e770a82b92bb67b6bfd4c.tar.gz px4-firmware-ebc7cb03b726ebfb864e770a82b92bb67b6bfd4c.tar.bz2 px4-firmware-ebc7cb03b726ebfb864e770a82b92bb67b6bfd4c.zip |
«flighttermination state» replaced by more general «failsafe state»
Diffstat (limited to 'src/modules/uORB/topics/vehicle_status.h')
-rw-r--r-- | src/modules/uORB/topics/vehicle_status.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/uORB/topics/vehicle_status.h b/src/modules/uORB/topics/vehicle_status.h index 1a9dec5f5..a3a862d85 100644 --- a/src/modules/uORB/topics/vehicle_status.h +++ b/src/modules/uORB/topics/vehicle_status.h @@ -82,9 +82,11 @@ typedef enum { } hil_state_t; typedef enum { - FLIGHTTERMINATION_STATE_OFF = 0, - FLIGHTTERMINATION_STATE_ON -} flighttermination_state_t; + FAILSAFE_STATE_NORMAL = 0, + FAILSAFE_STATE_RTL, + FAILSAFE_STATE_TERMINATION, + FAILSAFE_STATE_MAX +} failsafe_state_t; typedef enum { MODE_SWITCH_MANUAL = 0, @@ -173,6 +175,7 @@ struct vehicle_status_s uint64_t set_nav_state_timestamp; /**< timestamp of latest change of set_nav_state */ arming_state_t arming_state; /**< current arming state */ hil_state_t hil_state; /**< current hil state */ + failsafe_state_t failsafe_state; /**< current failsafe state */ int32_t system_type; /**< system type, inspired by MAVLink's VEHICLE_TYPE enum */ int32_t system_id; /**< system id, inspired by MAVLink's system ID field */ @@ -223,8 +226,6 @@ struct vehicle_status_s uint16_t errors_count2; uint16_t errors_count3; uint16_t errors_count4; - - flighttermination_state_t flighttermination_state; }; /** |