Failure Detector - Various cleanup and style changes.

- use pragma once guard in FailureDetector.hpp
- send Commander parent to ModuleParams and remove update_params() method
- simplify attitude checks
- FailureDetector::get_status() (previously named "get") is now a constant method that returns a constant reference
This commit is contained in:
bresch
2018-08-28 11:23:25 -04:00
committed by Daniel Agar
parent 04c765f497
commit c4c8e8d2db
4 changed files with 22 additions and 48 deletions
+1
View File
@@ -129,6 +129,7 @@ private:
bool _nav_test_failed{false}; /**< true if the post takeoff navigation test has failed */
FailureDetector _failure_detector;
bool _failure_detector_termination_printed{false};
bool handle_command(vehicle_status_s *status, const vehicle_command_s &cmd,
actuator_armed_s *armed, home_position_s *home, orb_advert_t *home_pub, orb_advert_t *command_ack_pub, bool *changed);