Altimeter
public protocol Altimeter : Instrument
Instrument that informs about altitude and vertical speed.
This instrument can be retrieved by:
drone.getInstrument(Instruments.altimeter)
-
Altitude of the drone relative to take off altitude (in meters).
nil
if not available. This can happen if the drone does not know or provide this information.Declaration
Swift
var takeoffRelativeAltitude: Double? { get }
-
Altitude of the drone relative to the ground (in meters).
nil
if not available. This can happen if the drone does not know or provide this information.This is the fusion of barometer and ultrasounds.
Note
May be wrong at high altitude and jump brutally when getting closer to the ground.Declaration
Swift
var groundRelativeAltitude: Double? { get }
-
Absolute altitude of the drone, i.e. relative to sea-level (in meters).
nil
if not available. This can happen if the drone does not know or provide this information, or if its gps is not fixed.Declaration
Swift
var absoluteAltitude: Double? { get }
-
Terrain data.
nil
if not available. This can happen if the drone does not know or provide this information.Declaration
Swift
var terrainData: TerrainData? { get }
-
Vertical speed of the drone (in meters/second).
nil
if not available. This can happen if the drone does not know or provide this information.Positive when the drone is going up, negative when the drone is going down.
Declaration
Swift
var verticalSpeed: Double? { get }