{"action":"created","comment":{"url":"https://api.github.com/repos/diydrones/dronekit-python/pulls/comments/31495170","id":31495170,"diff_hunk":"@@ -173,17 +173,20 @@ class Battery(object):\n     \"\"\"\n     Battery info available\n \n-    :param battery_voltage: Battery voltage in millivolts\n-    :param battery_current: Battery current, in 10 * milliamperes, -1: autopilot does not measure the current\n-    :param battery_level: Remaining battery energy, -1: autopilot estimate the remaining battery\n+    :param voltage: Battery voltage in millivolts\n+    :param current: Battery current, in 10 * milliamperes, -1: autopilot does not measure the current\n+    :param level: Remaining battery energy, -1: autopilot estimate the remaining battery","path":"droneapi/lib/__init__.py","position":9,"original_position":9,"commit_id":"6951a3a205450913e7db2153b702208f12368b87","original_commit_id":"6951a3a205450913e7db2153b702208f12368b87","user":{"login":"hamishwillee","id":5368500,"avatar_url":"https://avatars.githubusercontent.com/u/5368500?v=3","gravatar_id":"","url":"https://api.github.com/users/hamishwillee","html_url":"https://github.com/hamishwillee","followers_url":"https://api.github.com/users/hamishwillee/followers","following_url":"https://api.github.com/users/hamishwillee/following{/other_user}","gists_url":"https://api.github.com/users/hamishwillee/gists{/gist_id}","starred_url":"https://api.github.com/users/hamishwillee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamishwillee/subscriptions","organizations_url":"https://api.github.com/users/hamishwillee/orgs","repos_url":"https://api.github.com/users/hamishwillee/repos","events_url":"https://api.github.com/users/hamishwillee/events{/privacy}","received_events_url":"https://api.github.com/users/hamishwillee/received_events","type":"User","site_admin":false},"body":"The changes I plan to make to this section are:\r\n\r\n- add full stops :-)\r\n- Now these return ```None``` document that\r\n\r\nSo:\r\n```\r\n:param voltage: Battery voltage in millivolts.\r\n:param current: Battery current, in 10 * milliamperes. ``None`` if the autopilot does not support current measurement.\r\n:param level: Remaining battery energy. ``None`` if the autopilot cannot estimate the remaining battery.\r\n```\r\n\r\nNote the change to description of \"level\". This is an \" educated guess\" on the behaviour - the original text (from the specification) does not make any sense.\r\n","created_at":"2015-06-02T06:18:23Z","updated_at":"2015-06-02T06:18:23Z","html_url":"https://github.com/diydrones/dronekit-python/pull/139#discussion_r31495170","pull_request_url":"https://api.github.com/repos/diydrones/dronekit-python/pulls/139","_links":{"self":{"href":"https://api.github.com/repos/diydrones/dronekit-python/pulls/comments/31495170"},"html":{"href":"https://github.com/diydrones/dronekit-python/pull/139#discussion_r31495170"},"pull_request":{"href":"https://api.github.com/repos/diydrones/dronekit-python/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/diydrones/dronekit-python/pulls/139","id":36617042,"html_url":"https://github.com/diydrones/dronekit-python/pull/139","diff_url":"https://github.com/diydrones/dronekit-python/pull/139.diff","patch_url":"https://github.com/diydrones/dronekit-python/pull/139.patch","issue_url":"https://api.github.com/repos/diydrones/dronekit-python/issues/139","number":139,"state":"open","locked":false,"title":"Fix #137","user":{"login":"maruina","id":4821896,"avatar_url":"https://avatars.githubusercontent.com/u/4821896?v=3","gravatar_id":"","url":"https://api.github.com/users/maruina","html_url":"https://github.com/maruina","followers_url":"https://api.github.com/users/maruina/followers","following_url":"https://api.github.com/users/maruina/following{/other_user}","gists_url":"https://api.github.com/users/maruina/gists{/gist_id}","starred_url":"https://api.github.com/users/maruina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maruina/subscriptions","organizations_url":"https://api.github.com/users/maruina/orgs","repos_url":"https://api.github.com/users/maruina/repos","events_url":"https://api.github.com/users/maruina/events{/privacy}","received_events_url":"https://api.github.com/users/maruina/received_events","type":"User","site_admin":false},"body":"Change \"-1\" with \"None\".\r\nFixed the print issue.\r\n\r\n```\r\nprint \" Battery: %s\" % v.battery\r\nBattery: Battery voltage: 11.997, current: None, level: None\r\n```\r\n","created_at":"2015-06-01T10:44:52Z","updated_at":"2015-06-02T06:18:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a68f4e2a70d0c3e9e49608f751a68d1b4423db2a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/diydrones/dronekit-python/pulls/139/commits","review_comments_url":"https://api.github.com/repos/diydrones/dronekit-python/pulls/139/comments","review_comment_url":"https://api.github.com/repos/diydrones/dronekit-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diydrones/dronekit-python/issues/139/comments","statuses_url":"https://api.github.com/repos/diydrones/dronekit-python/statuses/6951a3a205450913e7db2153b702208f12368b87","head":{"label":"maruina:master","ref":"master","sha":"6951a3a205450913e7db2153b702208f12368b87","user":{"login":"maruina","id":4821896,"avatar_url":"https://avatars.githubusercontent.com/u/4821896?v=3","gravatar_id":"","url":"https://api.github.com/users/maruina","html_url":"https://github.com/maruina","followers_url":"https://api.github.com/users/maruina/followers","following_url":"https://api.github.com/users/maruina/following{/other_user}","gists_url":"https://api.github.com/users/maruina/gists{/gist_id}","starred_url":"https://api.github.com/users/maruina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maruina/subscriptions","organizations_url":"https://api.github.com/users/maruina/orgs","repos_url":"https://api.github.com/users/maruina/repos","events_url":"https://api.github.com/users/maruina/events{/privacy}","received_events_url":"https://api.github.com/users/maruina/received_events","type":"User","site_admin":false},"repo":{"id":36309468,"name":"dronekit-python","full_name":"maruina/dronekit-python","owner":{"login":"maruina","id":4821896,"avatar_url":"https://avatars.githubusercontent.com/u/4821896?v=3","gravatar_id":"","url":"https://api.github.com/users/maruina","html_url":"https://github.com/maruina","followers_url":"https://api.github.com/users/maruina/followers","following_url":"https://api.github.com/users/maruina/following{/other_user}","gists_url":"https://api.github.com/users/maruina/gists{/gist_id}","starred_url":"https://api.github.com/users/maruina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maruina/subscriptions","organizations_url":"https://api.github.com/users/maruina/orgs","repos_url":"https://api.github.com/users/maruina/repos","events_url":"https://api.github.com/users/maruina/events{/privacy}","received_events_url":"https://api.github.com/users/maruina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maruina/dronekit-python","description":"The python language bindings and mavproxy module for the drone API","fork":true,"url":"https://api.github.com/repos/maruina/dronekit-python","forks_url":"https://api.github.com/repos/maruina/dronekit-python/forks","keys_url":"https://api.github.com/repos/maruina/dronekit-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maruina/dronekit-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maruina/dronekit-python/teams","hooks_url":"https://api.github.com/repos/maruina/dronekit-python/hooks","issue_events_url":"https://api.github.com/repos/maruina/dronekit-python/issues/events{/number}","events_url":"https://api.github.com/repos/maruina/dronekit-python/events","assignees_url":"https://api.github.com/repos/maruina/dronekit-python/assignees{/user}","branches_url":"https://api.github.com/repos/maruina/dronekit-python/branches{/branch}","tags_url":"https://api.github.com/repos/maruina/dronekit-python/tags","blobs_url":"https://api.github.com/repos/maruina/dronekit-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maruina/dronekit-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maruina/dronekit-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/maruina/dronekit-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maruina/dronekit-python/statuses/{sha}","languages_url":"https://api.github.com/repos/maruina/dronekit-python/languages","stargazers_url":"https://api.github.com/repos/maruina/dronekit-python/stargazers","contributors_url":"https://api.github.com/repos/maruina/dronekit-python/contributors","subscribers_url":"https://api.github.com/repos/maruina/dronekit-python/subscribers","subscription_url":"https://api.github.com/repos/maruina/dronekit-python/subscription","commits_url":"https://api.github.com/repos/maruina/dronekit-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/maruina/dronekit-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/maruina/dronekit-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/maruina/dronekit-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/maruina/dronekit-python/contents/{+path}","compare_url":"https://api.github.com/repos/maruina/dronekit-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maruina/dronekit-python/merges","archive_url":"https://api.github.com/repos/maruina/dronekit-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maruina/dronekit-python/downloads","issues_url":"https://api.github.com/repos/maruina/dronekit-python/issues{/number}","pulls_url":"https://api.github.com/repos/maruina/dronekit-python/pulls{/number}","milestones_url":"https://api.github.com/repos/maruina/dronekit-python/milestones{/number}","notifications_url":"https://api.github.com/repos/maruina/dronekit-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maruina/dronekit-python/labels{/name}","releases_url":"https://api.github.com/repos/maruina/dronekit-python/releases{/id}","created_at":"2015-05-26T16:39:02Z","updated_at":"2015-05-26T16:39:03Z","pushed_at":"2015-06-01T10:37:01Z","git_url":"git://github.com/maruina/dronekit-python.git","ssh_url":"git@github.com:maruina/dronekit-python.git","clone_url":"https://github.com/maruina/dronekit-python.git","svn_url":"https://github.com/maruina/dronekit-python","homepage":null,"size":1708,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"diydrones:master","ref":"master","sha":"eda039f8de5d1167c48285b8ba8e99651d95392a","user":{"login":"diydrones","id":3189387,"avatar_url":"https://avatars.githubusercontent.com/u/3189387?v=3","gravatar_id":"","url":"https://api.github.com/users/diydrones","html_url":"https://github.com/diydrones","followers_url":"https://api.github.com/users/diydrones/followers","following_url":"https://api.github.com/users/diydrones/following{/other_user}","gists_url":"https://api.github.com/users/diydrones/gists{/gist_id}","starred_url":"https://api.github.com/users/diydrones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diydrones/subscriptions","organizations_url":"https://api.github.com/users/diydrones/orgs","repos_url":"https://api.github.com/users/diydrones/repos","events_url":"https://api.github.com/users/diydrones/events{/privacy}","received_events_url":"https://api.github.com/users/diydrones/received_events","type":"Organization","site_admin":false},"repo":{"id":18188537,"name":"dronekit-python","full_name":"diydrones/dronekit-python","owner":{"login":"diydrones","id":3189387,"avatar_url":"https://avatars.githubusercontent.com/u/3189387?v=3","gravatar_id":"","url":"https://api.github.com/users/diydrones","html_url":"https://github.com/diydrones","followers_url":"https://api.github.com/users/diydrones/followers","following_url":"https://api.github.com/users/diydrones/following{/other_user}","gists_url":"https://api.github.com/users/diydrones/gists{/gist_id}","starred_url":"https://api.github.com/users/diydrones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diydrones/subscriptions","organizations_url":"https://api.github.com/users/diydrones/orgs","repos_url":"https://api.github.com/users/diydrones/repos","events_url":"https://api.github.com/users/diydrones/events{/privacy}","received_events_url":"https://api.github.com/users/diydrones/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diydrones/dronekit-python","description":"The python language bindings and mavproxy module for the drone API","fork":false,"url":"https://api.github.com/repos/diydrones/dronekit-python","forks_url":"https://api.github.com/repos/diydrones/dronekit-python/forks","keys_url":"https://api.github.com/repos/diydrones/dronekit-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diydrones/dronekit-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diydrones/dronekit-python/teams","hooks_url":"https://api.github.com/repos/diydrones/dronekit-python/hooks","issue_events_url":"https://api.github.com/repos/diydrones/dronekit-python/issues/events{/number}","events_url":"https://api.github.com/repos/diydrones/dronekit-python/events","assignees_url":"https://api.github.com/repos/diydrones/dronekit-python/assignees{/user}","branches_url":"https://api.github.com/repos/diydrones/dronekit-python/branches{/branch}","tags_url":"https://api.github.com/repos/diydrones/dronekit-python/tags","blobs_url":"https://api.github.com/repos/diydrones/dronekit-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diydrones/dronekit-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diydrones/dronekit-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/diydrones/dronekit-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diydrones/dronekit-python/statuses/{sha}","languages_url":"https://api.github.com/repos/diydrones/dronekit-python/languages","stargazers_url":"https://api.github.com/repos/diydrones/dronekit-python/stargazers","contributors_url":"https://api.github.com/repos/diydrones/dronekit-python/contributors","subscribers_url":"https://api.github.com/repos/diydrones/dronekit-python/subscribers","subscription_url":"https://api.github.com/repos/diydrones/dronekit-python/subscription","commits_url":"https://api.github.com/repos/diydrones/dronekit-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/diydrones/dronekit-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/diydrones/dronekit-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/diydrones/dronekit-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/diydrones/dronekit-python/contents/{+path}","compare_url":"https://api.github.com/repos/diydrones/dronekit-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diydrones/dronekit-python/merges","archive_url":"https://api.github.com/repos/diydrones/dronekit-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diydrones/dronekit-python/downloads","issues_url":"https://api.github.com/repos/diydrones/dronekit-python/issues{/number}","pulls_url":"https://api.github.com/repos/diydrones/dronekit-python/pulls{/number}","milestones_url":"https://api.github.com/repos/diydrones/dronekit-python/milestones{/number}","notifications_url":"https://api.github.com/repos/diydrones/dronekit-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diydrones/dronekit-python/labels{/name}","releases_url":"https://api.github.com/repos/diydrones/dronekit-python/releases{/id}","created_at":"2014-03-27T19:28:36Z","updated_at":"2015-05-28T15:57:20Z","pushed_at":"2015-06-01T23:12:49Z","git_url":"git://github.com/diydrones/dronekit-python.git","ssh_url":"git@github.com:diydrones/dronekit-python.git","clone_url":"https://github.com/diydrones/dronekit-python.git","svn_url":"https://github.com/diydrones/dronekit-python","homepage":null,"size":2971,"stargazers_count":53,"watchers_count":53,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":41,"mirror_url":null,"open_issues_count":46,"forks":41,"open_issues":46,"watchers":53,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/diydrones/dronekit-python/pulls/139"},"html":{"href":"https://github.com/diydrones/dronekit-python/pull/139"},"issue":{"href":"https://api.github.com/repos/diydrones/dronekit-python/issues/139"},"comments":{"href":"https://api.github.com/repos/diydrones/dronekit-python/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/diydrones/dronekit-python/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/diydrones/dronekit-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diydrones/dronekit-python/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/diydrones/dronekit-python/statuses/6951a3a205450913e7db2153b702208f12368b87"}}}}