mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 09:43:33 +08:00
Manual Smoth Vel - Override reActivate to not reset Z axis (prevented takeoff)
This commit is contained in:
+3
@@ -50,6 +50,7 @@ public:
|
||||
virtual ~FlightTaskManualPositionSmoothVel() = default;
|
||||
|
||||
bool activate() override;
|
||||
void reActivate() override;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -63,6 +64,8 @@ protected:
|
||||
)
|
||||
private:
|
||||
|
||||
enum class Axes {XY, XYZ};
|
||||
void reset(Axes axes);
|
||||
VelocitySmoothing _smoothing[3]; ///< Smoothing in x, y and z directions
|
||||
matrix::Vector3f _vel_sp_smooth;
|
||||
bool _position_lock_xy_active{false};
|
||||
|
||||
Reference in New Issue
Block a user