This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_bmp_set_sea_level_pressure_pa

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