11-16-2022 07:31 PM
This post is with reference to the BM390 driver code in git repo: https://github.com/BoschSensortec/BMP3-Sensor-API
The compensation formulas for pressure and temperature calculation in the example driver codes is using either double or int64 (long long) data type. (Reference: Functions compensate_pressure() & compensate_temperature() in bmp3.c).
Are 32bit version of compensation functions available for BMP390 driver i.e., the compensation formulas using only 32bit integer values ? If yes, requesting you to share the same.
This is needed as porting the 64bit formulas to 32bit systems causes precision loss and high deviations from actual pressure in pressure calculation.
Just a side note, 32bit compensation formulas were available for BMP280 driver.
Solved! Go to Solution.
11-22-2022 03:51 AM
Hi Rinoj,
Currently, we only have reference code on github. You can migrate to your platform based on reference code.