Device-LPS331AP
view release on metacpan or search on metacpan
lib/Device/Altimeter/LPS331AP.pm view on Meta::CPAN
Get pressure in Millibars
=head2 getPressureInchesHg
Get pressure in inches of mercury
=head2 getPressureToAltitudeMeters
converts pressure in mbar to altitude in meters, using 1976 US
Standard Atmosphere model (note that this formula only applies to a
height of 11 km, or about 36000 ft)
If altimeter setting (QNH, barometric pressure adjusted to sea
level) is given, this function returns an indicated altitude
compensated for actual regional pressure; otherwise, it returns
the pressure altitude above the standard pressure level of 1013.25
mbar or 29.9213 inHg
QNH is the Barometric pressure adjusted to sea level for a particular region. This value helps altitude corrections based on base barometric pressure in your region.
(a-((x/b)^c))*d;
( run in 1.163 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )