Commit Graph

15057 Commits

Author SHA1 Message Date
Jason Wen 43fa7e3446 move around 2025-03-18 00:04:37 -04:00
Jason Wen 1c93f1578b time to split out custom lateral acceleration 2025-03-18 00:03:30 -04:00
Jason Wen 871d7e29e8 rename 2025-03-17 23:57:01 -04:00
Jason Wen 9b49d3da64 child class for additional controllers 2025-03-17 23:56:30 -04:00
Jason Wen 0f475dfae8 move it 2025-03-17 23:04:11 -04:00
Jason Wen 9d8460f85e rename 2025-03-17 23:02:35 -04:00
Jason Wen 73196a1371 more explicit 2025-03-17 22:55:10 -04:00
Jason Wen 73a83a204b try this 2025-03-17 22:41:40 -04:00
Jason Wen 08eef47ce2 just use file name 2025-03-17 22:31:59 -04:00
Jason Wen 102e21f15a less 2025-03-17 20:34:40 -04:00
Jason Wen 52fcfb081c Merge remote-tracking branch 'sunnypilot/sunnypilot/master-new' into nnlc-new
# Conflicts:
#	opendbc_repo
2025-03-17 19:24:30 -04:00
Jason Wen 265e4837fe NeuralNetworkFeedForwardModel 2025-03-17 19:07:39 -04:00
Jason Wen 360e252b43 rename 2025-03-17 18:51:25 -04:00
Jason Wen 8bb4e8b939 space 2025-03-17 18:37:25 -04:00
Jason Wen 62de0b9c60 split base and child 2025-03-17 15:11:53 -04:00
Jason Wen 7c8ce56768 unused 2025-03-17 14:31:43 -04:00
Jason Wen ce688ae38b return stock values if not enabled 2025-03-17 14:19:35 -04:00
Jason Wen 6b4ac127df share the same friction input calculation 2025-03-17 14:16:21 -04:00
Jason Wen 4eb6ae6ee1 align 2025-03-17 13:54:29 -04:00
Jason Wen 3177142bfc ci: update existing comment during Squash and Merge (#674)
* format

* ci: update existing comment during Squash and Merge

* dynamic target branch

* test label

* try again

* no f

* test

* should be edit-last

* quote

* fix arg

* final

* bold it

* revert
2025-03-17 03:49:27 -04:00
Jason Wen 4a04819d96 Redirect license to LICENSE.md (#672)
* Redirect license to LICENSE.md

* bump
2025-03-17 00:36:32 -04:00
Jason Wen b95140666b ci: remove sunnylink pairing QR code from UI preview (#673) 2025-03-17 00:20:13 -04:00
Jason Wen 7c6841465c make it 33 to match 2025-03-16 20:32:33 -04:00
Jason Wen c20a178de6 validate if it's not None 2025-03-16 20:07:33 -04:00
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