ms5611: poll sensor at 100Hz

This commit is contained in:
Lucas De Marchi
2017-04-06 12:18:30 +02:00
committed by Lorenz Meier
parent c5108cafff
commit 47d4c75214
+6 -2
View File
@@ -98,8 +98,12 @@ enum MS5611_BUS {
* MS5611/MS5607 internal constants and data structures.
*/
/* internal conversion time: 9.17 ms, so should not be read at rates higher than 100 Hz */
#define MS5611_CONVERSION_INTERVAL 25000 /* microseconds */
/*
* Maximum internal conversion time for OSR 1024 is 2.28 ms. We set an update
* rate of 100Hz which is be very safe not to read the ADC before the
* conversion finished
*/
#define MS5611_CONVERSION_INTERVAL 10000 /* microseconds */
#define MS5611_MEASUREMENT_RATIO 3 /* pressure measurements per temperature measurement */
#define MS5611_BARO_DEVICE_PATH_EXT "/dev/ms5611_ext"
#define MS5611_BARO_DEVICE_PATH_INT "/dev/ms5611_int"