- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如果我以尽可能高的精度单独使用 CoreLocation,我会每秒或 1Hz 获得一次更新。但是,如果我有一个刷新率为 10Hz 的外部蓝牙连接 GPS 单元,我仍然只会在 1Hz 时收到来自 CoreLocation 的响应。
我做错了什么吗?或者 CoreLocation 无论如何都会以 1Hz 的频率返回结果吗?
是否需要使用蓝牙框架直接连接到蓝牙 GPS 装置以获取 10Hz 刷新率数据?
最佳答案
有外部 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
关于ios - 如何获得比 1Hz 更快的 CoreLocation 刷新率?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49387760/
#import #import @interface SomeClass : NSObject { CLLocation *location; //... } //... 代码似乎
我在我们的生产应用程序中遇到了 Apple 的 CoreLocation 线程崩溃。我无法在我的测试中重现它,也很难弄清楚它是在 CoreLocation 内部。目前它只发生在少数人口中,但我可以看到
当我尝试获取当前位置时,IOS 显示了警报 View ,例如““应用程序”想要使用您当前的位置”以及“不允许”和“确定”。我点击了“不允许”。然后,每当我打开应用程序并尝试获取当前位置时,它都不会再次
我试图实现一个单独的类来管理我的位置。每当我单击按钮时,我都想获得我的位置。 gpsFilter.h #import #import @interface gpsFilter : NSObject
如何使用 locationManager startMonitoringForRegion 方法开始监视多个区域 例如,我要监控三个区域 CLLocationCoordinate2D centreLo
出于某种原因,我似乎无法获取用户的位置。我买了 iOS 9 CookBook 并完全复制了他们的代码 这是 View Controller : import UIKit import CoreLoca
我试图让我的应用程序在用户加载应用程序后立即获取用户当前位置的经度和纬度。从这里我可以判断它们是否与某个点有一定距离,并据此调用不同的函数。 我可以通过 viewDidLoad 使其正常工作,但我不希
如果我正在编写的应用程序终止,我需要将当前位置存储到 iphone 的“磁盘”中。然后,当应用程序再次启动时,我想恢复这些信息。但是,CLLocation 坐标属性是只读的。 如何在程序调用之间保存此
我正在使用 CLLocationManager 捕获位置数据。我不太关心水平精度,但我希望速度尽可能准确。 有人知道 kCLLocationAccuracyThreeKilometers 是否足以满足
didUpdateLocations 没有触发- CLLocationManagerDelegate 已使用 View Controller 作为委托(delegate)正确实现 import Fou
设置kCLLocationAccuracy(locationManager.desiredAccuracy = kCLLocationAccuracyBestForNavigation)时,哪种方法使
在我的应用程序中,我通过始终允许选项询问用户位置权限。从 iOS 13 开始,选项始终允许从弹出窗口中删除。所以我必须创建一个流程并检查是否已启用 always 选项。 我以为 CLLocationM
我正在尝试使用 CLLocationManager 获取用户位置。由于某种原因 locationManager:didUpdateLocations 从未被调用。下面是 View Controller
我已经将 CoreLocation 库和 NSLocationWhenInUseUsageDescription 添加到 info.plist,但是当我编译和运行时,它不显示当前位置或提示用户允许访问
我有一个仅使用 iPad 中的 GPS 芯片收集纬度/经度坐标的应用程序(IE 在 ios8 上没有 wifi 或蜂窝网络)。它似乎始终如一地工作,除非该应用程序闲置了大约一个小时(该应用程序仍处于打
我正在开发一个适用于健身(运行)的 iOS (7.0+) 应用程序,它使用用户的 GPS 位置、进行小型计算并将数据传输到低功耗蓝牙 (4.0) watch 。这个过程需要在后台进行,即使用户锁定了他
我一直在测试 CoreLocation 各个方面的准确性,并惊讶地发现传递给 CLLocationMangerDelegate 方法的新旧位置的准确性值:(void)locationManager:d
我正在尝试显示用户的平均速度,而且我还想显示数组的最大值。 我搜索了论坛并找到了很多方法来实现这一点,但没有任何效果。 我试过的是//最高速度和//平均速度 这是我的代码: // Location l
我目前正在尝试获取当前用户的设备移动速度。这是我的代码: import UIKit import Foundation import CoreLocation class ViewController
我正在使用 CoreLocation 框架获取我的速度和距离来计算平均速度。 在 CoreLocation 发出的第一个更新中,它显示了速度和行进距离的负值。我该如何解决这个问题? 速度是 locat
我是一名优秀的程序员,十分优秀!