mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 07:23:35 +08:00
move ekf2 Matrix helper utilities to mathlib
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include <cstdint>
|
||||
|
||||
#include <matrix/math.hpp>
|
||||
#include <mathlib/math/Utilities.hpp>
|
||||
|
||||
namespace estimator
|
||||
{
|
||||
@@ -58,6 +59,12 @@ using matrix::Vector2f;
|
||||
using matrix::Vector3f;
|
||||
using matrix::wrap_pi;
|
||||
|
||||
using math::Utilities::getEulerYaw;
|
||||
using math::Utilities::quatToInverseRotMat;
|
||||
using math::Utilities::shouldUse321RotationSequence;
|
||||
using math::Utilities::sq;
|
||||
using math::Utilities::updateYawInRotMat;
|
||||
|
||||
// maximum sensor intervals in usec
|
||||
#define BARO_MAX_INTERVAL (uint64_t)2e5 ///< Maximum allowable time interval between pressure altitude measurements (uSec)
|
||||
#define EV_MAX_INTERVAL (uint64_t)2e5 ///< Maximum allowable time interval between external vision system measurements (uSec)
|
||||
|
||||
Reference in New Issue
Block a user