micropython-IMU / micropython-mpu9x50

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

imu conversion to temperature #29

Open rjsdotorg opened 1 month ago

rjsdotorg commented 1 month 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 month ago

Thank you. Now corrected.