mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
Fix axis angle fabsf usage.
This commit is contained in:
parent
bf69be7f17
commit
8a94f0f8ac
@ -78,7 +78,7 @@ public:
|
||||
AxisAngle &v = *this;
|
||||
Type ang = (Type)2.0f*acosf(q(0));
|
||||
Type mag = sinf(ang/2.0f);
|
||||
if (fabs(ang) < 1e-10f) {
|
||||
if (fabsf(ang) < 1e-10f) {
|
||||
v(0) = 0;
|
||||
v(1) = 0;
|
||||
v(2) = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user