RawGps
public struct RawGps : Equatable
Raw GPS information type.
Warning: this is an advanced type! If you want the location of the drone, use the position instead. This message exposes the raw values of the GNSS sensor.
-
Undocumented
Declaration
Swift
public let timestampUs: UInt64 -
Undocumented
Declaration
Swift
public let latitudeDeg: Double -
Undocumented
Declaration
Swift
public let longitudeDeg: Double -
Undocumented
Declaration
Swift
public let absoluteAltitudeM: Float -
Undocumented
Declaration
Swift
public let hdop: Float -
Undocumented
Declaration
Swift
public let vdop: Float -
Undocumented
Declaration
Swift
public let velocityMS: Float -
Undocumented
Declaration
Swift
public let cogDeg: Float -
Undocumented
Declaration
Swift
public let altitudeEllipsoidM: Float -
Undocumented
Declaration
Swift
public let horizontalUncertaintyM: Float -
Undocumented
Declaration
Swift
public let verticalUncertaintyM: Float -
Undocumented
Declaration
Swift
public let velocityUncertaintyMS: Float -
Undocumented
Declaration
Swift
public let headingUncertaintyDeg: Float -
Undocumented
Declaration
Swift
public let yawDeg: Float -
init(timestampUs:latitudeDeg: longitudeDeg: absoluteAltitudeM: hdop: vdop: velocityMS: cogDeg: altitudeEllipsoidM: horizontalUncertaintyM: verticalUncertaintyM: velocityUncertaintyMS: headingUncertaintyDeg: yawDeg: ) Initializes a new
RawGps.Declaration
Swift
public init(timestampUs: UInt64, latitudeDeg: Double, longitudeDeg: Double, absoluteAltitudeM: Float, hdop: Float, vdop: Float, velocityMS: Float, cogDeg: Float, altitudeEllipsoidM: Float, horizontalUncertaintyM: Float, verticalUncertaintyM: Float, velocityUncertaintyMS: Float, headingUncertaintyDeg: Float, yawDeg: Float)Parameters
timestampUsTimestamp in microseconds (UNIX Epoch time or time since system boot, to be inferred)
latitudeDegLatitude in degrees (WGS84, EGM96 ellipsoid)
longitudeDegLongitude in degrees (WGS84, EGM96 ellipsoid)
absoluteAltitudeMAltitude AMSL (above mean sea level) in metres
hdopGPS HDOP horizontal dilution of position (unitless). If unknown, set to NaN
vdopGPS VDOP vertical dilution of position (unitless). If unknown, set to NaN
velocityMSGround velocity in metres per second
cogDegCourse over ground (NOT heading, but direction of movement) in degrees. If unknown, set to NaN
altitudeEllipsoidMAltitude in metres (above WGS84, EGM96 ellipsoid)
horizontalUncertaintyMPosition uncertainty in metres
verticalUncertaintyMAltitude uncertainty in metres
velocityUncertaintyMSVelocity uncertainty in metres per second
headingUncertaintyDegHeading uncertainty in degrees
yawDegYaw in earth frame from north.
-
Declaration
Swift
public static func == (lhs: RawGps, rhs: RawGps) -> Bool
View on GitHub
Install in Dash
RawGps Structure Reference