aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-04-21 19:23:44 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-04-21 19:25:47 -0600
commit2c153ba846d05c2a13bc48154e2bcc5b3709e73b (patch)
treee2158b53a48066134fb1d976af63698df618f69c /include
parentbc96509c719da116c5e0ebcdb39e082def15d306 (diff)
downloadlibsurvive-2c153ba846d05c2a13bc48154e2bcc5b3709e73b.tar.gz
libsurvive-2c153ba846d05c2a13bc48154e2bcc5b3709e73b.tar.bz2
Additional tuning of gyro scaling parameters
Diffstat (limited to 'include')
-rw-r--r--include/libsurvive/survive.h1
-rw-r--r--include/libsurvive/survive_imu.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/libsurvive/survive.h b/include/libsurvive/survive.h
index 9f692e9..fb95c80 100644
--- a/include/libsurvive/survive.h
+++ b/include/libsurvive/survive.h
@@ -101,6 +101,7 @@ struct SurviveObject {
survive_timecode last_lighttime; // May be a 24- or 32- bit number depending on what device.
+ FLT imu_freq;
FLT *acc_bias; // size is FLT*3. contains x,y,z
FLT *acc_scale; // size is FLT*3. contains x,y,z
FLT *gyro_bias; // size is FLT*3. contains x,y,z
diff --git a/include/libsurvive/survive_imu.h b/include/libsurvive/survive_imu.h
index 892df38..5453e4d 100644
--- a/include/libsurvive/survive_imu.h
+++ b/include/libsurvive/survive_imu.h
@@ -2,6 +2,7 @@
#define _SURVIVE_IMU_H
#include "poser.h"
+#include "survive.h"
#include "survive_types.h"
#include <stdbool.h>
#include <stdint.h>
@@ -13,6 +14,7 @@ extern "C" {
struct SurviveIMUTracker_p;
typedef struct {
+ SurviveObject *so;
bool is_initialized;
FLT updir[3];