-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Small cleanup #275
Small cleanup #275
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
selfdrive/car/honda/carcontroller.py
Outdated
else: | ||
hud_car = 1 | ||
else: | ||
if enabled and hud_show_car: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer the old version: less var name repetitions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right. that does look sloppy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not enabled:
hud_car = 0
elif not hud_show_car:
hud_car = 1
else:
hud_car = 2
How do you feel about something like this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still prefer the original :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha you win
* mass unit conversions * flat/explicit conditions * fix typos * remove hardcode * Update README.md * Update carcontroller.py
* mass unit conversions * flat/explicit conditions * fix typos * remove hardcode * Update README.md * Update carcontroller.py
* mapd: Remove more legacy implementation * bump cereal
-cleaner mass conversions and wheel speed estimation in gm and ford
-fixed some comment typos
-clearer IF conditions in honda/carcontroller