Skip to content
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

servo360 - try adding delay in calculated distance during acceleration #149

Open
AndyLindsay opened this issue Oct 8, 2017 · 1 comment

Comments

@AndyLindsay
Copy link
Contributor

AndyLindsay commented Oct 8, 2017

This could help remedy two issues:

servo360 - ActivityBots fishtails in transitions out of turns at high speeds
The reason the AcivityBot fishtails during high speed turns is because the error calculation between calculated and measured distance gets really large because there is a several pulse delay between a change in signal pulse and servo action. After the accelerations are done, the control system compensates for the accumulated error. By adding a several pulse delay to the distance recalculations, the control system won't have to make up for a large error.

servo360 - ActivityBots with similarly asymmetric zero speed deadband not meeting navigation goals
"Maybe" preventing the large errors will allow the control system settings to be increased slightly to address any curving with mismatched servos.

@AndyLindsay
Copy link
Contributor Author

AndyLindsay commented Oct 16, 2017

(step 1)

Added as commented code (that does work). Needs either tuning or extra conditions so that it doesn't introduce errors when slowing down to a stop.

https://github.com/parallaxinc/Simple-Libraries/tree/68fea9edeb6edadeed65b07f55c4dccf6949ba48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant