-
Notifications
You must be signed in to change notification settings - Fork 17.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AP_Math: prevent FPE in SITL when limiting accel vectors
The cross-product code can produce something slightly negative. Fix safe_sqrt to avoid barfing on that, as was originally intended, and clarify why it's being used. Co-authored-by: Leonard Hall <leonardthall@gmail.com> Co-authored-by: Thomas Watson <twatson52@icloud.com>
- Loading branch information
1 parent
f523c88
commit c29e3e3
Showing
2 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters