mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
PositionControl: add integral reset methods
This commit is contained in:
parent
65a9cd171f
commit
0f4eb8e766
@ -68,6 +68,8 @@ public:
|
||||
void updateSetpoint(const vehicle_local_position_setpoint_s &setpoint);
|
||||
void updateConstraints(const Controller::Constraints &constraints);
|
||||
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;}
|
||||
float getYawSetpoint() { return _yaw_sp;}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user