Master Thesis
V1.0
Research and Design of Sensor Node for NMSD Treatment
|
Sensor fusion. More...
Go to the source code of this file.
Functions | |
void | MadgwickAHRSupdate (float gx, float gy, float gz, float ax, float ay, float az, float mx, float my, float mz) |
Madgwick algorithm. More... | |
void | MadgwickAHRSupdateIMU (float gx, float gy, float gz, float ax, float ay, float az) |
Madgwick algorithm. More... | |
void | QuaternionsToEulerAngles (float *euler_angles) |
Convert quaternions to euler angles. More... | |
Variables | |
volatile float | beta |
volatile float | q0 |
volatile float | q1 |
volatile float | q2 |
volatile float | q3 |
void MadgwickAHRSupdate | ( | float | gx, |
float | gy, | ||
float | gz, | ||
float | ax, | ||
float | ay, | ||
float | az, | ||
float | mx, | ||
float | my, | ||
float | mz | ||
) |
Madgwick algorithm.
9 DoF sensor fusion
[in] | gx | Gyro x |
[in] | gy | Gyro y |
[in] | gz | Gyro a |
[in] | ax | Accel x |
[in] | ay | Accel y |
[in] | az | Accel a |
[in] | mx | Magn x |
[in] | my | Magn y |
[in] | mz | Magn a |
Definition at line 92 of file MadgwickAHRS.c.
References beta, invSqrt(), MadgwickAHRSupdateIMU(), q0, q1, q2, q3, and sampleFreq.
Referenced by measure_send().
void MadgwickAHRSupdateIMU | ( | float | gx, |
float | gy, | ||
float | gz, | ||
float | ax, | ||
float | ay, | ||
float | az | ||
) |
Madgwick algorithm.
6 DoF sensor fusion
[in] | gx | Gyro x |
[in] | gy | Gyro y |
[in] | gz | Gyro a |
[in] | ax | Accel x |
[in] | ay | Accel y |
[in] | az | Accel a |
Definition at line 217 of file MadgwickAHRS.c.
References beta, invSqrt(), q0, q1, q2, q3, and sampleFreq.
Referenced by MadgwickAHRSupdate().
void QuaternionsToEulerAngles | ( | float * | euler_angles | ) |
Convert quaternions to euler angles.
[out] | euler_angles | pointer to location of euler angles storage |
Definition at line 351 of file MadgwickAHRS.c.
References M_PI, pitch, q0, q1, q2, q3, roll, and yaw.
Referenced by measure_send().
volatile float beta |
Beta parameter of Madgwick filter
Definition at line 145 of file main.c.
Referenced by CheckIMUidle(), MadgwickAHRSupdate(), and MadgwickAHRSupdateIMU().
volatile float q0 |
Definition at line 45 of file MadgwickAHRS.c.
Referenced by MadgwickAHRSupdate(), MadgwickAHRSupdateIMU(), and QuaternionsToEulerAngles().
volatile float q1 |
Definition at line 45 of file MadgwickAHRS.c.
Referenced by MadgwickAHRSupdate(), MadgwickAHRSupdateIMU(), and QuaternionsToEulerAngles().
volatile float q2 |
Definition at line 45 of file MadgwickAHRS.c.
Referenced by MadgwickAHRSupdate(), MadgwickAHRSupdateIMU(), and QuaternionsToEulerAngles().
volatile float q3 |
quaternion of sensor frame relative to auxiliary frame
Definition at line 45 of file MadgwickAHRS.c.
Referenced by MadgwickAHRSupdate(), MadgwickAHRSupdateIMU(), and QuaternionsToEulerAngles().