-
Notifications
You must be signed in to change notification settings - Fork 10.5k
docs: Fix "Turn the speed blue" tutorial for Raylib UI #36591
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
docs: Fix "Turn the speed blue" tutorial for Raylib UI #36591
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.
Thanks for contributing to openpilot! In order for us to review your PR as quickly as possible, check the following:
- Convert your PR to a draft unless it's ready to review
- Read the contributing docs
- Before marking as "ready for review", ensure:
- the goal is clearly stated in the description
- all the tests are passing
- the change is something we merge
- include a route or your device' dongle ID if relevant
docs/how-to/turn-the-speed-blue.md
Outdated
|
|
||
| --- | ||
|
|
||
| ## 4. Rebuild the UI |
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.
Rebuilding is no longer required with Raylib
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.
Yes, you are right! updated it.
0ab8f08 to
4d5e488
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.
Pull request overview
This PR updates the "Turn the speed blue" tutorial from the deprecated Qt/C++ UI implementation to the current Raylib/Python implementation. The update is essential for new contributors following the getting started guide, as the previous version referenced non-existent files and outdated code.
Key Changes
- Updated file paths and references from
selfdrive/ui/qt/onroad/hud.cc(C++) toselfdrive/ui/onroad/hud_renderer.py(Python) - Replaced Qt/C++ code examples with Raylib/Python equivalents
- Changed execution commands from compiled binary (
selfdrive/ui/ui) to Python script (./selfdrive/ui/ui.py)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
we should add |
Fix "Turn the speed blue" tutorial for current Raylib UI
Problem: The getting started guide "Turn the speed blue" was outdated and referenced the old Qt-based UI code that no longer exists in openpilot.
Solution: Updated the tutorial to work with the current Raylib-based UI system.
Changes Made
selfdrive/ui/qt/onroad/hud.ccto selfdrive/ui/onroad/hud_renderer.pyQColortoCOLORS.whiteVerification
rl.draw_text_exat line 175 in hud_renderer.pyImpact
This fix removes a critical barrier for new contributors trying to follow the getting started guide. The previous tutorial would immediately fail with file not found errors and incorrect syntax examples.
Files changed: