Commit Graph

15033 Commits

Author SHA1 Message Date
Jason Wen 19da249fac Merge branch 'master-new' into nnlc-new 2025-03-16 19:54:02 -04:00
Jason Wen 42871f7a9d pandad: dedicated aligned buffer for deserialization (#671)
* pandad: dedicated aligned buffer for deserialization

* ide pls
2025-03-16 19:53:53 -04:00
Jason Wen 9cd94b7f4a try this out 2025-03-16 19:32:06 -04:00
Jason Wen 5feb7fca12 capnp test 2025-03-16 17:25:20 -04:00
Jason Wen 0a65a94aae fix more test 2025-03-16 16:58:25 -04:00
Jason Wen a802cda85e lint 2025-03-16 16:42:48 -04:00
Jason Wen 8e44d3622c fix tests 2025-03-16 16:39:11 -04:00
DevTekVE cac8527115 sunnylink: pairing and sponsorship (#523)
* Refactor sunnylink panel code for clarity and initialization fixes.

Replaced explicit pointer types with `auto` for cleaner code and added proper initialization for the `offroad` boolean member. Simplified toggle logic by consolidating description updates for enabling/disabling sunnylink. These changes improve code readability and maintainability.

* Add Sunnylink sponsor and GitHub pairing functionality

This update introduces a feature to manage sponsorship-based roles and GitHub account pairing for Sunnylink. It includes new sponsor popups, sponsor-specific widgets, QR code logic, and backend API integrations. Additionally, new models and services support sponsor tier management and user-role synchronization.

* Translation files

* Param keys

* Add setup functions for SunnyLink sponsor and pair buttons

Introduce `setup_settings_sunnylink_sponsor_button` and `setup_settings_sunnylink_pair_button` to handle specific SunnyLink UI interactions. These functions streamline button clicks for sponsor and pairing actions within SunnyLink settings.

* Add new SunnyLink test cases for sponsor and pair buttons

Added `settings_sunnylink_sponsor_button` and `settings_sunnylink_pair_button` to the UI test case dictionary. This extends the SunnyLink test coverage to include sponsor and pairing functionalities.

* No need to import sunnylink from here, and it causes just circular dependency

* Enhance SunnylinkPanel functionality in off-road settings

This commit enhances the functionality of the SunnylinkPanel in the off-road settings of the SunnyPilot user interface. A paramWatcher is added to the SunnylinkPanel to observe "SunnylinkEnabled" parameter changes. Update functionalities are enhanced to handle showing and hiding of components based on various circumstances, such as whether the system is 'on-road' or 'off-road', and whether Sunnylink is enabled or not. The stopSunnylink and startSunnylink functions were also added to start or stop processes accordingly when Sunnylink is enabled or disabled. Additionally, the ui.h file is updated to efficiently handle Sunnylink roles and device users.

* Refactor SunnylinkPanel initialization and handling.

Reorganized SunnylinkPanel to improve structure and clarity by separating sunnylink client initialization and list widget setup. Enabled automatic sunnylink startup when the feature is enabled. Added minor formatting fixes for label display consistency.

* Add missing include for <optional> in ui.h

Including <optional> ensures compatibility with standard C++ features and prevents potential compilation errors. This addition aligns with best practices for maintaining robust and clean code.

* Updated setup_settings_sunnylink_sponsor_button and setup_settings_sunnylink_pair_button function signatures

Added an optional 'scroll' parameter to the setup_settings_sunnylink_sponsor_button and setup_settings_sunnylink_pair_button functions in the test_ui module. The modifications were made to allow for more flexible function usage by potentially enabling scroll operations during the execution of these UI setup steps.

* Enable Sunnylink initialization on panel show event

Begin Sunnylink connection automatically when the panel is displayed, ensuring the feature is active if enabled. Additionally, update the sponsor button text formatting for more concise styling.

* Translations

* Added checks for new UI files in PRs

The git workflow script `ui_preview.yaml` has been modified. The script now checks if the master branch contains a file corresponding to a UI file present in the PR. If a UI file in the PR does not have a match on the master branch, it is marked as new. These enhancements improve the comparison of UI changes between the master and PR branches, particularly with the identification of new UI files.

* cleanup

* duh

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-03-16 16:22:14 -04:00
Jason Wen 66b6ab7109 fix toggle param 2025-03-16 16:08:12 -04:00
Jason Wen 14c2bb7c29 only allow engage if nnlc is off 2025-03-16 15:56:46 -04:00
Jason Wen 45e259f438 fix initialization 2025-03-16 15:51:39 -04:00
Jason Wen 8a4b3659a0 oops 2025-03-16 15:47:08 -04:00
Jason Wen 815afba5f4 only initialize if NNLC is enabled or allow to enable 2025-03-16 15:46:03 -04:00
Jason Wen 914d5af2eb debug 2025-03-16 15:37:28 -04:00
Jason Wen 19a58920b3 fixes 2025-03-16 15:19:53 -04:00
Jason Wen 6e6f351491 convert to capnp 2025-03-16 15:11:18 -04:00
Jason Wen ac66357bb4 fix import 2025-03-16 15:04:12 -04:00
Jason Wen acfbd9a2ec in structs 2025-03-16 15:00:46 -04:00
Jason Wen e2f7feea53 remove debug 2025-03-16 13:55:11 -04:00
Jason Wen 99177813bc codespell 2025-03-16 13:41:51 -04:00
Jason Wen b424fe759c static 2025-03-16 13:35:50 -04:00
Jason Wen 2f95c1ae28 Merge branch 'master-new' into nnlc-new 2025-03-16 13:30:16 -04:00
Jason Wen 54d52f7024 decouple even more 2025-03-16 13:29:47 -04:00
DevTekVE 89e385b692 CI: update default screenshot in UI preview (#669)
Jason Jason...
2025-03-16 13:01:31 -04:00
DevTekVE 61b9d81ba6 CI: identify new screenshots in UI preview (#668)
Added checks for new UI files in PRs

The git workflow script `ui_preview.yaml` has been modified. The script now checks if the master branch contains a file corresponding to a UI file present in the PR. If a UI file in the PR does not have a match on the master branch, it is marked as new. These enhancements improve the comparison of UI changes between the master and PR branches, particularly with the identification of new UI files.
2025-03-16 17:08:21 +01:00
DevTekVE 4fbf7a81b4 sunnylink: Fix IMEI fetching during registration (#661)
Fix getting the imei for the registration
2025-03-16 11:12:43 -04:00
DevTekVE e80a415daf Add Neural Network Lateral Control toggle to developer panel
This introduces a new toggle for enabling Neural Network Lateral Control (NNLC), providing detailed descriptions of its functionality and compatibility. It includes UI integration, car compatibility checks, and feedback links for unsupported vehicles.
2025-03-16 12:13:43 +01:00
Jason Wen 63d27f574c introduce params 2025-03-16 05:51:23 -04:00
Jason Wen 3810f99189 bump 2025-03-16 05:44:57 -04:00
Jason Wen 112704ed30 dump 2025-03-16 05:44:24 -04:00
Jason Wen 83c098fb56 bump 2025-03-16 05:43:44 -04:00
Jason Wen 48918f426a update submodule path 2025-03-16 05:41:13 -04:00
Jason Wen ef85a849d7 update submodule path 2025-03-16 05:41:00 -04:00
Jason Wen a47d8e9a1a spacing??? 2025-03-16 05:34:01 -04:00
Jason Wen 7768eb7a6c update path to submodule 2025-03-16 05:29:56 -04:00
Jason Wen 6f539e5f79 bump submodule 2025-03-16 05:20:13 -04:00
Jason Wen 9bb4a3a973 new submodule for nn data 2025-03-16 05:09:57 -04:00
Jason Wen 941b2ab929 more fix 2025-03-16 04:44:46 -04:00
Jason Wen 1518495e96 more fixes 2025-03-16 04:36:36 -04:00
Jason Wen e00a7c6e8b fixes 2025-03-16 04:17:36 -04:00
Jason Wen 4b4f1569d1 keep it alive 2025-03-16 04:01:25 -04:00
Jason Wen f50d7a1842 ui: Update FirehosePanel with sunnypilot ui updates (#666) 2025-03-16 02:34:25 -04:00
Jason Wen e2a2cb184a more init 2025-03-16 02:27:29 -04:00
Jason Wen 187ed1a6e3 init 2025-03-16 01:02:54 -04:00
Jason Wen 4ef46251a7 ui: Trim panel name for Firehose panel redirect (#664)
* ui: Trim panel name for Firehose panel redirect

* unused

* extra
2025-03-16 00:09:11 -04:00
Jason Wen 7f669ec1e7 MADS: Disable for Rivian (#663) 2025-03-15 22:28:32 -04:00
Jason Wen 1be2643dfd Sync: commaai/openpilot:master into sunnypilot/sunnypilot:master-new (#656) 2025-03-15 21:24:44 -04:00
Jason Wen db0ce99c01 Car interface: custom safety params (#659)
* init

* do it for hyundai

* Bump submodules

* no complaints

* use latest opendbc pr ref

* don't need this for leaf for now

* bump opendbc

* gotta set the sp safety flags in test models and safety replay!

* actually fetch CP_SP

* set safety param for lda button availability (lol forgot)

* use GET_FLAG

* Add TODO-SP

* bump submodules
2025-03-15 18:22:53 -04:00
Jason Wen 4879e2f5ec Bump opendbc 2025-03-15 18:22:53 -04:00
Jason Wen 70f8225efc Merge branch 'upstream/openpilot/master' into sync-20250312
# Conflicts:
#    opendbc_repo
#    selfdrive/car/tests/test_models.py
2025-03-13 02:41:16 -04:00