diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-06-28 00:54:27 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-06-28 00:54:27 +0200 |
commit | 456e628e129b446d18246ab8ad312a15beea5996 (patch) | |
tree | aad2681e14611e69dbbd5ffcfa3580f22fd441fb /src/modules/navigator/rtl.h | |
parent | affc312411b7634fa13bab6da8889de90f964ce8 (diff) | |
download | px4-firmware-456e628e129b446d18246ab8ad312a15beea5996.tar.gz px4-firmware-456e628e129b446d18246ab8ad312a15beea5996.tar.bz2 px4-firmware-456e628e129b446d18246ab8ad312a15beea5996.zip |
navigator: NavigatorMode and MissionBlock API cleanup
Diffstat (limited to 'src/modules/navigator/rtl.h')
-rw-r--r-- | src/modules/navigator/rtl.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/modules/navigator/rtl.h b/src/modules/navigator/rtl.h index b4b729e89..9c8b3fdfc 100644 --- a/src/modules/navigator/rtl.h +++ b/src/modules/navigator/rtl.h @@ -57,29 +57,15 @@ class Navigator; class RTL : public MissionBlock { public: - /** - * Constructor - */ RTL(Navigator *navigator, const char *name); - /** - * Destructor - */ ~RTL(); - /** - * This function is called while the mode is inactive - */ - void on_inactive(); + virtual void on_inactive(); - /** - * This function is called while the mode is active - * - * @param position setpoint triplet that needs to be set - * @return true if updated - */ - bool on_active(position_setpoint_triplet_s *pos_sp_triplet); + virtual void on_activation(position_setpoint_triplet_s *pos_sp_triplet); + virtual bool on_active(position_setpoint_triplet_s *pos_sp_triplet); private: /** |