mirror of https://github.com/ArduPilot/ardupilot
Copter: Leonard's sport fix re slow roll
This commit is contained in:
parent
34b11f7be0
commit
8b79798e8d
|
@ -303,7 +303,7 @@ get_roll_rate_stabilized_ef(int32_t stick_angle)
|
|||
acro_roll = wrap_180_cd(acro_roll);
|
||||
|
||||
// ensure that we don't reach gimbal lock
|
||||
if (labs(acro_roll) > g.angle_max && g.acro_trainer == ACRO_TRAINER_LIMITED) {
|
||||
if (labs(acro_roll) > g.angle_max) {
|
||||
acro_roll = constrain_int32(acro_roll, -g.angle_max, g.angle_max);
|
||||
angle_error = wrap_180_cd(acro_roll - ahrs.roll_sensor);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue