{"comment":{"url":"https://api.github.com/repos/lis-epfl/MAVRIC_Library/comments/13877672","html_url":"https://github.com/lis-epfl/MAVRIC_Library/commit/31f322012e33994bfb29538c52bed3e5a9739cff#commitcomment-13877672","id":13877672,"user":{"login":"jlecoeur","id":1379463,"avatar_url":"https://avatars.githubusercontent.com/u/1379463?v=3","gravatar_id":"","url":"https://api.github.com/users/jlecoeur","html_url":"https://github.com/jlecoeur","followers_url":"https://api.github.com/users/jlecoeur/followers","following_url":"https://api.github.com/users/jlecoeur/following{/other_user}","gists_url":"https://api.github.com/users/jlecoeur/gists{/gist_id}","starred_url":"https://api.github.com/users/jlecoeur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlecoeur/subscriptions","organizations_url":"https://api.github.com/users/jlecoeur/orgs","repos_url":"https://api.github.com/users/jlecoeur/repos","events_url":"https://api.github.com/users/jlecoeur/events{/privacy}","received_events_url":"https://api.github.com/users/jlecoeur/received_events","type":"User","site_admin":false},"position":88,"line":88,"path":"simulation/barometer_sim.cpp","commit_id":"31f322012e33994bfb29538c52bed3e5a9739cff","created_at":"2015-10-20T15:02:32Z","updated_at":"2015-10-20T15:02:32Z","body":"@GregoireH @ndousse \r\nHere I did not know what to put because I do not really understand.\r\n\r\nin bmp085.cpp:\r\n```\r\nbool Bmp085::update(void) \r\n{\r\n[...]\r\n\t\t\taltitude = 44330.0f * (1.0f - pow(pressure_ /sea_level_pressure,0.190295f)) + altitude_offset_;\r\n\r\n[...]\r\n\treturn res;\r\n}\r\n```\r\n```\r\nbool Bmp085::reset_origin_altitude(float origin_altitude)\r\n{\r\n\taltitude_offset_ = - (altitude_ - altitude_offset_ - origin_altitude );\r\n\treturn true;\r\n}\r\n```\r\n\r\n- what is the sign of Bmp085::altitude() ?\r\n- what is Bmp085::altitude_offset_ ?\r\n- what is the sign of Bmp085::altitude_offset_ ?\r\n- When is Bmp085::altitude() equal to 0 ? When the UAV is at altitude_offset, or when it is at the origin_altitude ?"}}