Copter: Leonard's sport fix re slow roll

This commit is contained in:
Randy Mackay 2013-08-11 22:15:27 +09:00
parent 34b11f7be0
commit 8b79798e8d
1 changed files with 1 additions and 1 deletions

View File

@ -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 {