{"action":"closed","number":1981,"pull_request":{"url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1981","id":47177370,"html_url":"https://github.com/TauLabs/TauLabs/pull/1981","diff_url":"https://github.com/TauLabs/TauLabs/pull/1981.diff","patch_url":"https://github.com/TauLabs/TauLabs/pull/1981.patch","issue_url":"https://api.github.com/repos/TauLabs/TauLabs/issues/1981","number":1981,"state":"closed","locked":false,"title":"Python API improvements","user":{"login":"mluessi","id":647005,"avatar_url":"https://avatars.githubusercontent.com/u/647005?v=3","gravatar_id":"","url":"https://api.github.com/users/mluessi","html_url":"https://github.com/mluessi","followers_url":"https://api.github.com/users/mluessi/followers","following_url":"https://api.github.com/users/mluessi/following{/other_user}","gists_url":"https://api.github.com/users/mluessi/gists{/gist_id}","starred_url":"https://api.github.com/users/mluessi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mluessi/subscriptions","organizations_url":"https://api.github.com/users/mluessi/orgs","repos_url":"https://api.github.com/users/mluessi/repos","events_url":"https://api.github.com/users/mluessi/events{/privacy}","received_events_url":"https://api.github.com/users/mluessi/received_events","type":"User","site_admin":false},"body":"Several improvements to the Python API:\r\n\r\n- It is now possible to directly instantiate UAVOs in Python with the correct default values from the xml file. E.g.: `sparky = uavo.UAVO_HwSparky2()`\r\n- ENUMs are included in the Python UAVOs (including correct parsing of shared definitions) and are e.g. used to produce more informative representations of the objects . E.g.:\r\n```\r\n    print sparky\r\n    UAVO_HwSparky2(name=UAVO_HwSparky2, time=0, uavo_id=609948424, CoordID=0,\r\n    RcvrPort=Disabled(0), MainPort=Disabled(0), FlexiPort=Disabled(0), USB_HIDPort=USBTelemetry(0), \r\n    USB_VCPPort=Disabled(4), DSMxMode=Autodetect(0), Radio=Disabled(0), MaxRfSpeed=64000(3), \r\n    MaxRfPower=125(1), MinChannel=0, MaxChannel=250, GyroRange=2000(3),  AccelRange=8G(2),\r\n    MPU9250Rate=500(3), MPU9250GyroLPF=184(0), MPU9250AccelLPF=184(1), VTX_Ch=1(0),\r\n    Magnetometer=Internal(0), ExtMagOrientation=Top0degCW(0))\r\n```\r\n- Python scripts using the githash to get the UAVO definitions can now be run from any directory (previously, one had to be in the TL root directory)\r\n\r\n- Fixed a bug that sometimes caused the TCP telemetry to fail due to a \"Resource temporarily unavailable\" error (not sure why this error occurred, it shouldn't be possible due to the use of `select`).\r\n\r\n","created_at":"2015-10-08T16:45:34Z","updated_at":"2015-10-13T17:04:13Z","closed_at":"2015-10-13T17:04:13Z","merged_at":"2015-10-13T17:04:13Z","merge_commit_sha":"34c60a561b157e64da3ec7e84b136460322ef06a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1981/commits","review_comments_url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1981/comments","review_comment_url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TauLabs/TauLabs/issues/1981/comments","statuses_url":"https://api.github.com/repos/TauLabs/TauLabs/statuses/f19cfbe7e99f73d1efebd4a520ac0a9a2643f241","head":{"label":"cyphyworks:enh_python_api_enum","ref":"enh_python_api_enum","sha":"f19cfbe7e99f73d1efebd4a520ac0a9a2643f241","user":{"login":"cyphyworks","id":12955453,"avatar_url":"https://avatars.githubusercontent.com/u/12955453?v=3","gravatar_id":"","url":"https://api.github.com/users/cyphyworks","html_url":"https://github.com/cyphyworks","followers_url":"https://api.github.com/users/cyphyworks/followers","following_url":"https://api.github.com/users/cyphyworks/following{/other_user}","gists_url":"https://api.github.com/users/cyphyworks/gists{/gist_id}","starred_url":"https://api.github.com/users/cyphyworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyphyworks/subscriptions","organizations_url":"https://api.github.com/users/cyphyworks/orgs","repos_url":"https://api.github.com/users/cyphyworks/repos","events_url":"https://api.github.com/users/cyphyworks/events{/privacy}","received_events_url":"https://api.github.com/users/cyphyworks/received_events","type":"Organization","site_admin":false},"repo":{"id":41383980,"name":"TauLabs","full_name":"cyphyworks/TauLabs","owner":{"login":"cyphyworks","id":12955453,"avatar_url":"https://avatars.githubusercontent.com/u/12955453?v=3","gravatar_id":"","url":"https://api.github.com/users/cyphyworks","html_url":"https://github.com/cyphyworks","followers_url":"https://api.github.com/users/cyphyworks/followers","following_url":"https://api.github.com/users/cyphyworks/following{/other_user}","gists_url":"https://api.github.com/users/cyphyworks/gists{/gist_id}","starred_url":"https://api.github.com/users/cyphyworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyphyworks/subscriptions","organizations_url":"https://api.github.com/users/cyphyworks/orgs","repos_url":"https://api.github.com/users/cyphyworks/repos","events_url":"https://api.github.com/users/cyphyworks/events{/privacy}","received_events_url":"https://api.github.com/users/cyphyworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cyphyworks/TauLabs","description":"","fork":true,"url":"https://api.github.com/repos/cyphyworks/TauLabs","forks_url":"https://api.github.com/repos/cyphyworks/TauLabs/forks","keys_url":"https://api.github.com/repos/cyphyworks/TauLabs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyphyworks/TauLabs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyphyworks/TauLabs/teams","hooks_url":"https://api.github.com/repos/cyphyworks/TauLabs/hooks","issue_events_url":"https://api.github.com/repos/cyphyworks/TauLabs/issues/events{/number}","events_url":"https://api.github.com/repos/cyphyworks/TauLabs/events","assignees_url":"https://api.github.com/repos/cyphyworks/TauLabs/assignees{/user}","branches_url":"https://api.github.com/repos/cyphyworks/TauLabs/branches{/branch}","tags_url":"https://api.github.com/repos/cyphyworks/TauLabs/tags","blobs_url":"https://api.github.com/repos/cyphyworks/TauLabs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyphyworks/TauLabs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyphyworks/TauLabs/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyphyworks/TauLabs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyphyworks/TauLabs/statuses/{sha}","languages_url":"https://api.github.com/repos/cyphyworks/TauLabs/languages","stargazers_url":"https://api.github.com/repos/cyphyworks/TauLabs/stargazers","contributors_url":"https://api.github.com/repos/cyphyworks/TauLabs/contributors","subscribers_url":"https://api.github.com/repos/cyphyworks/TauLabs/subscribers","subscription_url":"https://api.github.com/repos/cyphyworks/TauLabs/subscription","commits_url":"https://api.github.com/repos/cyphyworks/TauLabs/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyphyworks/TauLabs/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyphyworks/TauLabs/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyphyworks/TauLabs/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyphyworks/TauLabs/contents/{+path}","compare_url":"https://api.github.com/repos/cyphyworks/TauLabs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyphyworks/TauLabs/merges","archive_url":"https://api.github.com/repos/cyphyworks/TauLabs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyphyworks/TauLabs/downloads","issues_url":"https://api.github.com/repos/cyphyworks/TauLabs/issues{/number}","pulls_url":"https://api.github.com/repos/cyphyworks/TauLabs/pulls{/number}","milestones_url":"https://api.github.com/repos/cyphyworks/TauLabs/milestones{/number}","notifications_url":"https://api.github.com/repos/cyphyworks/TauLabs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyphyworks/TauLabs/labels{/name}","releases_url":"https://api.github.com/repos/cyphyworks/TauLabs/releases{/id}","created_at":"2015-08-25T19:37:29Z","updated_at":"2015-08-25T20:03:35Z","pushed_at":"2015-10-13T15:27:42Z","git_url":"git://github.com/cyphyworks/TauLabs.git","ssh_url":"git@github.com:cyphyworks/TauLabs.git","clone_url":"https://github.com/cyphyworks/TauLabs.git","svn_url":"https://github.com/cyphyworks/TauLabs","homepage":"taulabs.org","size":209740,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"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":"TauLabs:next","ref":"next","sha":"acc1ca75574f7a2fbaf2a0ebb613950d355e27d6","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-10-13T01:29:11Z","pushed_at":"2015-10-13T17:04:13Z","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":333143,"stargazers_count":276,"watchers_count":276,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":318,"mirror_url":null,"open_issues_count":260,"forks":318,"open_issues":260,"watchers":276,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1981"},"html":{"href":"https://github.com/TauLabs/TauLabs/pull/1981"},"issue":{"href":"https://api.github.com/repos/TauLabs/TauLabs/issues/1981"},"comments":{"href":"https://api.github.com/repos/TauLabs/TauLabs/issues/1981/comments"},"review_comments":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1981/comments"},"review_comment":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1981/commits"},"statuses":{"href":"https://api.github.com/repos/TauLabs/TauLabs/statuses/f19cfbe7e99f73d1efebd4a520ac0a9a2643f241"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"kubark42","id":1118185,"avatar_url":"https://avatars.githubusercontent.com/u/1118185?v=3","gravatar_id":"","url":"https://api.github.com/users/kubark42","html_url":"https://github.com/kubark42","followers_url":"https://api.github.com/users/kubark42/followers","following_url":"https://api.github.com/users/kubark42/following{/other_user}","gists_url":"https://api.github.com/users/kubark42/gists{/gist_id}","starred_url":"https://api.github.com/users/kubark42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubark42/subscriptions","organizations_url":"https://api.github.com/users/kubark42/orgs","repos_url":"https://api.github.com/users/kubark42/repos","events_url":"https://api.github.com/users/kubark42/events{/privacy}","received_events_url":"https://api.github.com/users/kubark42/received_events","type":"User","site_admin":false},"comments":8,"review_comments":22,"commits":3,"additions":157,"deletions":39,"changed_files":3}}