I may not have completely understood your request. The source code of the function bmp180_get_pressure() shows an example of how to calculated the true barometric pressure, in C code. If your project uses Simulink as programming languange, then you could translate the C code provided as reference into Simulink code.
I don't have a BMP180 to hand, but I've used the device in an embedded system. I was programming in C and used this open source project as a reference. I can't help you fix your method, but I can suggest another.
Which uses the floating point calcs found in this doc.
Good luck and have fun.
Hi Carlo, let me explain.
In our pressure sensors, each device is calibrated at the factory and the trimming coefficients are stored in the register map. They are read in the bmp180_get_calib_param function, called automatically within bmp180_init.
For each data point, you must trigger both temperature and pressure measurements, then call the API in this order:
Point #3 is especially important, since the temperature is stored in an internal value that is used in the pressure calculation. This is also why you must read both temperature and pressure at the same time. (temperature can be sampled on its own, but pressure measurements require temperature compensation).
The mathematical formulas are on page 15 of the datasheet, but the actual meaning of it is proprietary.