Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pressure calibration error #1

Open
awherbert opened this issue Jan 4, 2019 · 1 comment
Open

pressure calibration error #1

awherbert opened this issue Jan 4, 2019 · 1 comment

Comments

@awherbert
Copy link

The pressure calibration gives me incorrect pressures for Raspberrypi I2C. In bmp388.py the calibration parameters are read in byte pieces. Where the parameter is a signed 16bit variable, each of the bytes are treated as though they are separate signed 8bit variables (by calling uint8_int) but the sign bit is only on the most significant byte. Also the last signed 16bit variable is treated as an unsigned 16bit variable. Finally there is a hardwired subtraction of 0.000145 on one of the parameters that I cannot see the need for in the Bosch datasheet. This only affects the Pressure calibration as the temp calibration does not use signed 16bit parameters

@awherbert
Copy link
Author

here's a version that works for me (with the alt i2c address) and also writing the osr/odr/iir registers to correspond to drone recommended values - sorry about the ugly code :)

bmp388 - fix.py.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant