Skip to content
  • Andrew Tridgell's avatar
    Baro: average over all pressure/temperature samples on MS5611 · 057eb5e6
    Andrew Tridgell authored
    this allows us to use the MS5611 barometer at its full 100Hz sample
    rate (80Hz for pressure, 20Hz for temperature). The pressure and
    temperature values are averaged between reads without adding any
    latency. Previously the driver would throw away values between
    readings
    
    This also fixes a race condition in reading from the SPI bus that
    could lead to bad values from the barometer
    057eb5e6
Loading