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

Small cleanup #275

Merged
merged 7 commits into from
Jun 28, 2018
Merged

Small cleanup #275

merged 7 commits into from
Jun 28, 2018

Conversation

dek3rr
Copy link

@dek3rr dek3rr commented Jun 27, 2018

-cleaner mass conversions and wheel speed estimation in gm and ford
-fixed some comment typos
-clearer IF conditions in honda/carcontroller

Copy link
Contributor

@rbiasini rbiasini left a comment

Choose a reason for hiding this comment

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

Looks good

else:
hud_car = 1
else:
if enabled and hud_show_car:
Copy link
Contributor

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.

Copy link
Author

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

Copy link
Author

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?

Copy link
Contributor

Choose a reason for hiding this comment

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

still prefer the original :)

Copy link
Author

Choose a reason for hiding this comment

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

haha you win

@rbiasini rbiasini merged commit ce67c75 into commaai:devel Jun 28, 2018
klaus385 pushed a commit to klaus385/openpilot that referenced this pull request Dec 31, 2018
* mass unit conversions

* flat/explicit conditions

* fix typos

* remove hardcode

* Update README.md

* Update carcontroller.py
@dek3rr dek3rr deleted the units branch June 11, 2019 01:17
dragonpilot pushed a commit to dragonpilot-community/dragonpilot that referenced this pull request Apr 7, 2020
* mass unit conversions

* flat/explicit conditions

* fix typos

* remove hardcode

* Update README.md

* Update carcontroller.py
nworb-cire pushed a commit to opgm/openpilot that referenced this pull request May 21, 2024
* mapd: Remove more legacy implementation

* bump cereal
nworb-cire pushed a commit to opgm/openpilot that referenced this pull request Aug 2, 2024
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.

2 participants