Bmx280Base.TryReadAltitude Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for