mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 06:30:35 +08:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user