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/commander/state_machine_helper.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/commander/state_machine_helper.h')
-rw-r--r-- | src/modules/commander/state_machine_helper.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/commander/state_machine_helper.h b/src/modules/commander/state_machine_helper.h index 0bfdf36a8..e1ec9d4ad 100644 --- a/src/modules/commander/state_machine_helper.h +++ b/src/modules/commander/state_machine_helper.h @@ -70,8 +70,12 @@ bool check_main_state_changed(); transition_result_t navigation_state_transition(struct vehicle_status_s *status, navigation_state_t new_navigation_state, struct vehicle_control_mode_s *control_mode); +transition_result_t flighttermination_state_transition(struct vehicle_status_s *status, flighttermination_state_t new_flighttermination_state, struct vehicle_control_mode_s *control_mode); + bool check_navigation_state_changed(); +bool check_flighttermination_state_changed(); + void set_navigation_state_changed(); int hil_state_transition(hil_state_t new_state, int status_pub, struct vehicle_status_s *current_state, int control_mode_pub, struct vehicle_control_mode_s *current_control_mode, const int mavlink_fd); |