{"action":"created","issue":{"url":"https://api.github.com/repos/RoboticsBrno/RB3201-RBControl-library/issues/3","repository_url":"https://api.github.com/repos/RoboticsBrno/RB3201-RBControl-library","labels_url":"https://api.github.com/repos/RoboticsBrno/RB3201-RBControl-library/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/RoboticsBrno/RB3201-RBControl-library/issues/3/comments","events_url":"https://api.github.com/repos/RoboticsBrno/RB3201-RBControl-library/issues/3/events","html_url":"https://github.com/RoboticsBrno/RB3201-RBControl-library/issues/3","id":396150200,"node_id":"MDU6SXNzdWUzOTYxNTAyMDA=","number":3,"title":"Motor ids on board and in code do not match.","user":{"login":"Tasssadar","id":120108,"node_id":"MDQ6VXNlcjEyMDEwOA==","avatar_url":"https://avatars2.githubusercontent.com/u/120108?v=4","gravatar_id":"","url":"https://api.github.com/users/Tasssadar","html_url":"https://github.com/Tasssadar","followers_url":"https://api.github.com/users/Tasssadar/followers","following_url":"https://api.github.com/users/Tasssadar/following{/other_user}","gists_url":"https://api.github.com/users/Tasssadar/gists{/gist_id}","starred_url":"https://api.github.com/users/Tasssadar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tasssadar/subscriptions","organizations_url":"https://api.github.com/users/Tasssadar/orgs","repos_url":"https://api.github.com/users/Tasssadar/repos","events_url":"https://api.github.com/users/Tasssadar/events{/privacy}","received_events_url":"https://api.github.com/users/Tasssadar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-05T09:29:45Z","updated_at":"2019-01-05T09:33:46Z","closed_at":null,"author_association":"MEMBER","body":"Is there some simple way of how to change the `id` and `index` in all methods for range `1 - 8`.\r\n\r\nOn the board, we have indexes of motors and encoders from 1 to 8.\r\n![rbcontrol-motorsandencodersindexes](https://user-images.githubusercontent.com/6726556/50716428-de6cab00-1081-11e9-8414-7fedfcdb6fac.JPG)\r\n\r\nCould we rewrite the indexes to the `enum class`? \r\nIs would be better to type and range control but it is probably a little bit more complex for beginners.\r\n@Tasssadar @yaqwsx @cednik @JarekParal "},"comment":{"url":"https://api.github.com/repos/RoboticsBrno/RB3201-RBControl-library/issues/comments/451641173","html_url":"https://github.com/RoboticsBrno/RB3201-RBControl-library/issues/3#issuecomment-451641173","issue_url":"https://api.github.com/repos/RoboticsBrno/RB3201-RBControl-library/issues/3","id":451641173,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTY0MTE3Mw==","user":{"login":"Tasssadar","id":120108,"node_id":"MDQ6VXNlcjEyMDEwOA==","avatar_url":"https://avatars2.githubusercontent.com/u/120108?v=4","gravatar_id":"","url":"https://api.github.com/users/Tasssadar","html_url":"https://github.com/Tasssadar","followers_url":"https://api.github.com/users/Tasssadar/followers","following_url":"https://api.github.com/users/Tasssadar/following{/other_user}","gists_url":"https://api.github.com/users/Tasssadar/gists{/gist_id}","starred_url":"https://api.github.com/users/Tasssadar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tasssadar/subscriptions","organizations_url":"https://api.github.com/users/Tasssadar/orgs","repos_url":"https://api.github.com/users/Tasssadar/repos","events_url":"https://api.github.com/users/Tasssadar/events{/privacy}","received_events_url":"https://api.github.com/users/Tasssadar/received_events","type":"User","site_admin":false},"created_at":"2019-01-05T09:33:46Z","updated_at":"2019-01-05T09:33:46Z","author_association":"MEMBER","body":"I think we can create an enum for these. The user projects are likely gonna be using their own redefines anyway, like in demo01: https://github.com/RoboticsBrno/mickoflus-demo01/blob/master/src/motors.hpp\r\n\r\n```cpp\r\nenum MotorId : uint8_t {\r\n    MOTOR1,\r\n    MOTOR2,\r\n    MOTOR3,\r\n    MOTOR4,\r\n    MOTOR5,\r\n    MOTOR6,\r\n    MOTOR7,\r\n    MOTOR8,\r\n\r\n    MOTOR_MAX,\r\n};\r\n```\r\n?"}}
{"actor":{"display_login":"Tasssadar"}}