30f631de8f
The configuration of MS5637 is different from MS5611 in 2 ways: - The PROM is of 112 bytes rather than 128 - The CRC is located in the first MSB of the first word, not the last one For CRC calculation we also need to zero out the last (missing) word. This renames _check_crc() to _read_prom(), which returns false when the PROM doesn't contain valid data. It also makes it virtual so MS5637 can override it. This also moves the PROM read to be all in the same place rather than split between the CRC field and coefficient fields. Finally calculate_crc() is renamed to crc4() to be shorter and add info on what it does. |
||
---|---|---|
.. | ||
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.cpp | ||
AP_Baro.h |