{"action":"created","comment":{"url":"https://api.github.com/repos/robotpy/pyfrc/pulls/comments/242733065","pull_request_review_id":186316729,"id":242733065,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjczMzA2NQ==","diff_hunk":"@@ -0,0 +1,64 @@\n+import inspect\n+from os.path import abspath, dirname, exists, join\n+\n+physics_starter = \"\"\"\n+#\n+# See the documentation for more details on how this works\n+#\n+# Documentation can be found at https://robotpy.readthedocs.io/projects/pyfrc/en/latest/physics.html\n+#\n+# The idea here is you provide a simulation object that overrides specific\n+# pieces of WPILib, and modifies motors/sensors accordingly depending on the\n+# state of the simulation. An example of this would be measuring a motor\n+# moving for a set period of time, and then changing a limit switch to turn\n+# on after that period of time. This can help you do more complex simulations\n+# of your robot code without too much extra effort.\n+#\n+# Examples can be found at https://github.com/robotpy/examples\n+\n+\n+class PhysicsEngine(object):\n+    \\\"\\\"\\\"\n+        Basic physics engine to be combined with the simulator\n+    \\\"\\\"\\\"\n+\n+    def __init__(self, physics_controller):\n+        \\\"\\\"\\\"\n+            :param physics_controller: `pyfrc.physics.core.PhysicsInterface` object\n+                                       to communicate simulation effects to\n+        \\\"\\\"\\\"\n+\n+        self.physics_controller = physics_controller\n+\n+    def update_sim(self, hal_data, now, tm_diff):\n+        \\\"\\\"\\\"\n+            Called when the simulation parameters for the program need to be\n+            updated.\n+            \n+            :param hal_data: Dictionary representing objects created through wpilib\n+            :param now: The current time as a float\n+            :param tm_diff: The amount of time that has passed since the last\n+                            time that this function was called\n+        \\\"\\\"\\\"\n+        pass\n+\"\"\"","path":"lib/pyfrc/mains/cli_create_physics.py","position":44,"original_position":44,"commit_id":"90bf0d66161b0981b84ba3fc746e2a01aeed0144","original_commit_id":"90bf0d66161b0981b84ba3fc746e2a01aeed0144","user":{"login":"twinters007","id":6132901,"node_id":"MDQ6VXNlcjYxMzI5MDE=","avatar_url":"https://avatars1.githubusercontent.com/u/6132901?v=4","gravatar_id":"","url":"https://api.github.com/users/twinters007","html_url":"https://github.com/twinters007","followers_url":"https://api.github.com/users/twinters007/followers","following_url":"https://api.github.com/users/twinters007/following{/other_user}","gists_url":"https://api.github.com/users/twinters007/gists{/gist_id}","starred_url":"https://api.github.com/users/twinters007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twinters007/subscriptions","organizations_url":"https://api.github.com/users/twinters007/orgs","repos_url":"https://api.github.com/users/twinters007/repos","events_url":"https://api.github.com/users/twinters007/events{/privacy}","received_events_url":"https://api.github.com/users/twinters007/received_events","type":"User","site_admin":false},"body":"hmm yeah I guess I should've used them instead. ","created_at":"2018-12-18T22:40:39Z","updated_at":"2018-12-18T22:40:39Z","html_url":"https://github.com/robotpy/pyfrc/pull/139#discussion_r242733065","pull_request_url":"https://api.github.com/repos/robotpy/pyfrc/pulls/139","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/robotpy/pyfrc/pulls/comments/242733065"},"html":{"href":"https://github.com/robotpy/pyfrc/pull/139#discussion_r242733065"},"pull_request":{"href":"https://api.github.com/repos/robotpy/pyfrc/pulls/139"}},"in_reply_to_id":242732740},"pull_request":{"url":"https://api.github.com/repos/robotpy/pyfrc/pulls/139","id":239590131,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5NTkwMTMx","html_url":"https://github.com/robotpy/pyfrc/pull/139","diff_url":"https://github.com/robotpy/pyfrc/pull/139.diff","patch_url":"https://github.com/robotpy/pyfrc/pull/139.patch","issue_url":"https://api.github.com/repos/robotpy/pyfrc/issues/139","number":139,"state":"open","locked":false,"title":"Add create_physics entry point","user":{"login":"twinters007","id":6132901,"node_id":"MDQ6VXNlcjYxMzI5MDE=","avatar_url":"https://avatars1.githubusercontent.com/u/6132901?v=4","gravatar_id":"","url":"https://api.github.com/users/twinters007","html_url":"https://github.com/twinters007","followers_url":"https://api.github.com/users/twinters007/followers","following_url":"https://api.github.com/users/twinters007/following{/other_user}","gists_url":"https://api.github.com/users/twinters007/gists{/gist_id}","starred_url":"https://api.github.com/users/twinters007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twinters007/subscriptions","organizations_url":"https://api.github.com/users/twinters007/orgs","repos_url":"https://api.github.com/users/twinters007/repos","events_url":"https://api.github.com/users/twinters007/events{/privacy}","received_events_url":"https://api.github.com/users/twinters007/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-18T18:37:03Z","updated_at":"2018-12-18T22:40:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d895a0431966598278c4311b61146aaa811b1cf1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/robotpy/pyfrc/pulls/139/commits","review_comments_url":"https://api.github.com/repos/robotpy/pyfrc/pulls/139/comments","review_comment_url":"https://api.github.com/repos/robotpy/pyfrc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/robotpy/pyfrc/issues/139/comments","statuses_url":"https://api.github.com/repos/robotpy/pyfrc/statuses/90bf0d66161b0981b84ba3fc746e2a01aeed0144","head":{"label":"twinters007:addphysics","ref":"addphysics","sha":"90bf0d66161b0981b84ba3fc746e2a01aeed0144","user":{"login":"twinters007","id":6132901,"node_id":"MDQ6VXNlcjYxMzI5MDE=","avatar_url":"https://avatars1.githubusercontent.com/u/6132901?v=4","gravatar_id":"","url":"https://api.github.com/users/twinters007","html_url":"https://github.com/twinters007","followers_url":"https://api.github.com/users/twinters007/followers","following_url":"https://api.github.com/users/twinters007/following{/other_user}","gists_url":"https://api.github.com/users/twinters007/gists{/gist_id}","starred_url":"https://api.github.com/users/twinters007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twinters007/subscriptions","organizations_url":"https://api.github.com/users/twinters007/orgs","repos_url":"https://api.github.com/users/twinters007/repos","events_url":"https://api.github.com/users/twinters007/events{/privacy}","received_events_url":"https://api.github.com/users/twinters007/received_events","type":"User","site_admin":false},"repo":{"id":51209391,"node_id":"MDEwOlJlcG9zaXRvcnk1MTIwOTM5MQ==","name":"pyfrc","full_name":"twinters007/pyfrc","private":false,"owner":{"login":"twinters007","id":6132901,"node_id":"MDQ6VXNlcjYxMzI5MDE=","avatar_url":"https://avatars1.githubusercontent.com/u/6132901?v=4","gravatar_id":"","url":"https://api.github.com/users/twinters007","html_url":"https://github.com/twinters007","followers_url":"https://api.github.com/users/twinters007/followers","following_url":"https://api.github.com/users/twinters007/following{/other_user}","gists_url":"https://api.github.com/users/twinters007/gists{/gist_id}","starred_url":"https://api.github.com/users/twinters007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twinters007/subscriptions","organizations_url":"https://api.github.com/users/twinters007/orgs","repos_url":"https://api.github.com/users/twinters007/repos","events_url":"https://api.github.com/users/twinters007/events{/privacy}","received_events_url":"https://api.github.com/users/twinters007/received_events","type":"User","site_admin":false},"html_url":"https://github.com/twinters007/pyfrc","description":"python3 library designed to make developing RobotPy-based code easier!","fork":true,"url":"https://api.github.com/repos/twinters007/pyfrc","forks_url":"https://api.github.com/repos/twinters007/pyfrc/forks","keys_url":"https://api.github.com/repos/twinters007/pyfrc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twinters007/pyfrc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twinters007/pyfrc/teams","hooks_url":"https://api.github.com/repos/twinters007/pyfrc/hooks","issue_events_url":"https://api.github.com/repos/twinters007/pyfrc/issues/events{/number}","events_url":"https://api.github.com/repos/twinters007/pyfrc/events","assignees_url":"https://api.github.com/repos/twinters007/pyfrc/assignees{/user}","branches_url":"https://api.github.com/repos/twinters007/pyfrc/branches{/branch}","tags_url":"https://api.github.com/repos/twinters007/pyfrc/tags","blobs_url":"https://api.github.com/repos/twinters007/pyfrc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twinters007/pyfrc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twinters007/pyfrc/git/refs{/sha}","trees_url":"https://api.github.com/repos/twinters007/pyfrc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twinters007/pyfrc/statuses/{sha}","languages_url":"https://api.github.com/repos/twinters007/pyfrc/languages","stargazers_url":"https://api.github.com/repos/twinters007/pyfrc/stargazers","contributors_url":"https://api.github.com/repos/twinters007/pyfrc/contributors","subscribers_url":"https://api.github.com/repos/twinters007/pyfrc/subscribers","subscription_url":"https://api.github.com/repos/twinters007/pyfrc/subscription","commits_url":"https://api.github.com/repos/twinters007/pyfrc/commits{/sha}","git_commits_url":"https://api.github.com/repos/twinters007/pyfrc/git/commits{/sha}","comments_url":"https://api.github.com/repos/twinters007/pyfrc/comments{/number}","issue_comment_url":"https://api.github.com/repos/twinters007/pyfrc/issues/comments{/number}","contents_url":"https://api.github.com/repos/twinters007/pyfrc/contents/{+path}","compare_url":"https://api.github.com/repos/twinters007/pyfrc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twinters007/pyfrc/merges","archive_url":"https://api.github.com/repos/twinters007/pyfrc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twinters007/pyfrc/downloads","issues_url":"https://api.github.com/repos/twinters007/pyfrc/issues{/number}","pulls_url":"https://api.github.com/repos/twinters007/pyfrc/pulls{/number}","milestones_url":"https://api.github.com/repos/twinters007/pyfrc/milestones{/number}","notifications_url":"https://api.github.com/repos/twinters007/pyfrc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twinters007/pyfrc/labels{/name}","releases_url":"https://api.github.com/repos/twinters007/pyfrc/releases{/id}","deployments_url":"https://api.github.com/repos/twinters007/pyfrc/deployments","created_at":"2016-02-06T16:08:04Z","updated_at":"2016-02-06T16:08:05Z","pushed_at":"2018-12-18T19:43:41Z","git_url":"git://github.com/twinters007/pyfrc.git","ssh_url":"git@github.com:twinters007/pyfrc.git","clone_url":"https://github.com/twinters007/pyfrc.git","svn_url":"https://github.com/twinters007/pyfrc","homepage":"","size":821,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"robotpy:master","ref":"master","sha":"b6709c66089eb6b20f91702c60f66ae579c90e35","user":{"login":"robotpy","id":640276,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY0MDI3Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/640276?v=4","gravatar_id":"","url":"https://api.github.com/users/robotpy","html_url":"https://github.com/robotpy","followers_url":"https://api.github.com/users/robotpy/followers","following_url":"https://api.github.com/users/robotpy/following{/other_user}","gists_url":"https://api.github.com/users/robotpy/gists{/gist_id}","starred_url":"https://api.github.com/users/robotpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robotpy/subscriptions","organizations_url":"https://api.github.com/users/robotpy/orgs","repos_url":"https://api.github.com/users/robotpy/repos","events_url":"https://api.github.com/users/robotpy/events{/privacy}","received_events_url":"https://api.github.com/users/robotpy/received_events","type":"Organization","site_admin":false},"repo":{"id":15728083,"node_id":"MDEwOlJlcG9zaXRvcnkxNTcyODA4Mw==","name":"pyfrc","full_name":"robotpy/pyfrc","private":false,"owner":{"login":"robotpy","id":640276,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY0MDI3Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/640276?v=4","gravatar_id":"","url":"https://api.github.com/users/robotpy","html_url":"https://github.com/robotpy","followers_url":"https://api.github.com/users/robotpy/followers","following_url":"https://api.github.com/users/robotpy/following{/other_user}","gists_url":"https://api.github.com/users/robotpy/gists{/gist_id}","starred_url":"https://api.github.com/users/robotpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robotpy/subscriptions","organizations_url":"https://api.github.com/users/robotpy/orgs","repos_url":"https://api.github.com/users/robotpy/repos","events_url":"https://api.github.com/users/robotpy/events{/privacy}","received_events_url":"https://api.github.com/users/robotpy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/robotpy/pyfrc","description":"python3 library designed to make developing RobotPy-based code easier!","fork":false,"url":"https://api.github.com/repos/robotpy/pyfrc","forks_url":"https://api.github.com/repos/robotpy/pyfrc/forks","keys_url":"https://api.github.com/repos/robotpy/pyfrc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robotpy/pyfrc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robotpy/pyfrc/teams","hooks_url":"https://api.github.com/repos/robotpy/pyfrc/hooks","issue_events_url":"https://api.github.com/repos/robotpy/pyfrc/issues/events{/number}","events_url":"https://api.github.com/repos/robotpy/pyfrc/events","assignees_url":"https://api.github.com/repos/robotpy/pyfrc/assignees{/user}","branches_url":"https://api.github.com/repos/robotpy/pyfrc/branches{/branch}","tags_url":"https://api.github.com/repos/robotpy/pyfrc/tags","blobs_url":"https://api.github.com/repos/robotpy/pyfrc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robotpy/pyfrc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robotpy/pyfrc/git/refs{/sha}","trees_url":"https://api.github.com/repos/robotpy/pyfrc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robotpy/pyfrc/statuses/{sha}","languages_url":"https://api.github.com/repos/robotpy/pyfrc/languages","stargazers_url":"https://api.github.com/repos/robotpy/pyfrc/stargazers","contributors_url":"https://api.github.com/repos/robotpy/pyfrc/contributors","subscribers_url":"https://api.github.com/repos/robotpy/pyfrc/subscribers","subscription_url":"https://api.github.com/repos/robotpy/pyfrc/subscription","commits_url":"https://api.github.com/repos/robotpy/pyfrc/commits{/sha}","git_commits_url":"https://api.github.com/repos/robotpy/pyfrc/git/commits{/sha}","comments_url":"https://api.github.com/repos/robotpy/pyfrc/comments{/number}","issue_comment_url":"https://api.github.com/repos/robotpy/pyfrc/issues/comments{/number}","contents_url":"https://api.github.com/repos/robotpy/pyfrc/contents/{+path}","compare_url":"https://api.github.com/repos/robotpy/pyfrc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robotpy/pyfrc/merges","archive_url":"https://api.github.com/repos/robotpy/pyfrc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robotpy/pyfrc/downloads","issues_url":"https://api.github.com/repos/robotpy/pyfrc/issues{/number}","pulls_url":"https://api.github.com/repos/robotpy/pyfrc/pulls{/number}","milestones_url":"https://api.github.com/repos/robotpy/pyfrc/milestones{/number}","notifications_url":"https://api.github.com/repos/robotpy/pyfrc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robotpy/pyfrc/labels{/name}","releases_url":"https://api.github.com/repos/robotpy/pyfrc/releases{/id}","deployments_url":"https://api.github.com/repos/robotpy/pyfrc/deployments","created_at":"2014-01-08T06:57:56Z","updated_at":"2018-12-18T14:52:31Z","pushed_at":"2018-12-18T19:43:43Z","git_url":"git://github.com/robotpy/pyfrc.git","ssh_url":"git@github.com:robotpy/pyfrc.git","clone_url":"https://github.com/robotpy/pyfrc.git","svn_url":"https://github.com/robotpy/pyfrc","homepage":"","size":803,"stargazers_count":34,"watchers_count":34,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":31,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":31,"open_issues":19,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/robotpy/pyfrc/pulls/139"},"html":{"href":"https://github.com/robotpy/pyfrc/pull/139"},"issue":{"href":"https://api.github.com/repos/robotpy/pyfrc/issues/139"},"comments":{"href":"https://api.github.com/repos/robotpy/pyfrc/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/robotpy/pyfrc/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/robotpy/pyfrc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/robotpy/pyfrc/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/robotpy/pyfrc/statuses/90bf0d66161b0981b84ba3fc746e2a01aeed0144"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"twinters007"}}