A method to correct drift in an electronic device, the method comprising: determining a first center pose of the electronic device using an inertial measurement unit, IMU, of the electronic device; determining whether the first center pose is within an offset tolerance with respect to a reported center pose which is pose of the electronic device when a user of the electronic device is looking straight ahead; turning on a camera of the electronic device, finding and tracking, using the camera in conjunction with computer vision operating on a processor, at least one key point within a scene when the first center pose is within the offset tolerance with respect to the reported center pose; storing the found at least one key point; determining a first calculated center pose based upon the at least one key point tracked by using the camera in conjunction with computer vision operating on the processor; characterized in, disabling the camera for a predetermined time by turning off the camera; turning on the camera and loading one or more stored key points when the predetermined time is lapsed and a second center pose of the electronic device, determined by the IMU, is within the offset tolerance; determining, by using the camera in conjunction with computer vision, whether the stored at least one key point is found and matched; when the stored at least one key point is found and matched, determining whether a pose error associated with a current second center pose is within an offset tolerance by testing the current second pose determined by the IMU against the first calculated center pose determined by the camera in conjunction with computer vision operating on the processor; when the pose error is not within the offset tolerance, gradually adjusting the current second center pose until the current second center pose is within the offset tolerance; and when the pose error is within the offset tolerance, repeating the step of disabling the camera for the predetermined time by turning off the camera. determining a first center pose of the electronic device using an inertial measurement unit, IMU, of the electronic device; determining whether the first center pose is within an offset tolerance with respect to a reported center pose which is pose of the electronic device when a user of the electronic device is looking straight ahead; turning on a camera of the electronic device, finding and tracking, using the camera in conjunction with computer vision operating on a processor, at least one key point within a scene when the first center pose is within the offset tolerance with respect to the reported center pose; storing the found at least one key point; determining a first calculated center pose based upon the at least one key point tracked by using the camera in conjunction with computer vision operating on the processor; characterized in, disabling the camera for a predetermined time by turning off the camera; turning on the camera and loading one or more stored key points when the predetermined time is lapsed and a second center pose of the electronic device, determined by the IMU, is within the offset tolerance; determining, by using the camera in conjunction with computer vision, whether the stored at least one key point is found and matched; when the stored at least one key point is found and matched, determining whether a pose error associated with a current second center pose is within an offset tolerance by testing the current second pose determined by the IMU against the first calculated center pose determined by the camera in conjunction with computer vision operating on the processor; when the pose error is not within the offset tolerance, gradually adjusting the current second center pose until the current second center pose is within the offset tolerance; and when the pose error is within the offset tolerance, repeating the step of disabling the camera for the predetermined time by turning off the camera.