         
         if manager.isDeviceMotionAvailable
         {
-            manager.deviceMotionUpdateInterval = kUpdatesInterval
             manager.startDeviceMotionUpdates(
+                using:CMAttitudeReferenceFrame.xTrueNorthZVertical,
                 to:OperationQueue.main)
             { (data:CMDeviceMotion?, error:Error?) in
                 

                    DispatchQueue.global(qos:DispatchQoS.QoSClass.background).async
                    { [weak self] in
                        
                        self?.gravityCompute(acceleration:acceleration)
                    }
                }
            }

                {
                    guard
                        
                        let dataMotion:CMDeviceMotion = data
                        
                    else
                    {
