{"action":"created","issue":{"url":"https://api.github.com/repos/pololu/drv8835-motor-shield/issues/1","labels_url":"https://api.github.com/repos/pololu/drv8835-motor-shield/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/pololu/drv8835-motor-shield/issues/1/comments","events_url":"https://api.github.com/repos/pololu/drv8835-motor-shield/issues/1/events","html_url":"https://github.com/pololu/drv8835-motor-shield/issues/1","id":66423210,"number":1,"title":"Maintaining a certain speed is not working for reverse direction","user":{"login":"isaacdrafton","id":11249107,"avatar_url":"https://avatars.githubusercontent.com/u/11249107?v=3","gravatar_id":"","url":"https://api.github.com/users/isaacdrafton","html_url":"https://github.com/isaacdrafton","followers_url":"https://api.github.com/users/isaacdrafton/followers","following_url":"https://api.github.com/users/isaacdrafton/following{/other_user}","gists_url":"https://api.github.com/users/isaacdrafton/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacdrafton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacdrafton/subscriptions","organizations_url":"https://api.github.com/users/isaacdrafton/orgs","repos_url":"https://api.github.com/users/isaacdrafton/repos","events_url":"https://api.github.com/users/isaacdrafton/events{/privacy}","received_events_url":"https://api.github.com/users/isaacdrafton/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-05T09:54:54Z","updated_at":"2015-04-08T17:53:08Z","closed_at":"2015-04-08T17:53:08Z","body":"Hi,\r\nWhen I try to keep the maximum speed using delay() and motors.flip are false everything works as expected.\r\ne.g.\r\n\r\n    for (int speed = 0; speed <= 400; speed++)\r\n      {\r\n        motors.setM1Speed(speed);\r\n        motors.setM2Speed(speed); //  or motors.setSpeeds(speed,speed)\r\n        delay(2);\r\n      }\r\n\r\n      delay(2000); // here we are running at full speed for 2 seconds\r\n\r\n      for (int speed = 400; speed >= 0; speed--)\r\n      {\r\n        motors.setM1Speed(speed);\r\n        motors.setM2Speed(speed);\r\n        delay(2);\r\n      }\r\n\r\nWhen I try to do the same in reverted direction (flipping the motors or using negative speeds from 0 to -400), during the delay time the motors do not move. I would expect them to run at the maximum speed as for the non-flipped example.\r\n\r\nHow can I fix this?\r\nThank you!\r\n\r\nP.S.\r\nI'm using this library with two DRV8838 connected accordingly.\r\nIt's working just fine if I try it with the provided example - one motor at a time. But I need this for both motors. \r\n"},"comment":{"url":"https://api.github.com/repos/pololu/drv8835-motor-shield/issues/comments/90987349","html_url":"https://github.com/pololu/drv8835-motor-shield/issues/1#issuecomment-90987349","issue_url":"https://api.github.com/repos/pololu/drv8835-motor-shield/issues/1","id":90987349,"user":{"login":"DavidEGrayson","id":466764,"avatar_url":"https://avatars.githubusercontent.com/u/466764?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidEGrayson","html_url":"https://github.com/DavidEGrayson","followers_url":"https://api.github.com/users/DavidEGrayson/followers","following_url":"https://api.github.com/users/DavidEGrayson/following{/other_user}","gists_url":"https://api.github.com/users/DavidEGrayson/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidEGrayson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidEGrayson/subscriptions","organizations_url":"https://api.github.com/users/DavidEGrayson/orgs","repos_url":"https://api.github.com/users/DavidEGrayson/repos","events_url":"https://api.github.com/users/DavidEGrayson/events{/privacy}","received_events_url":"https://api.github.com/users/DavidEGrayson/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T17:53:08Z","updated_at":"2015-04-08T17:53:08Z","body":"The more appropriate place for this type of discussion would be the Pololu forum, and I see you have already started a thread there:\r\n\r\nhttp://forum.pololu.com/viewtopic.php?f=15&t=9751\r\n\r\nWe use GitHub issues to discuss bugs in the code."}}