aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2017-02-25 13:29:07 -0500
committercnlohr <lohr85@gmail.com>2017-02-25 13:29:07 -0500
commitf92f5dc93cbb53a99da51984541a7e4a70605639 (patch)
treea4fd365d067c13dd1a8edec5e998657e836e5900 /include
parent5060fd7a4f1fa4313d7b928cebc392e5f6fd3641 (diff)
downloadlibsurvive-f92f5dc93cbb53a99da51984541a7e4a70605639.tar.gz
libsurvive-f92f5dc93cbb53a99da51984541a7e4a70605639.tar.bz2
Update files, working lhfind whithin libsurvive.
Diffstat (limited to 'include')
-rw-r--r--include/survive.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/survive.h b/include/survive.h
index 3e8dc35..1b9c29c 100644
--- a/include/survive.h
+++ b/include/survive.h
@@ -4,7 +4,11 @@
#include <stdint.h>
#ifndef FLT
+#ifdef USE_DOUBLE
#define FLT double
+#else
+#define FLT float
+#endif
#endif
struct SurviveContext;
@@ -33,6 +37,7 @@ struct SurviveObject
FLT * sensor_locations;
FLT * sensor_normals;
+ int8_t nr_locations;
//Timing sensitive data (mostly for disambiguation)
int32_t timebase_hz; //48,000,000 for normal vive hardware. (checked)
@@ -43,7 +48,6 @@ struct SurviveObject
int32_t pulse_max_for_sweep; //1,800 for normal vive hardware. (guessed)
int32_t pulse_synctime_offset; //20,000 for normal vive hardware. (guessed)
int32_t pulse_synctime_slack; //5,000 for normal vive hardware. (guessed)
- int8_t nr_locations;
//Flood info, for calculating which laser is currently sweeping.
int8_t oldcode;