mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 07:33:35 +08:00
ms5611: poll sensor at 100Hz
This commit is contained in:
committed by
Lorenz Meier
parent
c5108cafff
commit
47d4c75214
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user