Function rc_bmp_set_sea_level_pressure_pa#
Defined in File bmp.h
Function Documentation#
-
int rc_bmp_set_sea_level_pressure_pa(double pa)#
If you know the current sea level pressure for your region and weather, you can use this to correct the altititude reading.
This is not necessary if you only care about differential altitude from a starting point. Must be called after rc_bmp_init to have an effect.
- Parameters:
pa – [in] sea level pressure in pascals
- Returns:
0 on success, -1 on failure