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
timestampUs
Timestamp in microseconds (UNIX Epoch time or time since system boot, to be inferred)
latitudeDeg
Latitude in degrees (WGS84, EGM96 ellipsoid)
longitudeDeg
Longitude in degrees (WGS84, EGM96 ellipsoid)
absoluteAltitudeM
Altitude AMSL (above mean sea level) in metres
hdop
GPS HDOP horizontal dilution of position (unitless). If unknown, set to NaN
vdop
GPS VDOP vertical dilution of position (unitless). If unknown, set to NaN
velocityMS
Ground velocity in metres per second
cogDeg
Course over ground (NOT heading, but direction of movement) in degrees. If unknown, set to NaN
altitudeEllipsoidM
Altitude in metres (above WGS84, EGM96 ellipsoid)
horizontalUncertaintyM
Position uncertainty in metres
verticalUncertaintyM
Altitude uncertainty in metres
velocityUncertaintyMS
Velocity uncertainty in metres per second
headingUncertaintyDeg
Heading uncertainty in degrees
yawDeg
Yaw in earth frame from north.
-
Declaration
Swift
public static func == (lhs: RawGps, rhs: RawGps) -> Bool