yaw controller: deactivate lateral acceleration control for now but

put comment of how to do it properly

Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
Roman
2017-01-26 09:30:17 +01:00
committed by Lorenz Meier
parent f300877db4
commit 66b7773059
+2 -2
View File
@@ -161,8 +161,8 @@ float ECL_YawController::control_bodyrate(const struct ECL_ControlData &ctl_data
/* Close the acceleration loop if _coordinated_method wants this: change body_rate setpoint */
if (_coordinated_method == COORD_METHOD_CLOSEACC) {
//XXX: filtering of acceleration?
_bodyrate_setpoint -= (ctl_data.acc_body_y / (airspeed * cosf(ctl_data.pitch)));
// XXX lateral acceleration needs to go into integrator with a gain
//_bodyrate_setpoint -= (ctl_data.acc_body_y / (airspeed * cosf(ctl_data.pitch)));
}
/* Calculate body angular rate error */