{"action":"created","comment":{"url":"https://api.github.com/repos/trikset/trikRuntime/pulls/comments/32556072","id":32556072,"diff_hunk":"@@ -70,3 +95,82 @@ void PowerMotor::powerOff()\n {\n \tsetPower(0);\n }\n+\n+\n+\n+int PowerMotor::searchSuitable(int duty,int *array, int step, int length)\n+{\n+\tauto diff = INT_MAX;\n+\tauto index = length;\n+\n+\tif (duty >= (100 * fixedPointOrder))\n+\t\treturn duty;","path":"trikControl/src/powerMotor.cpp","position":79,"original_position":79,"commit_id":"82ec0b9d596b71a41cd6bbaf03e5ca890a6a4b56","original_commit_id":"82ec0b9d596b71a41cd6bbaf03e5ca890a6a4b56","user":{"login":"yurii-litvinov","id":706768,"avatar_url":"https://avatars.githubusercontent.com/u/706768?v=3","gravatar_id":"","url":"https://api.github.com/users/yurii-litvinov","html_url":"https://github.com/yurii-litvinov","followers_url":"https://api.github.com/users/yurii-litvinov/followers","following_url":"https://api.github.com/users/yurii-litvinov/following{/other_user}","gists_url":"https://api.github.com/users/yurii-litvinov/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-litvinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-litvinov/subscriptions","organizations_url":"https://api.github.com/users/yurii-litvinov/orgs","repos_url":"https://api.github.com/users/yurii-litvinov/repos","events_url":"https://api.github.com/users/yurii-litvinov/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-litvinov/received_events","type":"User","site_admin":false},"body":"а ещё по стайлгайду вокруг тела if-а ставятся фигурные скобки, даже если там один оператор. это чтобы не путаться и чётко видеть, где кончается тело","created_at":"2015-06-16T18:45:32Z","updated_at":"2015-06-16T18:45:32Z","html_url":"https://github.com/trikset/trikRuntime/pull/116#discussion_r32556072","pull_request_url":"https://api.github.com/repos/trikset/trikRuntime/pulls/116","_links":{"self":{"href":"https://api.github.com/repos/trikset/trikRuntime/pulls/comments/32556072"},"html":{"href":"https://github.com/trikset/trikRuntime/pull/116#discussion_r32556072"},"pull_request":{"href":"https://api.github.com/repos/trikset/trikRuntime/pulls/116"}}},"pull_request":{"url":"https://api.github.com/repos/trikset/trikRuntime/pulls/116","id":37734360,"html_url":"https://github.com/trikset/trikRuntime/pull/116","diff_url":"https://github.com/trikset/trikRuntime/pull/116.diff","patch_url":"https://github.com/trikset/trikRuntime/pull/116.patch","issue_url":"https://api.github.com/repos/trikset/trikRuntime/issues/116","number":116,"state":"open","locked":false,"title":"powerMotor linearization","user":{"login":"AlisaMet","id":6717937,"avatar_url":"https://avatars.githubusercontent.com/u/6717937?v=3","gravatar_id":"","url":"https://api.github.com/users/AlisaMet","html_url":"https://github.com/AlisaMet","followers_url":"https://api.github.com/users/AlisaMet/followers","following_url":"https://api.github.com/users/AlisaMet/following{/other_user}","gists_url":"https://api.github.com/users/AlisaMet/gists{/gist_id}","starred_url":"https://api.github.com/users/AlisaMet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlisaMet/subscriptions","organizations_url":"https://api.github.com/users/AlisaMet/orgs","repos_url":"https://api.github.com/users/AlisaMet/repos","events_url":"https://api.github.com/users/AlisaMet/events{/privacy}","received_events_url":"https://api.github.com/users/AlisaMet/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-15T20:54:26Z","updated_at":"2015-06-16T18:45:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/trikset/trikRuntime/pulls/116/commits","review_comments_url":"https://api.github.com/repos/trikset/trikRuntime/pulls/116/comments","review_comment_url":"https://api.github.com/repos/trikset/trikRuntime/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trikset/trikRuntime/issues/116/comments","statuses_url":"https://api.github.com/repos/trikset/trikRuntime/statuses/82ec0b9d596b71a41cd6bbaf03e5ca890a6a4b56","head":{"label":"AlisaMet:Alice","ref":"Alice","sha":"82ec0b9d596b71a41cd6bbaf03e5ca890a6a4b56","user":{"login":"AlisaMet","id":6717937,"avatar_url":"https://avatars.githubusercontent.com/u/6717937?v=3","gravatar_id":"","url":"https://api.github.com/users/AlisaMet","html_url":"https://github.com/AlisaMet","followers_url":"https://api.github.com/users/AlisaMet/followers","following_url":"https://api.github.com/users/AlisaMet/following{/other_user}","gists_url":"https://api.github.com/users/AlisaMet/gists{/gist_id}","starred_url":"https://api.github.com/users/AlisaMet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlisaMet/subscriptions","organizations_url":"https://api.github.com/users/AlisaMet/orgs","repos_url":"https://api.github.com/users/AlisaMet/repos","events_url":"https://api.github.com/users/AlisaMet/events{/privacy}","received_events_url":"https://api.github.com/users/AlisaMet/received_events","type":"User","site_admin":false},"repo":{"id":35737248,"name":"trikRuntime","full_name":"AlisaMet/trikRuntime","owner":{"login":"AlisaMet","id":6717937,"avatar_url":"https://avatars.githubusercontent.com/u/6717937?v=3","gravatar_id":"","url":"https://api.github.com/users/AlisaMet","html_url":"https://github.com/AlisaMet","followers_url":"https://api.github.com/users/AlisaMet/followers","following_url":"https://api.github.com/users/AlisaMet/following{/other_user}","gists_url":"https://api.github.com/users/AlisaMet/gists{/gist_id}","starred_url":"https://api.github.com/users/AlisaMet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlisaMet/subscriptions","organizations_url":"https://api.github.com/users/AlisaMet/orgs","repos_url":"https://api.github.com/users/AlisaMet/repos","events_url":"https://api.github.com/users/AlisaMet/events{/privacy}","received_events_url":"https://api.github.com/users/AlisaMet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlisaMet/trikRuntime","description":"Runtime for TRIK controller","fork":true,"url":"https://api.github.com/repos/AlisaMet/trikRuntime","forks_url":"https://api.github.com/repos/AlisaMet/trikRuntime/forks","keys_url":"https://api.github.com/repos/AlisaMet/trikRuntime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlisaMet/trikRuntime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlisaMet/trikRuntime/teams","hooks_url":"https://api.github.com/repos/AlisaMet/trikRuntime/hooks","issue_events_url":"https://api.github.com/repos/AlisaMet/trikRuntime/issues/events{/number}","events_url":"https://api.github.com/repos/AlisaMet/trikRuntime/events","assignees_url":"https://api.github.com/repos/AlisaMet/trikRuntime/assignees{/user}","branches_url":"https://api.github.com/repos/AlisaMet/trikRuntime/branches{/branch}","tags_url":"https://api.github.com/repos/AlisaMet/trikRuntime/tags","blobs_url":"https://api.github.com/repos/AlisaMet/trikRuntime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlisaMet/trikRuntime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlisaMet/trikRuntime/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlisaMet/trikRuntime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlisaMet/trikRuntime/statuses/{sha}","languages_url":"https://api.github.com/repos/AlisaMet/trikRuntime/languages","stargazers_url":"https://api.github.com/repos/AlisaMet/trikRuntime/stargazers","contributors_url":"https://api.github.com/repos/AlisaMet/trikRuntime/contributors","subscribers_url":"https://api.github.com/repos/AlisaMet/trikRuntime/subscribers","subscription_url":"https://api.github.com/repos/AlisaMet/trikRuntime/subscription","commits_url":"https://api.github.com/repos/AlisaMet/trikRuntime/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlisaMet/trikRuntime/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlisaMet/trikRuntime/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlisaMet/trikRuntime/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlisaMet/trikRuntime/contents/{+path}","compare_url":"https://api.github.com/repos/AlisaMet/trikRuntime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlisaMet/trikRuntime/merges","archive_url":"https://api.github.com/repos/AlisaMet/trikRuntime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlisaMet/trikRuntime/downloads","issues_url":"https://api.github.com/repos/AlisaMet/trikRuntime/issues{/number}","pulls_url":"https://api.github.com/repos/AlisaMet/trikRuntime/pulls{/number}","milestones_url":"https://api.github.com/repos/AlisaMet/trikRuntime/milestones{/number}","notifications_url":"https://api.github.com/repos/AlisaMet/trikRuntime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlisaMet/trikRuntime/labels{/name}","releases_url":"https://api.github.com/repos/AlisaMet/trikRuntime/releases{/id}","created_at":"2015-05-16T19:30:08Z","updated_at":"2015-05-16T19:30:08Z","pushed_at":"2015-06-15T20:49:02Z","git_url":"git://github.com/AlisaMet/trikRuntime.git","ssh_url":"git@github.com:AlisaMet/trikRuntime.git","clone_url":"https://github.com/AlisaMet/trikRuntime.git","svn_url":"https://github.com/AlisaMet/trikRuntime","homepage":null,"size":8517,"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":"trikset:3.1.0","ref":"3.1.0","sha":"54c558ad1764c911d25d2510f7d0aca6dfa522b0","user":{"login":"trikset","id":5375490,"avatar_url":"https://avatars.githubusercontent.com/u/5375490?v=3","gravatar_id":"","url":"https://api.github.com/users/trikset","html_url":"https://github.com/trikset","followers_url":"https://api.github.com/users/trikset/followers","following_url":"https://api.github.com/users/trikset/following{/other_user}","gists_url":"https://api.github.com/users/trikset/gists{/gist_id}","starred_url":"https://api.github.com/users/trikset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trikset/subscriptions","organizations_url":"https://api.github.com/users/trikset/orgs","repos_url":"https://api.github.com/users/trikset/repos","events_url":"https://api.github.com/users/trikset/events{/privacy}","received_events_url":"https://api.github.com/users/trikset/received_events","type":"Organization","site_admin":false},"repo":{"id":12588131,"name":"trikRuntime","full_name":"trikset/trikRuntime","owner":{"login":"trikset","id":5375490,"avatar_url":"https://avatars.githubusercontent.com/u/5375490?v=3","gravatar_id":"","url":"https://api.github.com/users/trikset","html_url":"https://github.com/trikset","followers_url":"https://api.github.com/users/trikset/followers","following_url":"https://api.github.com/users/trikset/following{/other_user}","gists_url":"https://api.github.com/users/trikset/gists{/gist_id}","starred_url":"https://api.github.com/users/trikset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trikset/subscriptions","organizations_url":"https://api.github.com/users/trikset/orgs","repos_url":"https://api.github.com/users/trikset/repos","events_url":"https://api.github.com/users/trikset/events{/privacy}","received_events_url":"https://api.github.com/users/trikset/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/trikset/trikRuntime","description":"Runtime for TRIK controller","fork":false,"url":"https://api.github.com/repos/trikset/trikRuntime","forks_url":"https://api.github.com/repos/trikset/trikRuntime/forks","keys_url":"https://api.github.com/repos/trikset/trikRuntime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trikset/trikRuntime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trikset/trikRuntime/teams","hooks_url":"https://api.github.com/repos/trikset/trikRuntime/hooks","issue_events_url":"https://api.github.com/repos/trikset/trikRuntime/issues/events{/number}","events_url":"https://api.github.com/repos/trikset/trikRuntime/events","assignees_url":"https://api.github.com/repos/trikset/trikRuntime/assignees{/user}","branches_url":"https://api.github.com/repos/trikset/trikRuntime/branches{/branch}","tags_url":"https://api.github.com/repos/trikset/trikRuntime/tags","blobs_url":"https://api.github.com/repos/trikset/trikRuntime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trikset/trikRuntime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trikset/trikRuntime/git/refs{/sha}","trees_url":"https://api.github.com/repos/trikset/trikRuntime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trikset/trikRuntime/statuses/{sha}","languages_url":"https://api.github.com/repos/trikset/trikRuntime/languages","stargazers_url":"https://api.github.com/repos/trikset/trikRuntime/stargazers","contributors_url":"https://api.github.com/repos/trikset/trikRuntime/contributors","subscribers_url":"https://api.github.com/repos/trikset/trikRuntime/subscribers","subscription_url":"https://api.github.com/repos/trikset/trikRuntime/subscription","commits_url":"https://api.github.com/repos/trikset/trikRuntime/commits{/sha}","git_commits_url":"https://api.github.com/repos/trikset/trikRuntime/git/commits{/sha}","comments_url":"https://api.github.com/repos/trikset/trikRuntime/comments{/number}","issue_comment_url":"https://api.github.com/repos/trikset/trikRuntime/issues/comments{/number}","contents_url":"https://api.github.com/repos/trikset/trikRuntime/contents/{+path}","compare_url":"https://api.github.com/repos/trikset/trikRuntime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trikset/trikRuntime/merges","archive_url":"https://api.github.com/repos/trikset/trikRuntime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trikset/trikRuntime/downloads","issues_url":"https://api.github.com/repos/trikset/trikRuntime/issues{/number}","pulls_url":"https://api.github.com/repos/trikset/trikRuntime/pulls{/number}","milestones_url":"https://api.github.com/repos/trikset/trikRuntime/milestones{/number}","notifications_url":"https://api.github.com/repos/trikset/trikRuntime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trikset/trikRuntime/labels{/name}","releases_url":"https://api.github.com/repos/trikset/trikRuntime/releases{/id}","created_at":"2013-09-04T10:26:27Z","updated_at":"2015-04-22T15:34:39Z","pushed_at":"2015-06-16T18:36:18Z","git_url":"git://github.com/trikset/trikRuntime.git","ssh_url":"git@github.com:trikset/trikRuntime.git","clone_url":"https://github.com/trikset/trikRuntime.git","svn_url":"https://github.com/trikset/trikRuntime","homepage":null,"size":31580,"stargazers_count":4,"watchers_count":4,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":10,"forks":19,"open_issues":10,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/trikset/trikRuntime/pulls/116"},"html":{"href":"https://github.com/trikset/trikRuntime/pull/116"},"issue":{"href":"https://api.github.com/repos/trikset/trikRuntime/issues/116"},"comments":{"href":"https://api.github.com/repos/trikset/trikRuntime/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/trikset/trikRuntime/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/trikset/trikRuntime/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trikset/trikRuntime/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/trikset/trikRuntime/statuses/82ec0b9d596b71a41cd6bbaf03e5ca890a6a4b56"}}}}