Reply To: Temp/Barometer

#15434
johnmark
Participant

A partial success: We tabbed through the code, but got an error:

AttributeError: ‘BMP388’ object has no attribute ‘T1’.

To us, it seemed like the function _load_calibration(): was never being called, so we added a line bmp388._load_calibration()  in to the  if __name__ = ‘__main__’:  module. Edit for clarity, we added this line right after the line bmp388=BMP388() which declares the object.

Now the program executes, but all the data is stale.

Temperature = 23.7 Pressure = 79241.63 Altitude =2026.07

Any thoughts?

 

  • This reply was modified 2 years, 6 months ago by johnmark.

Blip, blop, bloop…