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:
Matthias Grob 2023-11-21 16:37:49 +01:00
parent efb325d25d
commit be05b3e8d7
3 changed files with 4 additions and 3 deletions

View File

@ -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)));
}
}

View File

@ -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)

View File

@ -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 >>