Robot Control Library
|
Go to the source code of this file.
Data Structures | |
struct | rc_bmp_data_t |
Typedefs | |
typedef enum rc_bmp_oversample_t | rc_bmp_oversample_t |
typedef enum rc_bmp_filter_t | rc_bmp_filter_t |
typedef struct rc_bmp_data_t | rc_bmp_data_t |
Enumerations | |
enum | rc_bmp_oversample_t { BMP_OVERSAMPLE_1 = (0x01<<2), BMP_OVERSAMPLE_2 = (0x02<<2), BMP_OVERSAMPLE_4 = (0x03<<2), BMP_OVERSAMPLE_8 = (0x04<<2), BMP_OVERSAMPLE_16 = (0x05<<2) } |
enum | rc_bmp_filter_t { BMP_FILTER_OFF = (0x00<<2), BMP_FILTER_2 = (0x01<<2), BMP_FILTER_4 = (0x02<<2), BMP_FILTER_8 = (0x03<<2), BMP_FILTER_16 = (0x04<<2) } |
Functions | |
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. More... | |
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. More... | |
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. More... | |
int | rc_bmp_read (rc_bmp_data_t *data) |
Reads the newest temperature and pressure measurments from the barometer over the I2C bus. More... | |