mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 23:07:35 +08:00
FlightTaskAuto: Create artificial yaw speed sp for feedforward
This commit is contained in:
@@ -110,6 +110,11 @@ void FlightTaskAuto::_limitYawRate()
|
||||
|
||||
_yaw_setpoint = yaw_setpoint_sat;
|
||||
_yaw_sp_prev = _yaw_setpoint;
|
||||
|
||||
if (!PX4_ISFINITE(_yawspeed_setpoint) && (_deltatime > FLT_EPSILON)) {
|
||||
// Create a feedforward
|
||||
_yawspeed_setpoint = dyaw / _deltatime;
|
||||
}
|
||||
}
|
||||
|
||||
if (PX4_ISFINITE(_yawspeed_setpoint)) {
|
||||
|
||||
Reference in New Issue
Block a user