-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
onroad/alerts: replace magic numbers with named constants #33388
Conversation
Thanks for contributing to openpilot! In order for us to review your PR as quickly as possible, check the following:
|
710f19c
to
930c0cb
Compare
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.
Can you add one of each alert to the UI report?
We'll be touching this code a lot more soon, and it would be nice if the UI report showed the changes.
done, but not sure why the ui report is still displaying the old information.could it be that the updated results only appear after merging? |
@deanlee Yes, the |
4d2cb85
to
887708c
Compare
887708c
to
c468d92
Compare
I don't actually think this is better. The locality of all these numbers makes the |
The
alert_heights
map was also removed because it didn't adapt to changes in window height, causing resizing issues. It was also non-constant, which was not ideal.