int rc_bmp_read(rc_bmp_data_t *data)
Reads the newest temperature and pressure measurments from the barometer over the I2C bus.
int rc_bmp_power_off(void)
Puts the barometer into a low power state, should be called at the end of your program before close.
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.
rc_bmp_oversample_t
Definition: bmp.h:30
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 t...
struct rc_bmp_data_t rc_bmp_data_t
rc_bmp_filter_t
Definition: bmp.h:44
@ BMP_OVERSAMPLE_4
update rate 87 HZ
Definition: bmp.h:33
@ BMP_OVERSAMPLE_1
update rate 182 HZ
Definition: bmp.h:31
@ BMP_OVERSAMPLE_16
update rate 28 HZ
Definition: bmp.h:35
@ BMP_OVERSAMPLE_2
update rate 133 HZ
Definition: bmp.h:32
@ BMP_OVERSAMPLE_8
update rate 51 HZ
Definition: bmp.h:34
@ BMP_FILTER_4
Definition: bmp.h:47
@ BMP_FILTER_16
Definition: bmp.h:49
@ BMP_FILTER_OFF
Definition: bmp.h:45
@ BMP_FILTER_8
Definition: bmp.h:48
@ BMP_FILTER_2
Definition: bmp.h:46
double alt_m
altitude in meters
Definition: bmp.h:58
double temp_c
temperature in degrees celcius
Definition: bmp.h:57
double pressure_pa
current pressure in pascals
Definition: bmp.h:59