|
|
@ -164,7 +164,7 @@ void Plane::ahrs_update() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// calculate a scaled roll limit based on current pitch
|
|
|
|
// calculate a scaled roll limit based on current pitch
|
|
|
|
roll_limit_cd = g.roll_limit_cd * cosf(ahrs.pitch); |
|
|
|
roll_limit_cd = aparm.roll_limit_cd * cosf(ahrs.pitch); |
|
|
|
pitch_limit_min_cd = aparm.pitch_limit_min_cd * fabsf(cosf(ahrs.roll)); |
|
|
|
pitch_limit_min_cd = aparm.pitch_limit_min_cd * fabsf(cosf(ahrs.roll)); |
|
|
|
|
|
|
|
|
|
|
|
// updated the summed gyro used for ground steering and
|
|
|
|
// updated the summed gyro used for ground steering and
|
|
|
|