Fixed race condition with calibrating the IMU.