mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 10:41:35 +08:00
Navigator remove unnecessary calls to updateParams
- the SuperBlock already does this
This commit is contained in:
committed by
Lorenz Meier
parent
6227139df1
commit
25c7a03a8b
@@ -47,21 +47,16 @@
|
||||
#include "navigator_mode.h"
|
||||
#include "mission_block.h"
|
||||
|
||||
class Takeoff : public MissionBlock
|
||||
class Takeoff final : public MissionBlock
|
||||
{
|
||||
public:
|
||||
Takeoff(Navigator *navigator, const char *name);
|
||||
~Takeoff() = default;
|
||||
|
||||
~Takeoff();
|
||||
|
||||
virtual void on_inactive();
|
||||
|
||||
virtual void on_activation();
|
||||
|
||||
virtual void on_active();
|
||||
void on_activation() override;
|
||||
void on_active() override;
|
||||
|
||||
private:
|
||||
control::BlockParamFloat _param_min_alt;
|
||||
|
||||
void set_takeoff_position();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user