|
|
|
@ -15,7 +15,7 @@ extern "C" {
@@ -15,7 +15,7 @@ extern "C" {
|
|
|
|
|
#include <stdint.h> |
|
|
|
|
#include <stdbool.h> |
|
|
|
|
|
|
|
|
|
#define AHRS_state_version 1 |
|
|
|
|
#define AHRS_state_version 2 |
|
|
|
|
#define gyro_sample_version 1 |
|
|
|
|
#define accel_sample_version 2 |
|
|
|
|
|
|
|
|
@ -81,6 +81,17 @@ struct AHRS_state {
@@ -81,6 +81,17 @@ struct AHRS_state {
|
|
|
|
|
// current earth frame acceleration estimate, including
|
|
|
|
|
// gravitational forces, m/s/s order is NED
|
|
|
|
|
float accel_ef[3]; |
|
|
|
|
|
|
|
|
|
// the current primary accel instance
|
|
|
|
|
uint8_t primary_accel; |
|
|
|
|
|
|
|
|
|
// the current primary gyro instance
|
|
|
|
|
uint8_t primary_gyro; |
|
|
|
|
|
|
|
|
|
// current gyro bias. This is relative to the gyro data in
|
|
|
|
|
// gyro_sample for primary_gyro. It should be added to a gyro
|
|
|
|
|
// sample to get the corrected gyro estimate
|
|
|
|
|
float gyro_bias[3]; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|