0
iPhone 6 이후로 iPhone에는 GPS 데이터를 사용하는 것보다 정확한 고도 판독 값을 얻을 수있는 Barmoter가 있다고 들었습니다.기압계를 사용하여 iOS에서 더 정확한 고도 데이터를 얻는 방법
이 기압계 센서를 사용하여 어떻게 더 정확한 고도를 얻을 수 있습니까? 지금, 나는이 코드를 사용하여 고도를 받고 있어요 :
// delegate method, constantly read latitutde and longitutde
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
let userLocation:CLLocation = locations[0] as CLLocation
// get the lat/long/alt values
let alt = userLocation.altitude
altLabel.text = String(alt)
}
나는 상대 고도를 원하지 않는다. 나는 절대 고도를 원해. 어쨌든 그것을 얻으려고? – bakalolo
@bakalolo 지금 현재 절대 높이를 얻는 것은 불가능합니다. 이 Stackoverflow 게시물을 확인하십시오. https://stackoverflow.com/questions/36038491/ios-coremotion-calculating-height-difference – Mochi