{"comment":{"url":"https://api.github.com/repos/jberaud/ardupilot/comments/13470769","html_url":"https://github.com/jberaud/ardupilot/commit/301e072feb4faea9167627977bea19a46324608e#commitcomment-13470769","id":13470769,"user":{"login":"lucasdemarchi","id":31864,"avatar_url":"https://avatars.githubusercontent.com/u/31864?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasdemarchi","html_url":"https://github.com/lucasdemarchi","followers_url":"https://api.github.com/users/lucasdemarchi/followers","following_url":"https://api.github.com/users/lucasdemarchi/following{/other_user}","gists_url":"https://api.github.com/users/lucasdemarchi/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasdemarchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasdemarchi/subscriptions","organizations_url":"https://api.github.com/users/lucasdemarchi/orgs","repos_url":"https://api.github.com/users/lucasdemarchi/repos","events_url":"https://api.github.com/users/lucasdemarchi/events{/privacy}","received_events_url":"https://api.github.com/users/lucasdemarchi/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"301e072feb4faea9167627977bea19a46324608e","created_at":"2015-09-28T14:53:23Z","updated_at":"2015-09-28T14:53:23Z","body":"> It is especially useful on the bebop when killing the regular autopilot that uses\r\niio drivers to access the imu because else we would need to manually unbind the\r\ndriver in an init procedure.\r\n\r\nI think this is fixing the issue in the wrong place, although checking the return code is indeed good.\r\nIf you just use `I2C_SLAVE_FORCE` you are not forcing the other driver to stop talking to the sensor so bad (hidden) things might happen.  Wouldn't it be better to just not load the other flight stack and/or driver (you could blacklist the related modules)."}}