aboutsummaryrefslogtreecommitdiff
path: root/src/survive_internal.h
diff options
context:
space:
mode:
authorCNLohr <charles@cnlohr.com>2017-02-14 10:06:23 -0500
committerGitHub <noreply@github.com>2017-02-14 10:06:23 -0500
commit23a202f50fc0f9eb9127bebaf34c48d45776a25c (patch)
treed99f9611314c7a565190570e2c337f8ffc6ae9c3 /src/survive_internal.h
parentf782146df94b3b54965c2aed696d49e86870046d (diff)
parent119a205619632076c7b258eaa6c28dd7bcd2c294 (diff)
downloadlibsurvive-23a202f50fc0f9eb9127bebaf34c48d45776a25c.tar.gz
libsurvive-23a202f50fc0f9eb9127bebaf34c48d45776a25c.tar.bz2
Merge pull request #27 from cnlohr/cal_with_ootx
Cal with ootx
Diffstat (limited to 'src/survive_internal.h')
-rw-r--r--src/survive_internal.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/survive_internal.h b/src/survive_internal.h
index 446f3c0..11c9d89 100644
--- a/src/survive_internal.h
+++ b/src/survive_internal.h
@@ -62,6 +62,22 @@ struct SurviveUSBInterface
//This is defined in survive.h
struct SurviveObject;
+struct SurviveCalData;
+
+struct BaseStationData
+{
+ uint8_t PositionSet:1;
+ float Position[3];
+ float Quaternion[4];
+
+ uint8_t OOTXSet:1;
+ uint32_t BaseStationID;
+ float fcalphase[2];
+ float fcaltilt[2];
+ float fcalcurve[2];
+ float fcalgibpha[2];
+ float fcalgibmag[2];
+};
struct SurviveContext
{
@@ -75,9 +91,15 @@ struct SurviveContext
light_process_func lightproc;
imu_process_func imuproc;
- //Data Subsystem
+ //Calibration data:
+ struct BaseStationData bsd[NUM_LIGHTHOUSES];
+
+ struct SurviveCalData * calptr; //If and only if the calibration subsystem is attached.
+
+ //Data Subsystem. These should be last, as there may be additional surviveobjects.
struct SurviveObject headset;
- struct SurviveObject watchman[2];
+ struct SurviveObject watchman[2]; //Currently only two supported watchmen.
+
};