{"action":"created","comment":{"url":"https://api.github.com/repos/erendrake/InfernalRobotics/pulls/comments/27603992","id":27603992,"diff_hunk":"@@ -20,5 +29,90 @@ public void MoveNext()\n         {\n             rawServo.MoveNextPreset();\n         }\n+\n+        public void MoveToIndex(int presetIndex)\n+        {\n+            if (rawServo.PresetPositions == null || rawServo.PresetPositions.Count == 0 \n+                || presetIndex < 0 || presetIndex >= rawServo.PresetPositions.Count) \n+                return;\n+\n+            float nextPosition = rawServo.PresetPositions[presetIndex];\n+\n+            if(HighLogic.LoadedSceneIsEditor)\n+            {\n+                var deltaPosition = nextPosition - (rawServo.Position);\n+                rawServo.ApplyDeltaPos(deltaPosition);\n+            }\n+            else\n+            {\n+                //because Translator expects position in external coordinates\n+                nextPosition = rawServo.Translator.ToExternalPos(nextPosition);\n+                rawServo.Translator.Move(nextPosition, rawServo.customSpeed * rawServo.speedTweak);\n+            }\n+\n+            Logger.Log (\"[Action] MoveToPreset, index=\" + presetIndex + \" currentPos = \" + rawServo.Position + \", nextPosition=\" + nextPosition, Logger.Level.Debug);\n+        }\n+\n+        public void Save(bool propagateSemmetry = false)","path":"InfernalRobotics/InfernalRobotics/Control/Servo/ServoPreset.cs","position":53,"original_position":53,"commit_id":"e3f4e8faf59d1fb5e72627c3b985f72236790314","original_commit_id":"e3f4e8faf59d1fb5e72627c3b985f72236790314","user":{"login":"erendrake","id":486486,"avatar_url":"https://avatars.githubusercontent.com/u/486486?v=3","gravatar_id":"","url":"https://api.github.com/users/erendrake","html_url":"https://github.com/erendrake","followers_url":"https://api.github.com/users/erendrake/followers","following_url":"https://api.github.com/users/erendrake/following{/other_user}","gists_url":"https://api.github.com/users/erendrake/gists{/gist_id}","starred_url":"https://api.github.com/users/erendrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erendrake/subscriptions","organizations_url":"https://api.github.com/users/erendrake/orgs","repos_url":"https://api.github.com/users/erendrake/repos","events_url":"https://api.github.com/users/erendrake/events{/privacy}","received_events_url":"https://api.github.com/users/erendrake/received_events","type":"User","site_admin":false},"body":"Maybe proper spelling :) my bad","created_at":"2015-04-01T19:42:36Z","updated_at":"2015-04-01T19:42:36Z","html_url":"https://github.com/erendrake/InfernalRobotics/pull/80#discussion_r27603992","pull_request_url":"https://api.github.com/repos/erendrake/InfernalRobotics/pulls/80","_links":{"self":{"href":"https://api.github.com/repos/erendrake/InfernalRobotics/pulls/comments/27603992"},"html":{"href":"https://github.com/erendrake/InfernalRobotics/pull/80#discussion_r27603992"},"pull_request":{"href":"https://api.github.com/repos/erendrake/InfernalRobotics/pulls/80"}}},"pull_request":{"url":"https://api.github.com/repos/erendrake/InfernalRobotics/pulls/80","id":32451189,"html_url":"https://github.com/erendrake/InfernalRobotics/pull/80","diff_url":"https://github.com/erendrake/InfernalRobotics/pull/80.diff","patch_url":"https://github.com/erendrake/InfernalRobotics/pull/80.patch","issue_url":"https://api.github.com/repos/erendrake/InfernalRobotics/issues/80","number":80,"state":"open","locked":false,"title":"More wrapping","user":{"login":"erendrake","id":486486,"avatar_url":"https://avatars.githubusercontent.com/u/486486?v=3","gravatar_id":"","url":"https://api.github.com/users/erendrake","html_url":"https://github.com/erendrake","followers_url":"https://api.github.com/users/erendrake/followers","following_url":"https://api.github.com/users/erendrake/following{/other_user}","gists_url":"https://api.github.com/users/erendrake/gists{/gist_id}","starred_url":"https://api.github.com/users/erendrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erendrake/subscriptions","organizations_url":"https://api.github.com/users/erendrake/orgs","repos_url":"https://api.github.com/users/erendrake/repos","events_url":"https://api.github.com/users/erendrake/events{/privacy}","received_events_url":"https://api.github.com/users/erendrake/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-01T19:18:16Z","updated_at":"2015-04-01T19:42:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dbc5e4dd62d273b7f04d1d44a101a2125aae0dff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/erendrake/InfernalRobotics/pulls/80/commits","review_comments_url":"https://api.github.com/repos/erendrake/InfernalRobotics/pulls/80/comments","review_comment_url":"https://api.github.com/repos/erendrake/InfernalRobotics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/erendrake/InfernalRobotics/issues/80/comments","statuses_url":"https://api.github.com/repos/erendrake/InfernalRobotics/statuses/e3f4e8faf59d1fb5e72627c3b985f72236790314","head":{"label":"erendrake:invertaxis","ref":"invertaxis","sha":"e3f4e8faf59d1fb5e72627c3b985f72236790314","user":{"login":"erendrake","id":486486,"avatar_url":"https://avatars.githubusercontent.com/u/486486?v=3","gravatar_id":"","url":"https://api.github.com/users/erendrake","html_url":"https://github.com/erendrake","followers_url":"https://api.github.com/users/erendrake/followers","following_url":"https://api.github.com/users/erendrake/following{/other_user}","gists_url":"https://api.github.com/users/erendrake/gists{/gist_id}","starred_url":"https://api.github.com/users/erendrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erendrake/subscriptions","organizations_url":"https://api.github.com/users/erendrake/orgs","repos_url":"https://api.github.com/users/erendrake/repos","events_url":"https://api.github.com/users/erendrake/events{/privacy}","received_events_url":"https://api.github.com/users/erendrake/received_events","type":"User","site_admin":false},"repo":{"id":31679916,"name":"InfernalRobotics","full_name":"erendrake/InfernalRobotics","owner":{"login":"erendrake","id":486486,"avatar_url":"https://avatars.githubusercontent.com/u/486486?v=3","gravatar_id":"","url":"https://api.github.com/users/erendrake","html_url":"https://github.com/erendrake","followers_url":"https://api.github.com/users/erendrake/followers","following_url":"https://api.github.com/users/erendrake/following{/other_user}","gists_url":"https://api.github.com/users/erendrake/gists{/gist_id}","starred_url":"https://api.github.com/users/erendrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erendrake/subscriptions","organizations_url":"https://api.github.com/users/erendrake/orgs","repos_url":"https://api.github.com/users/erendrake/repos","events_url":"https://api.github.com/users/erendrake/events{/privacy}","received_events_url":"https://api.github.com/users/erendrake/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erendrake/InfernalRobotics","description":"Update to r4m0n Dammed Robotics that works on Kerbal Space Program 0.20.2","fork":true,"url":"https://api.github.com/repos/erendrake/InfernalRobotics","forks_url":"https://api.github.com/repos/erendrake/InfernalRobotics/forks","keys_url":"https://api.github.com/repos/erendrake/InfernalRobotics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erendrake/InfernalRobotics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erendrake/InfernalRobotics/teams","hooks_url":"https://api.github.com/repos/erendrake/InfernalRobotics/hooks","issue_events_url":"https://api.github.com/repos/erendrake/InfernalRobotics/issues/events{/number}","events_url":"https://api.github.com/repos/erendrake/InfernalRobotics/events","assignees_url":"https://api.github.com/repos/erendrake/InfernalRobotics/assignees{/user}","branches_url":"https://api.github.com/repos/erendrake/InfernalRobotics/branches{/branch}","tags_url":"https://api.github.com/repos/erendrake/InfernalRobotics/tags","blobs_url":"https://api.github.com/repos/erendrake/InfernalRobotics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erendrake/InfernalRobotics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erendrake/InfernalRobotics/git/refs{/sha}","trees_url":"https://api.github.com/repos/erendrake/InfernalRobotics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erendrake/InfernalRobotics/statuses/{sha}","languages_url":"https://api.github.com/repos/erendrake/InfernalRobotics/languages","stargazers_url":"https://api.github.com/repos/erendrake/InfernalRobotics/stargazers","contributors_url":"https://api.github.com/repos/erendrake/InfernalRobotics/contributors","subscribers_url":"https://api.github.com/repos/erendrake/InfernalRobotics/subscribers","subscription_url":"https://api.github.com/repos/erendrake/InfernalRobotics/subscription","commits_url":"https://api.github.com/repos/erendrake/InfernalRobotics/commits{/sha}","git_commits_url":"https://api.github.com/repos/erendrake/InfernalRobotics/git/commits{/sha}","comments_url":"https://api.github.com/repos/erendrake/InfernalRobotics/comments{/number}","issue_comment_url":"https://api.github.com/repos/erendrake/InfernalRobotics/issues/comments{/number}","contents_url":"https://api.github.com/repos/erendrake/InfernalRobotics/contents/{+path}","compare_url":"https://api.github.com/repos/erendrake/InfernalRobotics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erendrake/InfernalRobotics/merges","archive_url":"https://api.github.com/repos/erendrake/InfernalRobotics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erendrake/InfernalRobotics/downloads","issues_url":"https://api.github.com/repos/erendrake/InfernalRobotics/issues{/number}","pulls_url":"https://api.github.com/repos/erendrake/InfernalRobotics/pulls{/number}","milestones_url":"https://api.github.com/repos/erendrake/InfernalRobotics/milestones{/number}","notifications_url":"https://api.github.com/repos/erendrake/InfernalRobotics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erendrake/InfernalRobotics/labels{/name}","releases_url":"https://api.github.com/repos/erendrake/InfernalRobotics/releases{/id}","created_at":"2015-03-04T21:08:25Z","updated_at":"2015-03-26T03:24:52Z","pushed_at":"2015-04-01T19:21:30Z","git_url":"git://github.com/erendrake/InfernalRobotics.git","ssh_url":"git@github.com:erendrake/InfernalRobotics.git","clone_url":"https://github.com/erendrake/InfernalRobotics.git","svn_url":"https://github.com/erendrake/InfernalRobotics","homepage":null,"size":72905,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"erendrake:develop","ref":"develop","sha":"754854f2a7bbb845bb60d5b91c2a2f5e7f26c5cb","user":{"login":"erendrake","id":486486,"avatar_url":"https://avatars.githubusercontent.com/u/486486?v=3","gravatar_id":"","url":"https://api.github.com/users/erendrake","html_url":"https://github.com/erendrake","followers_url":"https://api.github.com/users/erendrake/followers","following_url":"https://api.github.com/users/erendrake/following{/other_user}","gists_url":"https://api.github.com/users/erendrake/gists{/gist_id}","starred_url":"https://api.github.com/users/erendrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erendrake/subscriptions","organizations_url":"https://api.github.com/users/erendrake/orgs","repos_url":"https://api.github.com/users/erendrake/repos","events_url":"https://api.github.com/users/erendrake/events{/privacy}","received_events_url":"https://api.github.com/users/erendrake/received_events","type":"User","site_admin":false},"repo":{"id":31679916,"name":"InfernalRobotics","full_name":"erendrake/InfernalRobotics","owner":{"login":"erendrake","id":486486,"avatar_url":"https://avatars.githubusercontent.com/u/486486?v=3","gravatar_id":"","url":"https://api.github.com/users/erendrake","html_url":"https://github.com/erendrake","followers_url":"https://api.github.com/users/erendrake/followers","following_url":"https://api.github.com/users/erendrake/following{/other_user}","gists_url":"https://api.github.com/users/erendrake/gists{/gist_id}","starred_url":"https://api.github.com/users/erendrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erendrake/subscriptions","organizations_url":"https://api.github.com/users/erendrake/orgs","repos_url":"https://api.github.com/users/erendrake/repos","events_url":"https://api.github.com/users/erendrake/events{/privacy}","received_events_url":"https://api.github.com/users/erendrake/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erendrake/InfernalRobotics","description":"Update to r4m0n Dammed Robotics that works on Kerbal Space Program 0.20.2","fork":true,"url":"https://api.github.com/repos/erendrake/InfernalRobotics","forks_url":"https://api.github.com/repos/erendrake/InfernalRobotics/forks","keys_url":"https://api.github.com/repos/erendrake/InfernalRobotics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erendrake/InfernalRobotics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erendrake/InfernalRobotics/teams","hooks_url":"https://api.github.com/repos/erendrake/InfernalRobotics/hooks","issue_events_url":"https://api.github.com/repos/erendrake/InfernalRobotics/issues/events{/number}","events_url":"https://api.github.com/repos/erendrake/InfernalRobotics/events","assignees_url":"https://api.github.com/repos/erendrake/InfernalRobotics/assignees{/user}","branches_url":"https://api.github.com/repos/erendrake/InfernalRobotics/branches{/branch}","tags_url":"https://api.github.com/repos/erendrake/InfernalRobotics/tags","blobs_url":"https://api.github.com/repos/erendrake/InfernalRobotics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erendrake/InfernalRobotics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erendrake/InfernalRobotics/git/refs{/sha}","trees_url":"https://api.github.com/repos/erendrake/InfernalRobotics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erendrake/InfernalRobotics/statuses/{sha}","languages_url":"https://api.github.com/repos/erendrake/InfernalRobotics/languages","stargazers_url":"https://api.github.com/repos/erendrake/InfernalRobotics/stargazers","contributors_url":"https://api.github.com/repos/erendrake/InfernalRobotics/contributors","subscribers_url":"https://api.github.com/repos/erendrake/InfernalRobotics/subscribers","subscription_url":"https://api.github.com/repos/erendrake/InfernalRobotics/subscription","commits_url":"https://api.github.com/repos/erendrake/InfernalRobotics/commits{/sha}","git_commits_url":"https://api.github.com/repos/erendrake/InfernalRobotics/git/commits{/sha}","comments_url":"https://api.github.com/repos/erendrake/InfernalRobotics/comments{/number}","issue_comment_url":"https://api.github.com/repos/erendrake/InfernalRobotics/issues/comments{/number}","contents_url":"https://api.github.com/repos/erendrake/InfernalRobotics/contents/{+path}","compare_url":"https://api.github.com/repos/erendrake/InfernalRobotics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erendrake/InfernalRobotics/merges","archive_url":"https://api.github.com/repos/erendrake/InfernalRobotics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erendrake/InfernalRobotics/downloads","issues_url":"https://api.github.com/repos/erendrake/InfernalRobotics/issues{/number}","pulls_url":"https://api.github.com/repos/erendrake/InfernalRobotics/pulls{/number}","milestones_url":"https://api.github.com/repos/erendrake/InfernalRobotics/milestones{/number}","notifications_url":"https://api.github.com/repos/erendrake/InfernalRobotics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erendrake/InfernalRobotics/labels{/name}","releases_url":"https://api.github.com/repos/erendrake/InfernalRobotics/releases{/id}","created_at":"2015-03-04T21:08:25Z","updated_at":"2015-03-26T03:24:52Z","pushed_at":"2015-04-01T19:21:30Z","git_url":"git://github.com/erendrake/InfernalRobotics.git","ssh_url":"git@github.com:erendrake/InfernalRobotics.git","clone_url":"https://github.com/erendrake/InfernalRobotics.git","svn_url":"https://github.com/erendrake/InfernalRobotics","homepage":null,"size":72905,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/erendrake/InfernalRobotics/pulls/80"},"html":{"href":"https://github.com/erendrake/InfernalRobotics/pull/80"},"issue":{"href":"https://api.github.com/repos/erendrake/InfernalRobotics/issues/80"},"comments":{"href":"https://api.github.com/repos/erendrake/InfernalRobotics/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/erendrake/InfernalRobotics/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/erendrake/InfernalRobotics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/erendrake/InfernalRobotics/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/erendrake/InfernalRobotics/statuses/e3f4e8faf59d1fb5e72627c3b985f72236790314"}}}}