Как улучшить значение истинного севера?IOS

Программируем под IOS
Ответить Пред. темаСлед. тема
Anonymous
 Как улучшить значение истинного севера?

Сообщение Anonymous »


Currently using both CLLocation's course (CLLocationDirection) property as well as the new heading value provided by func locationManager(_ manager: CLLocationManager, didUpdateHeading newHeading: CLHeading) to obtain the true north value for a navigation app. Former is useful when the user is mobile whereas the latter is useful when the user is rotating while stationary. However, sometimes I'm getting unpredictable values from new heading value. I've tried enabling locationManagerShouldDisplayHeadingCalibration, filtering out inaccurate headings using newHeading.headingAccuracy and adjusting locationManager.headingFilter, but to no use.

First, is the newHeading value from locationManager(_ manager: CLLocationManager, didUpdateHeading newHeading: CLHeading) only accurate if a device is held like a compass? Or do I have to constantly monitor the device's orientation and update locationManager.headingOrientation in order to get the accurate heading value?

Second, is relying on the course property in CLLocation alone reliable enough to obtain the true north heading value if locationManager(_ manager: CLLocationManager, didUpdateHeading newHeading: CLHeading) is not used? I understand that it requires distance to obtain an accurate course value, but obtaining such a value while stationary is less of a concern since this is for an automobile's navigation app and a car is less likely to rotate while stationary.

Third, I'm currently using the trueHeading value, but would using the magneticHeading value increase the accuracy when it comes to different orientation of a device?


Источник: https://stackoverflow.com/questions/781 ... orth-value
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение
  • Как добавить «стрелку севера» на карту геопанд
    Anonymous » » в форуме Python
    0 Ответы
    20 Просмотры
    Последнее сообщение Anonymous
  • Как добавить «стрелку севера» на карту геопанд
    Anonymous » » в форуме Python
    0 Ответы
    14 Просмотры
    Последнее сообщение Anonymous
  • Как обнаружить стрелку севера на плане этажа?
    Anonymous » » в форуме Python
    0 Ответы
    10 Просмотры
    Последнее сообщение Anonymous
  • Как улучшить время выполнения запросов и улучшить индексацию в Ollama с помощью llama_index с использованием локальной м
    Anonymous » » в форуме Python
    0 Ответы
    44 Просмотры
    Последнее сообщение Anonymous
  • Как я могу улучшить свой код Python LeetCode Проблема 345 и как я могу улучшить сложность времени
    Anonymous » » в форуме Python
    0 Ответы
    32 Просмотры
    Последнее сообщение Anonymous

Вернуться в «IOS»