From a1027bceebb36afc4fa9d082277478abd8101eda Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Fri, 20 Apr 2018 22:31:18 -0600 Subject: Enabled and then cleaned up warnings --- include/libsurvive/poser.h | 1 - include/libsurvive/survive.h | 2 +- include/libsurvive/survive_imu.h | 2 -- include/libsurvive/survive_types.h | 1 + 4 files changed, 2 insertions(+), 4 deletions(-) (limited to 'include/libsurvive') 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; -- cgit v1.2.3