mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 15:08:28 -04:00
56fa1b6214
If we don't have EOC pin and assuming the accumulate() function is called at 50Hz (or higher) we would take very few samples to accumulate before the update is called. That's because since we have to wait 26ms to get a sample and we calling accumulate() every 20ms, half of the times it will return without getting anything. So we will be using 2 or 3 samples only to average. If we don't have EOC, use OVERSAMPLING=2 which gives us more noise, but that we can filter out by using measurements to average. When we have EOC we don't need it because most of the time the conversion will take less than 20ms: I'm getting 16ms on most of them while bench-testing. |
||
---|---|---|
.. | ||
examples/BARO_generic | ||
AP_Baro_Backend.cpp | ||
AP_Baro_Backend.h | ||
AP_Baro_BMP085.cpp | ||
AP_Baro_BMP085.h | ||
AP_Baro_HIL.cpp | ||
AP_Baro_HIL.h | ||
AP_Baro_MS5611.cpp | ||
AP_Baro_MS5611.h | ||
AP_Baro_PX4.cpp | ||
AP_Baro_PX4.h | ||
AP_Baro_qflight.cpp | ||
AP_Baro_qflight.h | ||
AP_Baro_QURT.cpp | ||
AP_Baro_QURT.h | ||
AP_Baro.cpp | ||
AP_Baro.h |