PositionControl: add integral reset methods

This commit is contained in:
Dennis Mannhart 2018-03-23 16:43:55 +01:00 committed by Lorenz Meier
parent 65a9cd171f
commit 0f4eb8e766

View File

@ -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;}