mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
helper_functions: include defines for M_PI_PRECISE
The defintion of the custom symbol M_PI_PRECISE was not included in one of the only places it's used. Looks like a mistake that happened in 34c852255e16bb62d2caf0c3be1f2fea660036ba possibly because a lot of things are included almost everywhere and if the include order ligns up there are no compile errors.
This commit is contained in:
parent
efb325d25d
commit
be05b3e8d7
@ -458,7 +458,7 @@ public:
|
||||
|
||||
for (size_t i = 0; i < 4; i++) {
|
||||
if (std::fabs(q(i)) > FLT_EPSILON) {
|
||||
return q * Type(matrix::sign(q(i)));
|
||||
return q * Type(sign(q(i)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -2,6 +2,8 @@
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include "math.hpp"
|
||||
|
||||
namespace matrix
|
||||
{
|
||||
|
||||
@ -41,7 +43,7 @@ Floating wrap_floating(Floating x, Floating low, Floating high)
|
||||
return x - range * num_wraps;
|
||||
}
|
||||
|
||||
} // namespace detail
|
||||
} // namespace detail
|
||||
|
||||
/**
|
||||
* Wrap single precision floating point value to stay in range [low, high)
|
||||
|
||||
@ -57,7 +57,6 @@
|
||||
#include <uORB/topics/vehicle_command.h>
|
||||
|
||||
#include <lib/mathlib/math/filter/second_order_reference_model.hpp>
|
||||
#include <lib/matrix/matrix/helper_functions.hpp>
|
||||
#include <motion_planning/VelocitySmoothing.hpp>
|
||||
|
||||
// << Follow Target Behavior related constants >>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user