{"action":"created","comment":{"url":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/comments/76911194","id":76911194,"diff_hunk":"@@ -329,73 +360,75 @@ def BodyRatesToEarthRates(dcm, gyro):\n \n     (phi, theta, psi) = dcm.to_euler()\n \n-    phiDot   = p + tan(theta)*(q*sin(phi) + r*cos(phi))\n-    thetaDot = q*cos(phi) - r*sin(phi)\n+    phiDot   = p + tan(theta) * (q * sin(phi) + r * cos(phi))\n+    thetaDot = q * cos(phi) - r * sin(phi)\n     if fabs(cos(theta)) < 1.0e-20:\n         theta += 1.0e-10\n-    psiDot   = (q*sin(phi) + r*cos(phi))/cos(theta)\n+    psiDot   = (q * sin(phi) + r * cos(phi)) / cos(theta)\n     return Vector3(phiDot, thetaDot, psiDot)\n \n-radius_of_earth = 6378100.0 # in meters\n+radius_of_earth = 6378100.0  # in meters\n+\n \n def gps_newpos(lat, lon, bearing, distance):\n-    '''extrapolate latitude/longitude given a heading and distance \n-    thanks to http://www.movable-type.co.uk/scripts/latlong.html\n-    '''\n+    \"\"\"Extrapolate latitude/longitude given a heading and distance\n+    thanks to http://www.movable-type.co.uk/scripts/latlong.html .\n+    \"\"\"","path":"Tools/autotest/pysim/util.py","position":399,"original_position":399,"commit_id":"b0a5662bf1e780e4206ae653e2af2e93ed796a06","original_commit_id":"b0a5662bf1e780e4206ae653e2af2e93ed796a06","user":{"login":"OXINARF","id":1778527,"avatar_url":"https://avatars.githubusercontent.com/u/1778527?v=3","gravatar_id":"","url":"https://api.github.com/users/OXINARF","html_url":"https://github.com/OXINARF","followers_url":"https://api.github.com/users/OXINARF/followers","following_url":"https://api.github.com/users/OXINARF/following{/other_user}","gists_url":"https://api.github.com/users/OXINARF/gists{/gist_id}","starred_url":"https://api.github.com/users/OXINARF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OXINARF/subscriptions","organizations_url":"https://api.github.com/users/OXINARF/orgs","repos_url":"https://api.github.com/users/OXINARF/repos","events_url":"https://api.github.com/users/OXINARF/events{/privacy}","received_events_url":"https://api.github.com/users/OXINARF/received_events","type":"User","site_admin":false},"body":"Move the comment ending to the line before.","created_at":"2016-08-31T01:40:11Z","updated_at":"2016-08-31T01:40:11Z","html_url":"https://github.com/ArduPilot/ardupilot/pull/4570#discussion_r76911194","pull_request_url":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4570","_links":{"self":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/comments/76911194"},"html":{"href":"https://github.com/ArduPilot/ardupilot/pull/4570#discussion_r76911194"},"pull_request":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4570"}}},"pull_request":{"url":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4570","id":79342773,"html_url":"https://github.com/ArduPilot/ardupilot/pull/4570","diff_url":"https://github.com/ArduPilot/ardupilot/pull/4570.diff","patch_url":"https://github.com/ArduPilot/ardupilot/pull/4570.patch","issue_url":"https://api.github.com/repos/ArduPilot/ardupilot/issues/4570","number":4570,"state":"open","locked":false,"title":"Tools: update Python coding style","user":{"login":"khancyr","id":705341,"avatar_url":"https://avatars.githubusercontent.com/u/705341?v=3","gravatar_id":"","url":"https://api.github.com/users/khancyr","html_url":"https://github.com/khancyr","followers_url":"https://api.github.com/users/khancyr/followers","following_url":"https://api.github.com/users/khancyr/following{/other_user}","gists_url":"https://api.github.com/users/khancyr/gists{/gist_id}","starred_url":"https://api.github.com/users/khancyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khancyr/subscriptions","organizations_url":"https://api.github.com/users/khancyr/orgs","repos_url":"https://api.github.com/users/khancyr/repos","events_url":"https://api.github.com/users/khancyr/events{/privacy}","received_events_url":"https://api.github.com/users/khancyr/received_events","type":"User","site_admin":false},"body":"Following https://github.com/ArduPilot/ardupilot/pull/4423 , this update all python file in Tools/autotest .\r\nMostly cosmetic changes, \r\nCode correction will follow","created_at":"2016-07-29T11:03:22Z","updated_at":"2016-08-31T01:40:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22ccc8f332c42fcfc38a2507e78a0b422cef9371","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4570/commits","review_comments_url":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4570/comments","review_comment_url":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ArduPilot/ardupilot/issues/4570/comments","statuses_url":"https://api.github.com/repos/ArduPilot/ardupilot/statuses/b0a5662bf1e780e4206ae653e2af2e93ed796a06","head":{"label":"khancyr:python_style2","ref":"python_style2","sha":"b0a5662bf1e780e4206ae653e2af2e93ed796a06","user":{"login":"khancyr","id":705341,"avatar_url":"https://avatars.githubusercontent.com/u/705341?v=3","gravatar_id":"","url":"https://api.github.com/users/khancyr","html_url":"https://github.com/khancyr","followers_url":"https://api.github.com/users/khancyr/followers","following_url":"https://api.github.com/users/khancyr/following{/other_user}","gists_url":"https://api.github.com/users/khancyr/gists{/gist_id}","starred_url":"https://api.github.com/users/khancyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khancyr/subscriptions","organizations_url":"https://api.github.com/users/khancyr/orgs","repos_url":"https://api.github.com/users/khancyr/repos","events_url":"https://api.github.com/users/khancyr/events{/privacy}","received_events_url":"https://api.github.com/users/khancyr/received_events","type":"User","site_admin":false},"repo":{"id":38307533,"name":"ardupilot","full_name":"khancyr/ardupilot","owner":{"login":"khancyr","id":705341,"avatar_url":"https://avatars.githubusercontent.com/u/705341?v=3","gravatar_id":"","url":"https://api.github.com/users/khancyr","html_url":"https://github.com/khancyr","followers_url":"https://api.github.com/users/khancyr/followers","following_url":"https://api.github.com/users/khancyr/following{/other_user}","gists_url":"https://api.github.com/users/khancyr/gists{/gist_id}","starred_url":"https://api.github.com/users/khancyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khancyr/subscriptions","organizations_url":"https://api.github.com/users/khancyr/orgs","repos_url":"https://api.github.com/users/khancyr/repos","events_url":"https://api.github.com/users/khancyr/events{/privacy}","received_events_url":"https://api.github.com/users/khancyr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/khancyr/ardupilot","description":"APM Plane, APM Copter, APM Rover source","fork":true,"url":"https://api.github.com/repos/khancyr/ardupilot","forks_url":"https://api.github.com/repos/khancyr/ardupilot/forks","keys_url":"https://api.github.com/repos/khancyr/ardupilot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/khancyr/ardupilot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/khancyr/ardupilot/teams","hooks_url":"https://api.github.com/repos/khancyr/ardupilot/hooks","issue_events_url":"https://api.github.com/repos/khancyr/ardupilot/issues/events{/number}","events_url":"https://api.github.com/repos/khancyr/ardupilot/events","assignees_url":"https://api.github.com/repos/khancyr/ardupilot/assignees{/user}","branches_url":"https://api.github.com/repos/khancyr/ardupilot/branches{/branch}","tags_url":"https://api.github.com/repos/khancyr/ardupilot/tags","blobs_url":"https://api.github.com/repos/khancyr/ardupilot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/khancyr/ardupilot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/khancyr/ardupilot/git/refs{/sha}","trees_url":"https://api.github.com/repos/khancyr/ardupilot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/khancyr/ardupilot/statuses/{sha}","languages_url":"https://api.github.com/repos/khancyr/ardupilot/languages","stargazers_url":"https://api.github.com/repos/khancyr/ardupilot/stargazers","contributors_url":"https://api.github.com/repos/khancyr/ardupilot/contributors","subscribers_url":"https://api.github.com/repos/khancyr/ardupilot/subscribers","subscription_url":"https://api.github.com/repos/khancyr/ardupilot/subscription","commits_url":"https://api.github.com/repos/khancyr/ardupilot/commits{/sha}","git_commits_url":"https://api.github.com/repos/khancyr/ardupilot/git/commits{/sha}","comments_url":"https://api.github.com/repos/khancyr/ardupilot/comments{/number}","issue_comment_url":"https://api.github.com/repos/khancyr/ardupilot/issues/comments{/number}","contents_url":"https://api.github.com/repos/khancyr/ardupilot/contents/{+path}","compare_url":"https://api.github.com/repos/khancyr/ardupilot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/khancyr/ardupilot/merges","archive_url":"https://api.github.com/repos/khancyr/ardupilot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/khancyr/ardupilot/downloads","issues_url":"https://api.github.com/repos/khancyr/ardupilot/issues{/number}","pulls_url":"https://api.github.com/repos/khancyr/ardupilot/pulls{/number}","milestones_url":"https://api.github.com/repos/khancyr/ardupilot/milestones{/number}","notifications_url":"https://api.github.com/repos/khancyr/ardupilot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/khancyr/ardupilot/labels{/name}","releases_url":"https://api.github.com/repos/khancyr/ardupilot/releases{/id}","deployments_url":"https://api.github.com/repos/khancyr/ardupilot/deployments","created_at":"2015-06-30T12:19:53Z","updated_at":"2016-01-14T08:47:43Z","pushed_at":"2016-08-29T15:27:03Z","git_url":"git://github.com/khancyr/ardupilot.git","ssh_url":"git@github.com:khancyr/ardupilot.git","clone_url":"https://github.com/khancyr/ardupilot.git","svn_url":"https://github.com/khancyr/ardupilot","homepage":"http://ardupilot.com/","size":78383,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"ArduPilot:master","ref":"master","sha":"33f17588b29667b10a69484c77a4502332f8fe1a","user":{"login":"ArduPilot","id":17919847,"avatar_url":"https://avatars.githubusercontent.com/u/17919847?v=3","gravatar_id":"","url":"https://api.github.com/users/ArduPilot","html_url":"https://github.com/ArduPilot","followers_url":"https://api.github.com/users/ArduPilot/followers","following_url":"https://api.github.com/users/ArduPilot/following{/other_user}","gists_url":"https://api.github.com/users/ArduPilot/gists{/gist_id}","starred_url":"https://api.github.com/users/ArduPilot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArduPilot/subscriptions","organizations_url":"https://api.github.com/users/ArduPilot/orgs","repos_url":"https://api.github.com/users/ArduPilot/repos","events_url":"https://api.github.com/users/ArduPilot/events{/privacy}","received_events_url":"https://api.github.com/users/ArduPilot/received_events","type":"Organization","site_admin":false},"repo":{"id":7512484,"name":"ardupilot","full_name":"ArduPilot/ardupilot","owner":{"login":"ArduPilot","id":17919847,"avatar_url":"https://avatars.githubusercontent.com/u/17919847?v=3","gravatar_id":"","url":"https://api.github.com/users/ArduPilot","html_url":"https://github.com/ArduPilot","followers_url":"https://api.github.com/users/ArduPilot/followers","following_url":"https://api.github.com/users/ArduPilot/following{/other_user}","gists_url":"https://api.github.com/users/ArduPilot/gists{/gist_id}","starred_url":"https://api.github.com/users/ArduPilot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArduPilot/subscriptions","organizations_url":"https://api.github.com/users/ArduPilot/orgs","repos_url":"https://api.github.com/users/ArduPilot/repos","events_url":"https://api.github.com/users/ArduPilot/events{/privacy}","received_events_url":"https://api.github.com/users/ArduPilot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ArduPilot/ardupilot","description":"ArduPlane, ArduCopter, ArduRover source","fork":false,"url":"https://api.github.com/repos/ArduPilot/ardupilot","forks_url":"https://api.github.com/repos/ArduPilot/ardupilot/forks","keys_url":"https://api.github.com/repos/ArduPilot/ardupilot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ArduPilot/ardupilot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ArduPilot/ardupilot/teams","hooks_url":"https://api.github.com/repos/ArduPilot/ardupilot/hooks","issue_events_url":"https://api.github.com/repos/ArduPilot/ardupilot/issues/events{/number}","events_url":"https://api.github.com/repos/ArduPilot/ardupilot/events","assignees_url":"https://api.github.com/repos/ArduPilot/ardupilot/assignees{/user}","branches_url":"https://api.github.com/repos/ArduPilot/ardupilot/branches{/branch}","tags_url":"https://api.github.com/repos/ArduPilot/ardupilot/tags","blobs_url":"https://api.github.com/repos/ArduPilot/ardupilot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ArduPilot/ardupilot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ArduPilot/ardupilot/git/refs{/sha}","trees_url":"https://api.github.com/repos/ArduPilot/ardupilot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ArduPilot/ardupilot/statuses/{sha}","languages_url":"https://api.github.com/repos/ArduPilot/ardupilot/languages","stargazers_url":"https://api.github.com/repos/ArduPilot/ardupilot/stargazers","contributors_url":"https://api.github.com/repos/ArduPilot/ardupilot/contributors","subscribers_url":"https://api.github.com/repos/ArduPilot/ardupilot/subscribers","subscription_url":"https://api.github.com/repos/ArduPilot/ardupilot/subscription","commits_url":"https://api.github.com/repos/ArduPilot/ardupilot/commits{/sha}","git_commits_url":"https://api.github.com/repos/ArduPilot/ardupilot/git/commits{/sha}","comments_url":"https://api.github.com/repos/ArduPilot/ardupilot/comments{/number}","issue_comment_url":"https://api.github.com/repos/ArduPilot/ardupilot/issues/comments{/number}","contents_url":"https://api.github.com/repos/ArduPilot/ardupilot/contents/{+path}","compare_url":"https://api.github.com/repos/ArduPilot/ardupilot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ArduPilot/ardupilot/merges","archive_url":"https://api.github.com/repos/ArduPilot/ardupilot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ArduPilot/ardupilot/downloads","issues_url":"https://api.github.com/repos/ArduPilot/ardupilot/issues{/number}","pulls_url":"https://api.github.com/repos/ArduPilot/ardupilot/pulls{/number}","milestones_url":"https://api.github.com/repos/ArduPilot/ardupilot/milestones{/number}","notifications_url":"https://api.github.com/repos/ArduPilot/ardupilot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ArduPilot/ardupilot/labels{/name}","releases_url":"https://api.github.com/repos/ArduPilot/ardupilot/releases{/id}","deployments_url":"https://api.github.com/repos/ArduPilot/ardupilot/deployments","created_at":"2013-01-09T00:58:52Z","updated_at":"2016-08-30T18:42:54Z","pushed_at":"2016-08-31T01:34:51Z","git_url":"git://github.com/ArduPilot/ardupilot.git","ssh_url":"git@github.com:ArduPilot/ardupilot.git","clone_url":"https://github.com/ArduPilot/ardupilot.git","svn_url":"https://github.com/ArduPilot/ardupilot","homepage":"http://ardupilot.org/","size":144260,"stargazers_count":2046,"watchers_count":2046,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4339,"mirror_url":null,"open_issues_count":811,"forks":4339,"open_issues":811,"watchers":2046,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4570"},"html":{"href":"https://github.com/ArduPilot/ardupilot/pull/4570"},"issue":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/issues/4570"},"comments":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/issues/4570/comments"},"review_comments":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4570/comments"},"review_comment":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4570/commits"},"statuses":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/statuses/b0a5662bf1e780e4206ae653e2af2e93ed796a06"}}}}
{"actor":{"display_login":"OXINARF"}}