mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Mount: Change from sqrt to safe_sqrt
This commit is contained in:
parent
49ce9d02b1
commit
998dd7207f
@ -658,7 +658,7 @@ void SoloGimbalEKF::fuseVelocity()
|
||||
}
|
||||
|
||||
// calculate tilt component of angle correction
|
||||
TiltCorrection = sqrtf(sq(angErrVec.x) + sq(angErrVec.y));
|
||||
TiltCorrection = safe_sqrt(sq(angErrVec.x) + sq(angErrVec.y));
|
||||
}
|
||||
|
||||
// check for new magnetometer data and update store measurements if available
|
||||
|
Loading…
Reference in New Issue
Block a user