{"action":"created","issue":{"url":"https://api.github.com/repos/PX4/Firmware/issues/3300","labels_url":"https://api.github.com/repos/PX4/Firmware/issues/3300/labels{/name}","comments_url":"https://api.github.com/repos/PX4/Firmware/issues/3300/comments","events_url":"https://api.github.com/repos/PX4/Firmware/issues/3300/events","html_url":"https://github.com/PX4/Firmware/issues/3300","id":119700405,"number":3300,"title":"ICM20608 using MPU6000 driver reports incorrect temperature","user":{"login":"ksschwabe","id":4036885,"avatar_url":"https://avatars.githubusercontent.com/u/4036885?v=3","gravatar_id":"","url":"https://api.github.com/users/ksschwabe","html_url":"https://github.com/ksschwabe","followers_url":"https://api.github.com/users/ksschwabe/followers","following_url":"https://api.github.com/users/ksschwabe/following{/other_user}","gists_url":"https://api.github.com/users/ksschwabe/gists{/gist_id}","starred_url":"https://api.github.com/users/ksschwabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksschwabe/subscriptions","organizations_url":"https://api.github.com/users/ksschwabe/orgs","repos_url":"https://api.github.com/users/ksschwabe/repos","events_url":"https://api.github.com/users/ksschwabe/events{/privacy}","received_events_url":"https://api.github.com/users/ksschwabe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-01T11:49:27Z","updated_at":"2015-12-01T13:09:44Z","closed_at":"2015-12-01T13:09:44Z","body":"@LorenzMeier @tridge \r\n\r\nThe temperature conversion from the raw value to deg C is different on the ICM20608 compared with the MPU6000.\r\n\r\nCurrently you are calculating the temperature in deg C using\r\n```\r\n_last_temperature = (report.temp) / 361.0f + 35.0f;\r\n\r\narb.temperature_raw = report.temp;\r\narb.temperature = _last_temperature;\r\n\r\n...\r\ngrb.temperature_raw = report.temp;\r\ngrb.temperature = _last_temperature;\r\n```\r\n\r\nAccording to the ICM20608 register map, the calculation should be\r\n```\r\nTEMP_degC = ((TEMP_OUT - RoomTemp_Offset)/Temp_Sensitivity) + 25degC\r\n```\r\n![icm20608 temp register](https://cloud.githubusercontent.com/assets/4036885/11498793/eb977246-9821-11e5-86e5-86d18787edc9.png)\r\n\r\nwhere (from the ICM20608-G Product Specification) `RoomTemp_Offset = 0` and `Temp_Sensitivity=326.8`\r\n![icm20608 temp sensitivity](https://cloud.githubusercontent.com/assets/4036885/11498796/f61b4b5c-9821-11e5-8416-07c4b5bf8113.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/PX4/Firmware/issues/comments/160965034","html_url":"https://github.com/PX4/Firmware/issues/3300#issuecomment-160965034","issue_url":"https://api.github.com/repos/PX4/Firmware/issues/3300","id":160965034,"user":{"login":"ksschwabe","id":4036885,"avatar_url":"https://avatars.githubusercontent.com/u/4036885?v=3","gravatar_id":"","url":"https://api.github.com/users/ksschwabe","html_url":"https://github.com/ksschwabe","followers_url":"https://api.github.com/users/ksschwabe/followers","following_url":"https://api.github.com/users/ksschwabe/following{/other_user}","gists_url":"https://api.github.com/users/ksschwabe/gists{/gist_id}","starred_url":"https://api.github.com/users/ksschwabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksschwabe/subscriptions","organizations_url":"https://api.github.com/users/ksschwabe/orgs","repos_url":"https://api.github.com/users/ksschwabe/repos","events_url":"https://api.github.com/users/ksschwabe/events{/privacy}","received_events_url":"https://api.github.com/users/ksschwabe/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T13:09:44Z","updated_at":"2015-12-01T13:09:44Z","body":"Fixed by PR #3301."}}