Commit 13ae3e7
Added quaternions checking to prevent negative sqrt argument in attitudes calculation algorithm (betaflight#813)
* Added quaternions checking to prevent negative sqrt argument
* Quaternion normalize in case of its module more than 1
Co-authored-by: Petr Ledvina <[email protected]>
* Quaternions checking code improvement
* The math issue is resolved
---------
Co-authored-by: Petr Ledvina <[email protected]>1 parent 6ff3484 commit 13ae3e7
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
740 | | - | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
741 | 753 | | |
742 | 754 | | |
743 | 755 | | |
| |||
0 commit comments