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 --- src/survive_imu.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/survive_imu.c') diff --git a/src/survive_imu.c b/src/survive_imu.c index 3622b2d..f866caf 100644 --- a/src/survive_imu.c +++ b/src/survive_imu.c @@ -66,18 +66,6 @@ static inline uint32_t tick_difference(uint32_t most_recent, uint32_t least_rece return diff; } -void survive_imu_tracker_set_pose(SurviveIMUTracker *tracker, uint32_t timecode, SurvivePose *pose) { - tracker->pose = *pose; - - for (int i = 0; i < 3; i++) { - tracker->current_velocity[i] = 0; - } - //(pose->Pos[i] - tracker->lastGT.Pos[i]) / tick_difference(timecode, tracker->lastGTTime) * 48000000.; - - tracker->lastGTTime = timecode; - tracker->lastGT = *pose; -} - static const int imu_calibration_iterations = 100; static void RotateAccel(LinmathVec3d rAcc, const SurvivePose *pose, const LinmathVec3d accel) { -- cgit v1.2.3