 	
 	
 }
+

                }
            })
        }
        self.motionManager.accelerometerUpdateInterval = 0.5
        if(self.motionManager.isAccelerometerAvailable) {
            self.motionManager.startAccelerometerUpdates(to: OperationQueue(), withHandler: {data, error in
                DispatchQueue.main.async(execute: {
                    self.x = data!.acceleration.x
                    self.y = data!.acceleration.y
                    self.z = data!.acceleration.z
                })
            })
            
        }
    }
    
    func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
        currentLocation = manager.location!.coordinate
    }

        self.view_controller = view_controller
        super.init()
        if (CLLocationManager.locationServicesEnabled()){
            self.locationManager.delegate = self
            self.locationManager.desiredAccuracy = kCLLocationAccuracyBest
            self.locationManager.requestWhenInUseAuthorization()
            self.locationManager.startUpdatingLocation()
        }
        
        if(CMAltimeter.isRelativeAltitudeAvailable()){
