aboutsummaryrefslogtreecommitdiff
path: root/include/libsurvive
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-04-20 22:31:18 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-04-20 22:50:20 -0600
commita1027bceebb36afc4fa9d082277478abd8101eda (patch)
treef9692cad198f8e39e4fa0fe6cdd4cf1d5abcef5c /include/libsurvive
parent3c007f47a30b70f00fd642b14ef8f4127c46ffc3 (diff)
downloadlibsurvive-a1027bceebb36afc4fa9d082277478abd8101eda.tar.gz
libsurvive-a1027bceebb36afc4fa9d082277478abd8101eda.tar.bz2
Enabled and then cleaned up warnings
Diffstat (limited to 'include/libsurvive')
-rw-r--r--include/libsurvive/poser.h1
-rw-r--r--include/libsurvive/survive.h2
-rw-r--r--include/libsurvive/survive_imu.h2
-rw-r--r--include/libsurvive/survive_types.h1
4 files changed, 2 insertions, 4 deletions
diff --git a/include/libsurvive/poser.h b/include/libsurvive/poser.h
index 4cddf89..e71b34f 100644
--- a/include/libsurvive/poser.h
+++ b/include/libsurvive/poser.h
@@ -88,7 +88,6 @@ typedef struct
//If "lengths[...]" < 0, means not a valid piece of sweep information.
FLT lengths[SENSORS_PER_OBJECT][NUM_LIGHTHOUSES][2];
FLT angles [SENSORS_PER_OBJECT][NUM_LIGHTHOUSES][2]; //2 Axes (Angles in LH space)
- FLT synctimes[SENSORS_PER_OBJECT][NUM_LIGHTHOUSES];
PoserDataIMU lastimu;
} PoserDataFullScene;
diff --git a/include/libsurvive/survive.h b/include/libsurvive/survive.h
index 66993df..9f692e9 100644
--- a/include/libsurvive/survive.h
+++ b/include/libsurvive/survive.h
@@ -273,7 +273,7 @@ SURVIVE_EXPORT void survive_close(SurviveContext *ctx);
SURVIVE_EXPORT SurviveObject *survive_get_so_by_name(SurviveContext *ctx, const char *name);
// Utilitiy functions.
-int survive_simple_inflate(SurviveContext *ctx, const char *input, int inlen, char *output, int outlen);
+int survive_simple_inflate(SurviveContext *ctx, const uint8_t *input, int inlen, uint8_t *output, int outlen);
SURVIVE_EXPORT int survive_send_magic(SurviveContext *ctx, int magic_code, void *data, int datalen);
// These functions search both the stored-general and temporary sections for a parameter and return it.
diff --git a/include/libsurvive/survive_imu.h b/include/libsurvive/survive_imu.h
index 4d03038..892df38 100644
--- a/include/libsurvive/survive_imu.h
+++ b/include/libsurvive/survive_imu.h
@@ -31,8 +31,6 @@ typedef struct {
} SurviveIMUTracker;
-void survive_imu_tracker_set_pose(SurviveIMUTracker *tracker, uint32_t timecode, SurvivePose *pose);
-
void survive_imu_tracker_integrate(SurviveObject *so, SurviveIMUTracker *tracker, PoserDataIMU *data);
void survive_imu_tracker_integrate_observation(SurviveObject *so, uint32_t timecode, SurviveIMUTracker *tracker,
SurvivePose *pose, const FLT *variance);
diff --git a/include/libsurvive/survive_types.h b/include/libsurvive/survive_types.h
index 7fa5e0f..b4faaa7 100644
--- a/include/libsurvive/survive_types.h
+++ b/include/libsurvive/survive_types.h
@@ -47,6 +47,7 @@ typedef LinmathPose SurvivePose;
#define BUTTON_EVENT_AXIS_CHANGED 3
typedef uint32_t survive_timecode;
+survive_timecode survive_timecode_difference(survive_timecode most_recent, survive_timecode least_recent);
typedef struct SurviveObject SurviveObject;
typedef struct SurviveContext SurviveContext;