Home › Forums › Forums › Technical Support for BerryGPS and BerryGPS-IMU › Temp/Barometer › Reply To: Temp/Barometer
March 13, 2020 at 1:02 am #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?