{"action":"created","issue":{"url":"https://api.github.com/repos/PX4/Firmware/issues/5229","repository_url":"https://api.github.com/repos/PX4/Firmware","labels_url":"https://api.github.com/repos/PX4/Firmware/issues/5229/labels{/name}","comments_url":"https://api.github.com/repos/PX4/Firmware/issues/5229/comments","events_url":"https://api.github.com/repos/PX4/Firmware/issues/5229/events","html_url":"https://github.com/PX4/Firmware/issues/5229","id":169321698,"number":5229,"title":"Commander: mission_finished true at mission start","user":{"login":"sanderux","id":14801663,"avatar_url":"https://avatars.githubusercontent.com/u/14801663?v=3","gravatar_id":"","url":"https://api.github.com/users/sanderux","html_url":"https://github.com/sanderux","followers_url":"https://api.github.com/users/sanderux/followers","following_url":"https://api.github.com/users/sanderux/following{/other_user}","gists_url":"https://api.github.com/users/sanderux/gists{/gist_id}","starred_url":"https://api.github.com/users/sanderux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanderux/subscriptions","organizations_url":"https://api.github.com/users/sanderux/orgs","repos_url":"https://api.github.com/users/sanderux/repos","events_url":"https://api.github.com/users/sanderux/events{/privacy}","received_events_url":"https://api.github.com/users/sanderux/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PX4/Firmware/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"sanderux","id":14801663,"avatar_url":"https://avatars.githubusercontent.com/u/14801663?v=3","gravatar_id":"","url":"https://api.github.com/users/sanderux","html_url":"https://github.com/sanderux","followers_url":"https://api.github.com/users/sanderux/followers","following_url":"https://api.github.com/users/sanderux/following{/other_user}","gists_url":"https://api.github.com/users/sanderux/gists{/gist_id}","starred_url":"https://api.github.com/users/sanderux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanderux/subscriptions","organizations_url":"https://api.github.com/users/sanderux/orgs","repos_url":"https://api.github.com/users/sanderux/repos","events_url":"https://api.github.com/users/sanderux/events{/privacy}","received_events_url":"https://api.github.com/users/sanderux/received_events","type":"User","site_admin":false},"assignees":[{"login":"sanderux","id":14801663,"avatar_url":"https://avatars.githubusercontent.com/u/14801663?v=3","gravatar_id":"","url":"https://api.github.com/users/sanderux","html_url":"https://github.com/sanderux","followers_url":"https://api.github.com/users/sanderux/followers","following_url":"https://api.github.com/users/sanderux/following{/other_user}","gists_url":"https://api.github.com/users/sanderux/gists{/gist_id}","starred_url":"https://api.github.com/users/sanderux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanderux/subscriptions","organizations_url":"https://api.github.com/users/sanderux/orgs","repos_url":"https://api.github.com/users/sanderux/repos","events_url":"https://api.github.com/users/sanderux/events{/privacy}","received_events_url":"https://api.github.com/users/sanderux/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-08-04T08:42:46Z","updated_at":"2016-08-04T09:51:35Z","closed_at":null,"body":"On the FC (pixhawk),  mission_finished condition appears to be true before mission is started.\r\nUnder specific conditions (only data link and dll failsafe disabled) switching to mission mode is therefor not possible due to this line:\r\nhttps://github.com/PX4/Firmware/blob/master/src/modules/commander/state_machine_helper.cpp#L751\r\n\r\nThe behavior is not reproducible in SITL\r\n\r\n@julianoes any idea why this bool is different outside sitl?"},"comment":{"url":"https://api.github.com/repos/PX4/Firmware/issues/comments/237507101","html_url":"https://github.com/PX4/Firmware/issues/5229#issuecomment-237507101","issue_url":"https://api.github.com/repos/PX4/Firmware/issues/5229","id":237507101,"user":{"login":"sanderux","id":14801663,"avatar_url":"https://avatars.githubusercontent.com/u/14801663?v=3","gravatar_id":"","url":"https://api.github.com/users/sanderux","html_url":"https://github.com/sanderux","followers_url":"https://api.github.com/users/sanderux/followers","following_url":"https://api.github.com/users/sanderux/following{/other_user}","gists_url":"https://api.github.com/users/sanderux/gists{/gist_id}","starred_url":"https://api.github.com/users/sanderux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanderux/subscriptions","organizations_url":"https://api.github.com/users/sanderux/orgs","repos_url":"https://api.github.com/users/sanderux/repos","events_url":"https://api.github.com/users/sanderux/events{/privacy}","received_events_url":"https://api.github.com/users/sanderux/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T09:51:35Z","updated_at":"2016-08-04T09:51:35Z","body":"In this line, when switching to mission mode: https://github.com/PX4/Firmware/blob/master/src/modules/commander/state_machine_helper.cpp#L751\r\n\r\nI conclude that condition to be true because;\r\n- A valid mission existed\r\n- Datalink was active but the datalink failsafe was disabled\r\n- No rc was attached\r\n- Failsafe switch to RTL when attempting to switch to mission\r\n- Removing that line fixed the problem\r\n"}}
{"actor":{"display_login":"sanderux"}}