如何获得比 1Hz 更快的 CoreLocation 刷新率?

How to get faster than 1Hz CoreLocation refresh rate?

如果我以尽可能高的精度单独使用 CoreLocation,我会每秒或 1Hz 获得一次更新。但是,如果我有一个刷新率为 10Hz 的外部蓝牙连接 GPS 单元,我仍然只会在 1Hz 时收到来自 CoreLocation 的响应。

我做错了什么吗?或者 CoreLocation return 无论如何都会在 1Hz 下产生结果?

是否需要使用蓝牙框架直接连接到蓝牙 GPS 装置以获取 10Hz 刷新率数据?

据我所知,CoreLocation 不适用于任何外部附件。因此答案是肯定的,如果你想从外部蓝牙 GPS 附件获取位置更新,你需要通过蓝牙协议和 API 来工作...

有一些外部 GPS 单元,例如 Bad Elf 中的那些,将由 iOS 使用,而不是内部 GPS 接收器,但 Core Location 的抽象层隐藏了它们的细节;你只是得到更准确的位置。

如果您想要更快的更新,那么您将需要 integrate directly with the GPS 接收器而不是使用核心位置。

The GPS SDK provides developers direct access to configure Bad Elf GPS accessories for a wide variety of use cases. The common configurations are:

  • Configuration of high resolution location data reporting (2-10Hz) mode
  • Fix quality indicators: number of satellites, WAAS status, raw HDOP/PDOP/VDOP values
  • UTC date and time
  • Satellites in view with elevation, azimuth, and raw SNR values