{"action":"created","comment":{"url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/comments/30386518","id":30386518,"diff_hunk":"@@ -293,36 +373,18 @@ static void vtol_fsm_fsm_init(const struct vtol_fsm_transition *goal)\n  * This method will first update the current state @ref curr_state based on the\n  * current state and the active @ref current_goal. When it enters a new state it\n  * calls the appropriate entry_fn if it exists.\n+ *\n+ * This differs from vtol_fsm_process_event in that it handles auto transitions\n+ * afterwards.\n  */\n static void vtol_fsm_inject_event(enum vtol_fsm_event event)\n {\n-\t// No need for mutexes here since this is called in a single threaded manner\n-\n-\t/*\n-\t * The STATE_UNCHANGED indicates to ignore these events\n-\t */\n-\tif (current_goal[curr_state].next_state[event] == FSM_STATE_UNCHANGED)","path":"flight/Modules/VtolPathFollower/vtol_follower_fsm.c","position":202,"original_position":202,"commit_id":"8284083639f86ce443be5bd56fde323deab14f58","original_commit_id":"8284083639f86ce443be5bd56fde323deab14f58","user":{"login":"peabody124","id":618346,"avatar_url":"https://avatars.githubusercontent.com/u/618346?v=3","gravatar_id":"","url":"https://api.github.com/users/peabody124","html_url":"https://github.com/peabody124","followers_url":"https://api.github.com/users/peabody124/followers","following_url":"https://api.github.com/users/peabody124/following{/other_user}","gists_url":"https://api.github.com/users/peabody124/gists{/gist_id}","starred_url":"https://api.github.com/users/peabody124/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peabody124/subscriptions","organizations_url":"https://api.github.com/users/peabody124/orgs","repos_url":"https://api.github.com/users/peabody124/repos","events_url":"https://api.github.com/users/peabody124/events{/privacy}","received_events_url":"https://api.github.com/users/peabody124/received_events","type":"User","site_admin":false},"body":"so a side effect of this change: an event that does not make a change will still process auto events. however, since any auto event for a state should have already happened that doesn't seem to matter. ","created_at":"2015-05-15T05:49:42Z","updated_at":"2015-05-15T05:49:42Z","html_url":"https://github.com/TauLabs/TauLabs/pull/1600#discussion_r30386518","pull_request_url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1600","_links":{"self":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/comments/30386518"},"html":{"href":"https://github.com/TauLabs/TauLabs/pull/1600#discussion_r30386518"},"pull_request":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1600"}}},"pull_request":{"url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1600","id":35350668,"html_url":"https://github.com/TauLabs/TauLabs/pull/1600","diff_url":"https://github.com/TauLabs/TauLabs/pull/1600.diff","patch_url":"https://github.com/TauLabs/TauLabs/pull/1600.patch","issue_url":"https://api.github.com/repos/TauLabs/TauLabs/issues/1600","number":1600,"state":"open","locked":false,"title":"vtolpathfollower: fsm improvements","user":{"login":"mlyle","id":90903,"avatar_url":"https://avatars.githubusercontent.com/u/90903?v=3","gravatar_id":"","url":"https://api.github.com/users/mlyle","html_url":"https://github.com/mlyle","followers_url":"https://api.github.com/users/mlyle/followers","following_url":"https://api.github.com/users/mlyle/following{/other_user}","gists_url":"https://api.github.com/users/mlyle/gists{/gist_id}","starred_url":"https://api.github.com/users/mlyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlyle/subscriptions","organizations_url":"https://api.github.com/users/mlyle/orgs","repos_url":"https://api.github.com/users/mlyle/repos","events_url":"https://api.github.com/users/mlyle/events{/privacy}","received_events_url":"https://api.github.com/users/mlyle/received_events","type":"User","site_admin":false},"body":"Removes the \"return to home\" state toggle landmine and makes the FSM code slightly cleaner.","created_at":"2015-05-13T17:28:34Z","updated_at":"2015-05-15T05:49:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b3f37e067beb55f4bbe2f4bea76a1ea82c4ed609","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1600/commits","review_comments_url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1600/comments","review_comment_url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TauLabs/TauLabs/issues/1600/comments","statuses_url":"https://api.github.com/repos/TauLabs/TauLabs/statuses/8284083639f86ce443be5bd56fde323deab14f58","head":{"label":"mlyle:mpl-fsmtimers","ref":"mpl-fsmtimers","sha":"8284083639f86ce443be5bd56fde323deab14f58","user":{"login":"mlyle","id":90903,"avatar_url":"https://avatars.githubusercontent.com/u/90903?v=3","gravatar_id":"","url":"https://api.github.com/users/mlyle","html_url":"https://github.com/mlyle","followers_url":"https://api.github.com/users/mlyle/followers","following_url":"https://api.github.com/users/mlyle/following{/other_user}","gists_url":"https://api.github.com/users/mlyle/gists{/gist_id}","starred_url":"https://api.github.com/users/mlyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlyle/subscriptions","organizations_url":"https://api.github.com/users/mlyle/orgs","repos_url":"https://api.github.com/users/mlyle/repos","events_url":"https://api.github.com/users/mlyle/events{/privacy}","received_events_url":"https://api.github.com/users/mlyle/received_events","type":"User","site_admin":false},"repo":{"id":33151589,"name":"TauLabs","full_name":"mlyle/TauLabs","owner":{"login":"mlyle","id":90903,"avatar_url":"https://avatars.githubusercontent.com/u/90903?v=3","gravatar_id":"","url":"https://api.github.com/users/mlyle","html_url":"https://github.com/mlyle","followers_url":"https://api.github.com/users/mlyle/followers","following_url":"https://api.github.com/users/mlyle/following{/other_user}","gists_url":"https://api.github.com/users/mlyle/gists{/gist_id}","starred_url":"https://api.github.com/users/mlyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlyle/subscriptions","organizations_url":"https://api.github.com/users/mlyle/orgs","repos_url":"https://api.github.com/users/mlyle/repos","events_url":"https://api.github.com/users/mlyle/events{/privacy}","received_events_url":"https://api.github.com/users/mlyle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mlyle/TauLabs","description":"","fork":true,"url":"https://api.github.com/repos/mlyle/TauLabs","forks_url":"https://api.github.com/repos/mlyle/TauLabs/forks","keys_url":"https://api.github.com/repos/mlyle/TauLabs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mlyle/TauLabs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mlyle/TauLabs/teams","hooks_url":"https://api.github.com/repos/mlyle/TauLabs/hooks","issue_events_url":"https://api.github.com/repos/mlyle/TauLabs/issues/events{/number}","events_url":"https://api.github.com/repos/mlyle/TauLabs/events","assignees_url":"https://api.github.com/repos/mlyle/TauLabs/assignees{/user}","branches_url":"https://api.github.com/repos/mlyle/TauLabs/branches{/branch}","tags_url":"https://api.github.com/repos/mlyle/TauLabs/tags","blobs_url":"https://api.github.com/repos/mlyle/TauLabs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mlyle/TauLabs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mlyle/TauLabs/git/refs{/sha}","trees_url":"https://api.github.com/repos/mlyle/TauLabs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mlyle/TauLabs/statuses/{sha}","languages_url":"https://api.github.com/repos/mlyle/TauLabs/languages","stargazers_url":"https://api.github.com/repos/mlyle/TauLabs/stargazers","contributors_url":"https://api.github.com/repos/mlyle/TauLabs/contributors","subscribers_url":"https://api.github.com/repos/mlyle/TauLabs/subscribers","subscription_url":"https://api.github.com/repos/mlyle/TauLabs/subscription","commits_url":"https://api.github.com/repos/mlyle/TauLabs/commits{/sha}","git_commits_url":"https://api.github.com/repos/mlyle/TauLabs/git/commits{/sha}","comments_url":"https://api.github.com/repos/mlyle/TauLabs/comments{/number}","issue_comment_url":"https://api.github.com/repos/mlyle/TauLabs/issues/comments{/number}","contents_url":"https://api.github.com/repos/mlyle/TauLabs/contents/{+path}","compare_url":"https://api.github.com/repos/mlyle/TauLabs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mlyle/TauLabs/merges","archive_url":"https://api.github.com/repos/mlyle/TauLabs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mlyle/TauLabs/downloads","issues_url":"https://api.github.com/repos/mlyle/TauLabs/issues{/number}","pulls_url":"https://api.github.com/repos/mlyle/TauLabs/pulls{/number}","milestones_url":"https://api.github.com/repos/mlyle/TauLabs/milestones{/number}","notifications_url":"https://api.github.com/repos/mlyle/TauLabs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mlyle/TauLabs/labels{/name}","releases_url":"https://api.github.com/repos/mlyle/TauLabs/releases{/id}","created_at":"2015-03-30T22:24:21Z","updated_at":"2015-04-30T22:56:02Z","pushed_at":"2015-05-15T05:44:26Z","git_url":"git://github.com/mlyle/TauLabs.git","ssh_url":"git@github.com:mlyle/TauLabs.git","clone_url":"https://github.com/mlyle/TauLabs.git","svn_url":"https://github.com/mlyle/TauLabs","homepage":"taulabs.org","size":194508,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"next"}},"base":{"label":"TauLabs:next","ref":"next","sha":"3ee981abf54434c63232dcf49f3c87b04fc1f8fc","user":{"login":"TauLabs","id":3201381,"avatar_url":"https://avatars.githubusercontent.com/u/3201381?v=3","gravatar_id":"","url":"https://api.github.com/users/TauLabs","html_url":"https://github.com/TauLabs","followers_url":"https://api.github.com/users/TauLabs/followers","following_url":"https://api.github.com/users/TauLabs/following{/other_user}","gists_url":"https://api.github.com/users/TauLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/TauLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TauLabs/subscriptions","organizations_url":"https://api.github.com/users/TauLabs/orgs","repos_url":"https://api.github.com/users/TauLabs/repos","events_url":"https://api.github.com/users/TauLabs/events{/privacy}","received_events_url":"https://api.github.com/users/TauLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":6589168,"name":"TauLabs","full_name":"TauLabs/TauLabs","owner":{"login":"TauLabs","id":3201381,"avatar_url":"https://avatars.githubusercontent.com/u/3201381?v=3","gravatar_id":"","url":"https://api.github.com/users/TauLabs","html_url":"https://github.com/TauLabs","followers_url":"https://api.github.com/users/TauLabs/followers","following_url":"https://api.github.com/users/TauLabs/following{/other_user}","gists_url":"https://api.github.com/users/TauLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/TauLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TauLabs/subscriptions","organizations_url":"https://api.github.com/users/TauLabs/orgs","repos_url":"https://api.github.com/users/TauLabs/repos","events_url":"https://api.github.com/users/TauLabs/events{/privacy}","received_events_url":"https://api.github.com/users/TauLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TauLabs/TauLabs","description":"","fork":false,"url":"https://api.github.com/repos/TauLabs/TauLabs","forks_url":"https://api.github.com/repos/TauLabs/TauLabs/forks","keys_url":"https://api.github.com/repos/TauLabs/TauLabs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TauLabs/TauLabs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TauLabs/TauLabs/teams","hooks_url":"https://api.github.com/repos/TauLabs/TauLabs/hooks","issue_events_url":"https://api.github.com/repos/TauLabs/TauLabs/issues/events{/number}","events_url":"https://api.github.com/repos/TauLabs/TauLabs/events","assignees_url":"https://api.github.com/repos/TauLabs/TauLabs/assignees{/user}","branches_url":"https://api.github.com/repos/TauLabs/TauLabs/branches{/branch}","tags_url":"https://api.github.com/repos/TauLabs/TauLabs/tags","blobs_url":"https://api.github.com/repos/TauLabs/TauLabs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TauLabs/TauLabs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TauLabs/TauLabs/git/refs{/sha}","trees_url":"https://api.github.com/repos/TauLabs/TauLabs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TauLabs/TauLabs/statuses/{sha}","languages_url":"https://api.github.com/repos/TauLabs/TauLabs/languages","stargazers_url":"https://api.github.com/repos/TauLabs/TauLabs/stargazers","contributors_url":"https://api.github.com/repos/TauLabs/TauLabs/contributors","subscribers_url":"https://api.github.com/repos/TauLabs/TauLabs/subscribers","subscription_url":"https://api.github.com/repos/TauLabs/TauLabs/subscription","commits_url":"https://api.github.com/repos/TauLabs/TauLabs/commits{/sha}","git_commits_url":"https://api.github.com/repos/TauLabs/TauLabs/git/commits{/sha}","comments_url":"https://api.github.com/repos/TauLabs/TauLabs/comments{/number}","issue_comment_url":"https://api.github.com/repos/TauLabs/TauLabs/issues/comments{/number}","contents_url":"https://api.github.com/repos/TauLabs/TauLabs/contents/{+path}","compare_url":"https://api.github.com/repos/TauLabs/TauLabs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TauLabs/TauLabs/merges","archive_url":"https://api.github.com/repos/TauLabs/TauLabs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TauLabs/TauLabs/downloads","issues_url":"https://api.github.com/repos/TauLabs/TauLabs/issues{/number}","pulls_url":"https://api.github.com/repos/TauLabs/TauLabs/pulls{/number}","milestones_url":"https://api.github.com/repos/TauLabs/TauLabs/milestones{/number}","notifications_url":"https://api.github.com/repos/TauLabs/TauLabs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TauLabs/TauLabs/labels{/name}","releases_url":"https://api.github.com/repos/TauLabs/TauLabs/releases{/id}","created_at":"2012-11-08T01:01:18Z","updated_at":"2015-05-13T20:55:41Z","pushed_at":"2015-05-15T05:45:40Z","git_url":"git://github.com/TauLabs/TauLabs.git","ssh_url":"git@github.com:TauLabs/TauLabs.git","clone_url":"https://github.com/TauLabs/TauLabs.git","svn_url":"https://github.com/TauLabs/TauLabs","homepage":"taulabs.org","size":317971,"stargazers_count":217,"watchers_count":217,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":249,"mirror_url":null,"open_issues_count":284,"forks":249,"open_issues":284,"watchers":217,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1600"},"html":{"href":"https://github.com/TauLabs/TauLabs/pull/1600"},"issue":{"href":"https://api.github.com/repos/TauLabs/TauLabs/issues/1600"},"comments":{"href":"https://api.github.com/repos/TauLabs/TauLabs/issues/1600/comments"},"review_comments":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1600/comments"},"review_comment":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1600/commits"},"statuses":{"href":"https://api.github.com/repos/TauLabs/TauLabs/statuses/8284083639f86ce443be5bd56fde323deab14f58"}}}}