navigator: publish distance sensor mode change request when in RTL landing phase or during mission landing

This commit is contained in:
Konrad
2024-09-16 09:11:23 +02:00
committed by KonradRudin
parent 1755b8304e
commit aab2390e51
9 changed files with 78 additions and 1 deletions
@@ -58,6 +58,9 @@ public:
void on_activation() override;
void on_active() override;
void on_inactive() override;
void on_inactivation() override;
bool isLanding() override {return _in_landing_phase;};
rtl_time_estimate_s calc_rtl_time_estimate() override;
@@ -68,5 +71,7 @@ private:
int _mission_index_prior_rtl{-1};
bool _in_landing_phase{false};
uORB::SubscriptionData<home_position_s> _home_pos_sub{ORB_ID(home_position)}; /**< home position subscription */
};