mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 21:33:34 +08:00
PX4 style fixes (excluding EKF generated code)
This commit is contained in:
@@ -110,8 +110,8 @@ float ECL_YawController::control_attitude_impl_openloop(const struct ECL_Control
|
||||
|
||||
if (!inverted) {
|
||||
/* Calculate desired yaw rate from coordinated turn constraint / (no side forces) */
|
||||
_rate_setpoint = tanf(constrained_roll) * cosf(ctl_data.pitch) * CONSTANTS_ONE_G / (ctl_data.airspeed < ctl_data.airspeed_min ?
|
||||
ctl_data.airspeed_min : ctl_data.airspeed);
|
||||
_rate_setpoint = tanf(constrained_roll) * cosf(ctl_data.pitch) * CONSTANTS_ONE_G / (ctl_data.airspeed <
|
||||
ctl_data.airspeed_min ? ctl_data.airspeed_min : ctl_data.airspeed);
|
||||
}
|
||||
|
||||
if (!ISFINITE(_rate_setpoint)) {
|
||||
|
||||
Reference in New Issue
Block a user