mirror of https://github.com/ArduPilot/ardupilot
Copter: remove constraint on rate yaw controller
This commit is contained in:
parent
40612ed551
commit
227185fd0f
|
@ -548,16 +548,8 @@ get_rate_yaw(int32_t target_rate)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if FRAME_CONFIG == TRI_FRAME
|
||||
// constrain output
|
||||
return output;
|
||||
#else // !TRI_FRAME
|
||||
// output control:
|
||||
int16_t yaw_limit = 2200 + abs(g.rc_4.control_in);
|
||||
|
||||
// smoother Yaw control:
|
||||
return constrain_int32(output, -yaw_limit, yaw_limit);
|
||||
#endif // TRI_FRAME
|
||||
}
|
||||
#endif // !HELI_FRAME
|
||||
|
||||
|
|
Loading…
Reference in New Issue