30 #ifndef __sot_torque_control_madgwickahrs_H__ 31 #define __sot_torque_control_madgwickahrs_H__ 38 #if defined(madgwickahrs_EXPORTS) 39 #define SOTMADGWICKAHRS_EXPORT __declspec(dllexport) 41 #define SOTMADGWICKAHRS_EXPORT __declspec(dllimport) 44 #define SOTMADGWICKAHRS_EXPORT 56 #include "boost/assign.hpp" 58 #define betaDef 0.01 // 2 * proportional g 90 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
95 void init(
const double &
dt);
96 void set_beta(
const double &beta);
112 virtual void display(std::ostream &os)
const;
115 double invSqrt(
double x);
116 void madgwickAHRSupdateIMU(
double gx,
double gy,
double gz,
double ax,
117 double ay,
double az);
133 #endif // #ifndef __sot_torque_control_madgwickahrs_H__
bool m_initSucceeded
true if the entity has been successfully initialized
MadgwickAHRS EntityClassName
#define DECLARE_SIGNAL_IN(name, type)
#define SOTMADGWICKAHRS_EXPORT
#define DYNAMIC_GRAPH_ENTITY_DECL()
double m_sampleFreq
sample frequency in Hz
#define DECLARE_SIGNAL_OUT(name, type)
void init(bool compute_local_aabb=true)
double m_beta
2 * proportional gain (Kp)