micropython-IMU / micropython-mpu9x50

Drivers for InvenSense inertial measurement units MPU9250, MPU9150, MPU6050
MIT License
259 stars 80 forks source link

imu conversion to temperature #29

Open rjsdotorg opened 1 day ago

rjsdotorg commented 1 day ago

On imu.py line 184: return bytes_toint(self.buf2[0], self.buf2[1]) / 340 + 35 # I think Whereas MPU-6000 and MPU-6050 Register Map and Descriptions Revision 4.2 shows:

Temperature in degrees C = (TEMP_OUT Register Value as a signed quantity)/340 + 36.53

peterhinch commented 1 day ago

Thank you. Now corrected.