From ee308a668e09db08906831f36bcddfbdf2814b23 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Fri, 6 Jun 2014 19:52:52 -0700 Subject: Fix a race condition in the sensor reset code that causes non-existent camera position data to be used if the sensor starts receiving messages too soon after ovr_Initialize() --- LibOVR/Src/OVR_SensorFusion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LibOVR') diff --git a/LibOVR/Src/OVR_SensorFusion.cpp b/LibOVR/Src/OVR_SensorFusion.cpp index 5c21178..9918250 100644 --- a/LibOVR/Src/OVR_SensorFusion.cpp +++ b/LibOVR/Src/OVR_SensorFusion.cpp @@ -137,7 +137,7 @@ void SensorFusion::Reset() ExposureRecordHistory.Clear(); NextExposureRecord = ExposureRecord(); LastMessageExposureFrame = MessageExposureFrame(NULL); - LastVisionAbsoluteTime = 0; + LastVisionAbsoluteTime = 1e9; Stage = 0; MagRefs.Clear(); -- cgit v1.2.3