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

Fix calibrate script #1034

Merged
merged 2 commits into from Aug 18, 2022
Merged

Conversation

DocGarbanzo
Copy link
Contributor

This fixes the calibrate.py script that is copied into the car directory and connects to the web server's calibration page. The script was still using the old specification of PWM pins, but the complete template has been upgraded to the new definitions already. This PR addresses that inconsistency. We also remove some unfortunate code form the script. There is still a bad issue w/ monkeypatching going on.

@@ -113,22 +115,14 @@ def drive(cfg ):
drive_train = RoboHATDriver(cfg)
V.add(drive_train, inputs=['angle', 'throttle'])


# TODO: monkeypatching is bad!!!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think those values are not even used anywhere in the controller or here in the calibration template. Maybe some other code uses them; you right - this is very hacky.

Copy link
Contributor

@Ezward Ezward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. Thank you for finding and fixing this.

@DocGarbanzo DocGarbanzo merged commit c61de76 into autorope:main Aug 18, 2022
@DocGarbanzo DocGarbanzo deleted the fix_calibrate_script branch October 16, 2022 16:47
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

Successfully merging this pull request may close these issues.

None yet

2 participants