Edit

Share via


Bmx280Base.TryReadAltitude Method

Definition

Overloads

TryReadAltitude(Length)

Calculates the altitude in meters from the mean sea-level pressure.

TryReadAltitude(Pressure, Length)

Calculates the altitude in meters from the specified sea-level pressure(in hPa).

TryReadAltitude(Length)

Calculates the altitude in meters from the mean sea-level pressure.

public bool TryReadAltitude (out UnitsNet.Length altitude);
member this.TryReadAltitude : Length -> bool
Public Function TryReadAltitude (ByRef altitude As Length) As Boolean

Parameters

altitude
UnitsNet.Length

Contains the calculated metres above sea-level if the PressureSampling was not set to Skipped. Contains NaN otherwise.

Returns

true if pressure measurement was not skipped, otherwise false.

Applies to

TryReadAltitude(Pressure, Length)

Calculates the altitude in meters from the specified sea-level pressure(in hPa).

public bool TryReadAltitude (UnitsNet.Pressure seaLevelPressure, out UnitsNet.Length altitude);
member this.TryReadAltitude : UnitsNet.Pressure * Length -> bool
Public Function TryReadAltitude (seaLevelPressure As Pressure, ByRef altitude As Length) As Boolean

Parameters

seaLevelPressure
UnitsNet.Pressure

Sea-level pressure

altitude
UnitsNet.Length

Contains the calculated metres above sea-level if the PressureSampling was not set to Skipped. Contains NaN otherwise.

Returns

true if pressure measurement was not skipped, otherwise false.

Applies to