BossHobby / QUICKSILVER

Flight Controller Firmware
MIT License
165 stars 39 forks source link

BMI270 gyro temperature 0 #113

Open Sekilsgs2 opened 5 months ago

Sekilsgs2 commented 5 months ago

Please add temperature code to driver.

bmi270_read_data(BMI270_REG_TEMPERATURE_LSB, buf,2);
data->temp = (float)((int16_t)((buf[1] << 8) | buf[0])) / 512.0 + 23.0 ;