Function rc_bmp_init#

Function Documentation#

int rc_bmp_init(rc_bmp_oversample_t oversample, rc_bmp_filter_t filter)#

powers on the barometer and initializes it with the given oversample and filter settings.

Optionally call rc_bmp_set_sea_level_pressure_pa afterwards to change the sea level pressure from default.

Parameters:
  • oversample[in] see rc_bmp_oversample_t

  • filter[in] see rc_bmp_filter_t

Returns:

0 on success, otherwise -1.