aboutsummaryrefslogtreecommitdiff
path: root/include/libsurvive/survive_imu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libsurvive/survive_imu.h')
-rw-r--r--include/libsurvive/survive_imu.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libsurvive/survive_imu.h b/include/libsurvive/survive_imu.h
index 8a86425..4d03038 100644
--- a/include/libsurvive/survive_imu.h
+++ b/include/libsurvive/survive_imu.h
@@ -3,6 +3,7 @@
#include "poser.h"
#include "survive_types.h"
+#include <stdbool.h>
#include <stdint.h>
#ifdef __cplusplus
@@ -12,6 +13,8 @@ extern "C" {
struct SurviveIMUTracker_p;
typedef struct {
+ bool is_initialized;
+
FLT updir[3];
FLT accel_scale_bias;
@@ -24,7 +27,7 @@ typedef struct {
FLT P[7]; // estimate variance
- float integralFBx, integralFBy, integralFBz; // integral error terms scaled by Ki
+ LinmathVec3d integralFB;
} SurviveIMUTracker;