-
-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Motors.cpp #3018
base: master
Are you sure you want to change the base?
Update Motors.cpp #3018
Conversation
changed test on direction from if(direction>0) to if(direction<0) to make it right ! also recomputing diff and stopping if < 1 work great for my Arduino Robot
@ArduinoBot build this please |
Hi Cedos, |
Hello, I tried without recomputing the diff but it wasn’t enough accurate when turning, I will try again and test if it works well with your suggestion.
|
Would something like this work?
|
Hi again, I tried your suggestion and it works , but it far less accurate , tried this code :
}
|
I agree with you it looks like it would be working but the fact is that it works less accurately, with my code it turns perfectly well at right angle every times. Maybe you can do testing on your side with both versions ? I use the robot logo example. Regards Envoyé de mon iPhone
|
I don't have a robot by hand at the moment, will do some tests Monday when I get back to my work place |
Hi @X-Y, did you manage to test the fix on real hardware? Did it behave correctly? |
Hello Martino, yes I’ve tested it on real hardware and it behave correctly. Best regards, Cédric De : Martino Facchin [mailto:notifications@github.com] Hi @X-Y https://github.com/X-Y , did you manage to test the fix on real hardware? Did it behave correctly? — |
@Cedos14 I'm sure it works in your setup but I need at least one more feedback before merging 😏 |
I understand very well your opinion and I would do the same :) De : Martino Facchin [mailto:notifications@github.com] https://github.com/Cedos14 @Cedos14 I'm sure it works in your setup but I need at least one more feedback before merging https://assets-cdn.github.com/images/icons/emoji/unicode/1f60f.png — |
|
changed test on direction from if(direction>0) to if(direction<0) to make it right !
also recomputing diff and stopping if < 1
work great for my Arduino Robot