Commit Graph

15106 Commits

Author SHA1 Message Date
Jason Wen cffd56a753 no need for this 2025-03-20 18:04:13 -04:00
Jason Wen f2fc599b41 move to steering panel 2025-03-20 17:54:45 -04:00
Jason Wen 0623927a28 Merge remote-tracking branch 'sunnypilot/sunnypilot/master-new' into nnlc-new
# Conflicts:
#	selfdrive/ui/sunnypilot/SConscript
2025-03-20 17:02:18 -04:00
Jason Wen a2628fe4f6 ui: sunnypilot Panel -> Steering Panel (#691)
* ui: sunnypilot Panel -> Steering Panel

* Update selfdrive/ui/sunnypilot/qt/offroad/settings/lateral_panel.h
2025-03-20 17:01:47 -04:00
Jason Wen d637568056 merge 2025-03-20 16:48:52 -04:00
Jason Wen b7b4b533a0 Merge branch 'ui-lat-long-split' into nnlc-new
# Conflicts:
#	selfdrive/ui/sunnypilot/SConscript
#	selfdrive/ui/sunnypilot/qt/offroad/settings/lateral/neural_network_lateral_control.cc
#	selfdrive/ui/sunnypilot/qt/offroad/settings/lateral/neural_network_lateral_control.h
2025-03-20 16:47:09 -04:00
Jason Wen 8bb511db27 Update selfdrive/ui/sunnypilot/qt/offroad/settings/lateral_panel.h 2025-03-20 16:31:16 -04:00
Jason Wen c6e47a2e71 ui: sunnypilot Panel -> Steering Panel 2025-03-20 16:27:24 -04:00
Jason Wen 7d75f4bfc0 update name and expose toggle 2025-03-20 16:11:49 -04:00
Jason Wen 46d29d10af update regardless, it's an extension now 2025-03-20 16:03:29 -04:00
Jason Wen 7df06df6b2 Merge remote-tracking branch 'sunnypilot/sunnypilot/master-new' into nnlc-new
# Conflicts:
#	selfdrive/controls/lib/latcontrol_torque.py
#	sunnypilot/selfdrive/controls/lib/latcontrol_torque_ext.py
#	sunnypilot/selfdrive/controls/lib/latcontrol_torque_ext_base.py
2025-03-20 16:02:55 -04:00
Jason Wen d21e351003 Controls: Lateral Accel Torque Control Extension (#690)
* init

* more init

* keep it alive

* fixes

* more fixes

* more fix

* new submodule for nn data

* bump submodule

* update path to submodule

* spacing???

* update submodule path

* update submodule path

* bump

* dump

* bump

* introduce params

* 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.

* decouple even more

* static

* codespell

* remove debug

* in structs

* fix import

* convert to capnp

* fixes

* debug

* only initialize if NNLC is enabled or allow to enable

* oops

* fix initialization

* only allow engage if nnlc is off

* fix toggle param

* fix tests

* lint

* fix more test

* capnp test

* try this out

* validate if it's not None

* make it 33 to match

* align

* share the same friction input calculation

* return stock values if not enabled

* unused

* split base and child

* space

* rename

* NeuralNetworkFeedForwardModel

* less

* just use file name

* try this

* more explicit

* rename

* move it

* child class for additional controllers

* rename

* time to split out custom lateral acceleration

* move around

* space

* fix

* TODO-SP

* TODO-SP

* split nnlc and custom lat accel

* more

* not yet

* comment

* fix

---------

Co-authored-by: DevTekVE <devtekve@gmail.com>
2025-03-20 16:01:08 -04:00
Jason Wen 0338e4570c Merge remote-tracking branch 'sunnypilot/sunnypilot/master-new' into nnlc-new
# Conflicts:
#	opendbc_repo
#	selfdrive/ui/qt/offroad/developer_panel.cc
#	selfdrive/ui/qt/offroad/developer_panel.h
2025-03-20 13:50:48 -04:00
Jason Wen e851dd250d TODO-SP 2025-03-20 13:50:04 -04:00
Jason Wen bacf54d22a TODO-SP 2025-03-20 13:14:18 -04:00
Jason Wen d15a5ce300 fix 2025-03-20 12:35:18 -04:00
Discountchubbs 47c8ac2431 ui: Developer Panel Fixes (#688)
* Add error log to developer panel

* Add lang files

* Refactor GitHub runner control to local variable

Replaced the `enableGithubRunner` member variable with a local variable, as it is not used elsewhere in the class. Simplified visibility management for developer panel toggles in release branches.

* Modifying visibility rules for developer panel controls

This commit modifies the visibility settings for controls within the developer panel such as `enableGithubRunner`, `errorLogBtn`, `joystickToggle` and `longManeuverToggle`. The visibility of these controls is now dependent on whether the software is running in release mode. This update ensures that certain settings are hidden from the end user in the release version, enhancing the user interface by simplifying it and preventing potential user confusion.

* Translation files

* we already handle this in stock

---------

Co-authored-by: DevTekVE <devtekve@gmail.com>
Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-03-19 19:16:54 -04:00
Jason Wen bf2731b470 MADS: Steering Mode on Brake Pedal Press (#687)
* reimplement

* bump opendbc

* Apply suggestions from code review

Co-authored-by: DevTekVE <devtekve@gmail.com>

* update toggle positions

* translations from bot later

---------

Co-authored-by: DevTekVE <devtekve@gmail.com>
2025-03-19 18:24:56 -04:00
DevTekVE 01998f864d sunnylink: Improve API initialization and enhance WebSocket security (#662)
Refactor sunnylinkd for better readability and SSL support

Reorganized variable handling for Sunnylink API initialization. Updated WebSocket connection to use Authorization header and added SSL configuration based on the connection type. This enhances code clarity and ensures secure connections when not on localhost.

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-03-19 21:47:39 +00:00
Discountchubbs d2846741bc ui: Error log button to Developer panel (#627)
* Add error log to developer panel

* Testing debug

* Fix condition for retry handling in action workflow

Updated the logic to properly check for 'NONE' author association instead of 'FIRST_TIME_CONTRIBUTOR' when determining retry limits. This ensures the workflow behaves as intended for contributors without prior activity.

* Clean

* Refine workflow condition logic for PR checks

Updated the `if` condition in the lfs-maintenance workflow to improve clarity and ensure proper evaluation. This change aligns the logical grouping for better readability and correctness in forked PR handling.

* Add lang files

* Update selfdrive/ui/qt/offroad/developer_panel.cc

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>

* Refactor GitHub runner control to local variable

Replaced the `enableGithubRunner` member variable with a local variable, as it is not used elsewhere in the class. Simplified visibility management for developer panel toggles in release branches.

* Updating translations

---------

Co-authored-by: DevTekVE <devtekve@gmail.com>
Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-03-19 21:06:42 +00:00
Jason Wen dd37a35b59 Revert "MADS: Steering Mode on Brake Pedal Press" (#686)
* Revert "MADS: Steering Mode on Brake Pedal Press (#684)"

This reverts commit 4525659a7e.

* bump
2025-03-19 16:02:45 -04:00
Jason Wen 4525659a7e MADS: Steering Mode on Brake Pedal Press (#684)
* MADS: cleanup param assignments

* MADS: Steering Mode on Brake Pedal Press

* bump opendbc

* translations

* make sure to initialize

* ci try this

* Revert "ci try this"

This reverts commit da975f61c3.

* Revert "translations"

This reverts commit a65aad5911.
2025-03-19 13:57:15 -04:00
Jason Wen ad67bdc853 ci: disable prebuilts on pull requests (#685) 2025-03-19 10:11:07 -04:00
Jason Wen 6ad4ebdae6 MADS: cleanup param assignments (#683) 2025-03-19 00:45:53 -04:00
Jason Wen 0c60e8a4e8 space 2025-03-18 01:59:17 -04:00
Jason Wen 6e73f48f59 Merge remote-tracking branch 'sunnypilot/sunnypilot/master-new' into nnlc-new
# Conflicts:
#	opendbc_repo
#	selfdrive/controls/lib/tests/test_latcontrol.py
2025-03-18 01:25:05 -04:00
Jason Wen 31b3897418 Sync: commaai/openpilot:master into sunnypilot/sunnypilot:master-new (#675) 2025-03-18 01:23:54 -04:00
DevTekVE f0abacbc59 Merge branch 'refs/heads/master-at-17032025' into sync-17032025
# Conflicts:
#	opendbc_repo
#	selfdrive/car/card.py
#	selfdrive/car/tests/test_car_interfaces.py
#	selfdrive/car/tests/test_models.py
#	selfdrive/controls/controlsd.py
#	selfdrive/controls/lib/tests/test_latcontrol.py
#	selfdrive/pandad/panda.h
#	system/manager/process_config.py
Sync: `commaai/opendbc:master` into `sunnypilot/opendbc:master-new`
2025-03-18 01:05:34 -04:00
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