{"action":"created","issue":{"url":"https://api.github.com/repos/ev3dev/ev3dev-lang-python/issues/543","repository_url":"https://api.github.com/repos/ev3dev/ev3dev-lang-python","labels_url":"https://api.github.com/repos/ev3dev/ev3dev-lang-python/issues/543/labels{/name}","comments_url":"https://api.github.com/repos/ev3dev/ev3dev-lang-python/issues/543/comments","events_url":"https://api.github.com/repos/ev3dev/ev3dev-lang-python/issues/543/events","html_url":"https://github.com/ev3dev/ev3dev-lang-python/issues/543","id":375470980,"node_id":"MDU6SXNzdWUzNzU0NzA5ODA=","number":543,"title":"brickpi3 and medium motors","user":{"login":"dwalton76","id":468309,"node_id":"MDQ6VXNlcjQ2ODMwOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/468309?v=4","gravatar_id":"","url":"https://api.github.com/users/dwalton76","html_url":"https://github.com/dwalton76","followers_url":"https://api.github.com/users/dwalton76/followers","following_url":"https://api.github.com/users/dwalton76/following{/other_user}","gists_url":"https://api.github.com/users/dwalton76/gists{/gist_id}","starred_url":"https://api.github.com/users/dwalton76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwalton76/subscriptions","organizations_url":"https://api.github.com/users/dwalton76/orgs","repos_url":"https://api.github.com/users/dwalton76/repos","events_url":"https://api.github.com/users/dwalton76/events{/privacy}","received_events_url":"https://api.github.com/users/dwalton76/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"dwalton76","id":468309,"node_id":"MDQ6VXNlcjQ2ODMwOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/468309?v=4","gravatar_id":"","url":"https://api.github.com/users/dwalton76","html_url":"https://github.com/dwalton76","followers_url":"https://api.github.com/users/dwalton76/followers","following_url":"https://api.github.com/users/dwalton76/following{/other_user}","gists_url":"https://api.github.com/users/dwalton76/gists{/gist_id}","starred_url":"https://api.github.com/users/dwalton76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwalton76/subscriptions","organizations_url":"https://api.github.com/users/dwalton76/orgs","repos_url":"https://api.github.com/users/dwalton76/repos","events_url":"https://api.github.com/users/dwalton76/events{/privacy}","received_events_url":"https://api.github.com/users/dwalton76/received_events","type":"User","site_admin":false},"assignees":[{"login":"dwalton76","id":468309,"node_id":"MDQ6VXNlcjQ2ODMwOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/468309?v=4","gravatar_id":"","url":"https://api.github.com/users/dwalton76","html_url":"https://github.com/dwalton76","followers_url":"https://api.github.com/users/dwalton76/followers","following_url":"https://api.github.com/users/dwalton76/following{/other_user}","gists_url":"https://api.github.com/users/dwalton76/gists{/gist_id}","starred_url":"https://api.github.com/users/dwalton76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwalton76/subscriptions","organizations_url":"https://api.github.com/users/dwalton76/orgs","repos_url":"https://api.github.com/users/dwalton76/repos","events_url":"https://api.github.com/users/dwalton76/events{/privacy}","received_events_url":"https://api.github.com/users/dwalton76/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-10-30T12:47:06Z","updated_at":"2018-10-31T16:19:18Z","closed_at":null,"author_association":"COLLABORATOR","body":"\r\n> The firmware in BrickPi3 (and earlier BrickPi models) doesn't know about different kinds of motors, so we just treat everything like an NXT motor.\r\n-- dlech in https://github.com/ev3dev/ev3dev/issues/1059\r\n\r\nThe work-around is to use the LargeMotor class for the medium motor.  One potential problem is if the user's program relies on max_speed since that value is different for medium vs large motors. \r\n\r\nIf the user does try to use the MediumMotor class we will fail to set the driver (see the intro in https://github.com/ev3dev/ev3dev/issues/1059).  One option for presenting the user with a more informed error message is to raise an exception if the MediumMotor class is used:\r\n\r\n```\r\n        if platform in ('brickpi', 'brickpi3'):\r\n            raise Exception(\"%s is unaware of different motor types, use LargeMotor instead\" % platform)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ev3dev/ev3dev-lang-python/issues/comments/434751589","html_url":"https://github.com/ev3dev/ev3dev-lang-python/issues/543#issuecomment-434751589","issue_url":"https://api.github.com/repos/ev3dev/ev3dev-lang-python/issues/543","id":434751589,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDc1MTU4OQ==","user":{"login":"dlech","id":963645,"node_id":"MDQ6VXNlcjk2MzY0NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/963645?v=4","gravatar_id":"","url":"https://api.github.com/users/dlech","html_url":"https://github.com/dlech","followers_url":"https://api.github.com/users/dlech/followers","following_url":"https://api.github.com/users/dlech/following{/other_user}","gists_url":"https://api.github.com/users/dlech/gists{/gist_id}","starred_url":"https://api.github.com/users/dlech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlech/subscriptions","organizations_url":"https://api.github.com/users/dlech/orgs","repos_url":"https://api.github.com/users/dlech/repos","events_url":"https://api.github.com/users/dlech/events{/privacy}","received_events_url":"https://api.github.com/users/dlech/received_events","type":"User","site_admin":false},"created_at":"2018-10-31T16:19:18Z","updated_at":"2018-10-31T16:19:18Z","author_association":"MEMBER","body":"Can you use `set_device` on the output port to tell it there is a medium motor attached?"}}
{"actor":{"display_login":"dlech"}}