Vps2Heading
↳ inherits from CoreLocation.CLHeading
A
CLHeading subclass representing heading data computed by VPS2....Declaration
final class Vps2HeadingSummary
A CLHeading subclass representing heading data computed by VPS2.
VPS2 derives heading from visual-inertial localization rather than a physical magnetometer,
so the raw magnetometer component values (x, y, z) are zero and not meaningful.
Constructors
Constructor
required init?(coder: NSCoder)
Overload
init(trueHeading: CLLocationDirection, headingAccuracy: CLLocationDirection, timestamp: Date = Date())
Summary
Properties
| Name | Type | Summary |
|---|---|---|
| override var headingAccuracy | CLLocationDirection | Maximum deviation from the reported heading, in degrees. A negative value indicates the heading is invalid. |
| override var magneticHeading | CLLocationDirection | Heading relative to magnetic north, in degrees. VPS2 does not use a magnetometer, so this mirrors trueHeading. |
| override class var supportsSecureCoding | Bool | - |
| override var timestamp | Date | The time at which this heading was determined. |
| override var trueHeading | CLLocationDirection | Heading relative to true north, in degrees. |
| override var x | CLHeadingComponentValue | Raw magnetometer x-component. VPS2 does not use a magnetometer; returns 0. |
| override var y | CLHeadingComponentValue | Raw magnetometer y-component. VPS2 does not use a magnetometer; returns 0. |
| override var z | CLHeadingComponentValue | Raw magnetometer z-component. VPS2 does not use a magnetometer; returns 0. |
Methods
| Name | Type | Summary |
|---|---|---|
| override copy | Any | - |
| override encode | void | - |
Relationships
conforms to: Foundation.NSCoding
conforms to: Foundation.NSSecureCoding
conforms to: Swift.CustomStringConvertible
conforms to: Swift.Equatable
conforms to: Swift.Hashable
conforms to: Swift.CVarArg
conforms to: Swift.CustomDebugStringConvertible
conforms to: ObjectiveC.NSObjectProtocol
conforms to: Foundation.NSCopying
Creates a
Vps2Headingfrom a VPS2-computed true heading and its accuracy.- Parameters:
- trueHeading: Heading in degrees clockwise from true north. Negative indicates invalid.
- headingAccuracy: Maximum deviation from
trueHeading, in degrees. Negative indicates invalid.- timestamp: The time at which the heading was determined. Defaults to the current time.