mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 17:31:36 +08:00
FlightTaskManualPosition: make position lock simpler; add underline for protected/private
methods
This commit is contained in:
committed by
Beat Küng
parent
24b5d30a0a
commit
72624e14cb
@@ -56,16 +56,14 @@ public:
|
||||
protected:
|
||||
matrix::Vector2f _vel_sp_xy{}; /**< Scaled velocity setpoint from stick. NAN during position lock. */
|
||||
matrix::Vector2f _pos_sp_xy{}; /**< Position setpoint during lock. Otherwise NAN.*/
|
||||
matrix::Vector2f _pos_sp_xy_lock{}; /**< Position setpoint during lock */
|
||||
|
||||
control::BlockParamFloat _vel_xy_manual_max; /**< Maximum speed allowed horizontally, */
|
||||
control::BlockParamFloat _acc_xy_max;/**< Maximum acceleration horizontally. Only used to compute lock time. */
|
||||
control::BlockParamFloat _vel_xy_dz; /**< velocity threshold/deadzone to switch into horizontal position hold */
|
||||
|
||||
void updateSetpoints() override;
|
||||
void scaleSticks() override;
|
||||
void _updateSetpoints() override;
|
||||
void _scaleSticks() override;
|
||||
|
||||
private:
|
||||
void updateXYsetpoints();
|
||||
float _lock_time_max{0.0f}; /**< Defines time when position lock occurs. */
|
||||
float _lock_time{0.0f}; /**< Time passed when stick are at zero position. */
|
||||
void _updateXYsetpoints();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user