diff options
author | Justin Berger <j.david.berger@gmail.com> | 2018-04-20 22:31:18 -0600 |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2018-04-20 22:50:20 -0600 |
commit | a1027bceebb36afc4fa9d082277478abd8101eda (patch) | |
tree | f9692cad198f8e39e4fa0fe6cdd4cf1d5abcef5c /src/survive_imu.c | |
parent | 3c007f47a30b70f00fd642b14ef8f4127c46ffc3 (diff) | |
download | libsurvive-a1027bceebb36afc4fa9d082277478abd8101eda.tar.gz libsurvive-a1027bceebb36afc4fa9d082277478abd8101eda.tar.bz2 |
Enabled and then cleaned up warnings
Diffstat (limited to 'src/survive_imu.c')
-rw-r--r-- | src/survive_imu.c | 12 |
1 files changed, 0 insertions, 12 deletions
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) { |