mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 23:13:34 +08:00
PositionControl: add integral reset methods
This commit is contained in:
committed by
Lorenz Meier
parent
65a9cd171f
commit
0f4eb8e766
@@ -68,6 +68,8 @@ public:
|
|||||||
void updateSetpoint(const vehicle_local_position_setpoint_s &setpoint);
|
void updateSetpoint(const vehicle_local_position_setpoint_s &setpoint);
|
||||||
void updateConstraints(const Controller::Constraints &constraints);
|
void updateConstraints(const Controller::Constraints &constraints);
|
||||||
void generateThrustYawSetpoint(const float &dt);
|
void generateThrustYawSetpoint(const float &dt);
|
||||||
|
void resetIntegralXY() {_thr_int(0) = _thr_int(1) = 0.0f;};
|
||||||
|
void resetIntegralZ() {_thr_int(2) = 0.0f;};
|
||||||
|
|
||||||
matrix::Vector3f getThrustSetpoint() {return _thr_sp;}
|
matrix::Vector3f getThrustSetpoint() {return _thr_sp;}
|
||||||
float getYawSetpoint() { return _yaw_sp;}
|
float getYawSetpoint() { return _yaw_sp;}
|
||||||
|
|||||||
Reference in New Issue
Block a user