Commit Graph

16131 Commits

Author SHA1 Message Date
infiniteCable2 98cf57b409 Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-06-13 17:56:26 +02:00
infiniteCable ceb8023e75 Update latcontrol_curvature.py 2025-06-13 09:54:12 +02:00
Nayan 0cb0bf8028 Longitudinal: Custom ACC setpoint increments support (#889)
* Add Reverse ACC Change parameter and update cruise control logic

* lint lint lint (and lint has been summoned!)

* Add test for speed adjustment on reverse ACC button presses

* Fix formatting in cruise speed test for reverse ACC button presses

* Fix assertion in cruise speed test for reverse ACC button presses

* Enhance speed adjustment test for reverse ACC functionality

* Refactor speed adjustment test for clarity and consistency in reverse ACC behavior

* Fix metric conversion in cruise speed update for reverse ACC functionality

* custom-acc-speed-increments

* simplify

* remove unused params

* move params & add test

* lets see if this works

* minor cosmetic stuff

* clean up class names & old code

* remove unused import

* moved params to card

* stupid strings

* Add settings for developer reverse acceleration configuration

* Refactor cruise control parameters to use a dictionary for custom acceleration increments

* adjust for the default behavior

* Remove unused param

* Fuck pytest consistently failing on macos. Need to force a fail on the pipeline or I won't have confidence on the tests.

* Revert "Fuck pytest consistently failing on macos. Need to force a fail on the pipeline or I won't have confidence on the tests."

This reverts commit 05bac46a0c3964d8f7a3c4db652609eb25b8fd2a.

* Refactor custom acceleration increment handling to improve clarity and initialization

* Refactor AccIncrementOptionControl to accept range and per_value_change parameters for improved flexibility

* Refactor custom acceleration increment handling to improve clarity and functionality

* Adjusting tests

* Static

* no need for space changes

* no need for space changes

* no need for space changes

* Refactor constructor formatting in AccIncrementOptionControl

* Rename

* Meaningless change to test CI

* allow 1/5/10 increments for long press
move developer panel src to /offroad/settings

* update boundary condition for long press

* clamp increments of 5/10 regardless of short or long press

* update tests

* update test for long_press non-standard values

* move to cruise panel

* init

* use cereal

* update tests

* merge

* bump

* clean up

* more clean up

* no more layout warnings

* trying to resolve dev ci merge conflicts

* damn ui preview

* stack layout
enable only with oplong

* bump opendbc

* fix width

* bump tinygrad

* switch to params

* remove cereal changes

* sort params

* cleanup

* more cleanup

* lint

* rename

* split vcruise_helper

* move params to card thread
hide widget for pcm cruise

* simplify tests

* further simplify tests

* tests!!

* Revert "tests!!"

This reverts commit 85310a155e7a9f5a9b23685cb43b9c9b3c415818.

* move tuple from init to update_v_cruise

* lint

* temp remove tests to check

* Revert "temp remove tests to check"

This reverts commit da1c96a5dbe5398e7cccfe9e2ad3bf0308b5fe3d.

* handle exception

* formatting

* handle none condition

* remove from tests

* flip inheritance

* read directly

* set default

* not needed

* refactor inheritence

* rename

* already checks before invoking

* unused

* slight cleanup

* lint

* rename

* diff

* circular

* just 1 parent for now

* fix

* fix increment check with remainder

* red diff

* type hint

* update tests

* clip them

* formatting

* always check toggle visibility

* spaces are free

* hide widgets when disabled

* less

* handle more states

* private instead

* red diff says wuuuut

* fix panel click

---------

Co-authored-by: DevTekVE <devtekve@gmail.com>
Co-authored-by: Discountchubbs <159560811+Discountchubbs@users.noreply.github.com>
Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-06-10 22:48:46 -04:00
infiniteCable 061ccde1fb Update latcontrol_curvature.py 2025-06-10 17:36:25 +02:00
infiniteCable 2b156073d5 Update latcontrol_curvature.py 2025-06-10 17:35:52 +02:00
infiniteCable 5260d68b9f Update latcontrol_curvature.py 2025-06-10 13:15:30 +02:00
infiniteCable 3a28de654d Update latcontrol_curvature.py 2025-06-10 13:14:51 +02:00
infiniteCable f621fc5816 Update latcontrol_curvature.py 2025-06-10 13:13:33 +02:00
infiniteCable 16cd1c8ff5 Update latcontrol_curvature.py 2025-06-09 20:17:21 +02:00
infiniteCable 49ee2489df Update latcontrol_curvature.py 2025-06-09 18:27:23 +02:00
infiniteCable ddbdd78ca3 Update latcontrol_curvature.py 2025-06-09 18:24:27 +02:00
infiniteCable2 3957909951 Update opendbc_repo 2025-06-09 11:22:59 +02:00
infiniteCable2 c8064884f4 Merge branch 'master-new' of https://github.com/infiniteCable2/openpilot into master-new 2025-06-09 11:18:50 +02:00
infiniteCable2 608e883393 Update opendbc_repo 2025-06-09 11:18:21 +02:00
infiniteCable 6922caa7bd Update latcontrol_curvature.py 2025-06-09 11:06:03 +02:00
infiniteCable d82945a1da Update controlsd.py 2025-06-09 11:05:04 +02:00
infiniteCable 7e6b6039a5 Update latcontrol_curvature.py 2025-06-09 11:02:23 +02:00
infiniteCable 737eeaa3b2 Update controlsd.py 2025-06-09 10:48:21 +02:00
infiniteCable 1fac1d5719 Update settings.cc 2025-06-09 10:46:29 +02:00
infiniteCable c9f7db4197 Update params_keys.h 2025-06-09 10:44:31 +02:00
infiniteCable2 5125b36892 Update opendbc_repo 2025-06-09 10:42:19 +02:00
infiniteCable2 b90c913cfd Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-06-09 10:28:20 +02:00
infiniteCable2 a7172aa4dc Update opendbc_repo 2025-06-09 10:26:43 +02:00
Jason Wen f12d181d3b mapd: add to ignored processes list (#993)
* mapd: add to ignored processes list

* executable
2025-06-08 18:13:24 -04:00
infiniteCable2 7ae6949c2c Update opendbc_repo 2025-06-08 17:18:49 +02:00
infiniteCable2 5160f75600 Update opendbc_repo 2025-06-08 16:40:24 +02:00
infiniteCable2 34e62fa144 Update opendbc_repo 2025-06-08 16:26:56 +02:00
infiniteCable2 9e7fd64889 Update opendbc_repo 2025-06-08 16:18:01 +02:00
infiniteCable2 83374e12cc Update opendbc_repo 2025-06-08 15:13:01 +02:00
infiniteCable2 5088eb8b1d Update opendbc_repo 2025-06-08 14:59:57 +02:00
infiniteCable2 4b479ebd87 Update opendbc_repo 2025-06-08 14:51:53 +02:00
infiniteCable2 6fa22477a6 Update opendbc_repo 2025-06-08 14:45:17 +02:00
infiniteCable2 648e0138d6 Update opendbc_repo 2025-06-08 14:29:30 +02:00
infiniteCable2 5fc9d0e393 Update opendbc_repo 2025-06-08 14:27:05 +02:00
infiniteCable2 1ce42f0f47 Update opendbc_repo 2025-06-08 13:59:08 +02:00
infiniteCable2 59223a7adf Update opendbc_repo 2025-06-08 12:52:50 +02:00
infiniteCable2 0ed4980235 Update opendbc_repo 2025-06-08 12:21:13 +02:00
infiniteCable2 38ca7c44b5 Update opendbc_repo 2025-06-08 12:20:19 +02:00
infiniteCable2 a66d3e248a Update opendbc_repo 2025-06-08 11:10:26 +02:00
Jason Wen 49cad4c22e Update Python packages (#991)
* Update Python packages

* bump
2025-06-07 17:38:09 -04:00
infiniteCable2 cc1adcda6f Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-06-07 15:06:57 +02:00
Nayan 8da0514955 UI: Add Exit Offfroad button on the home screen (#872)
* exit offroad btn on offroad-home

* Remove alert for Always-Offroad.
Replaced with header "Always Offroad Active"

* refresh state when device wakes up

* cleanup

* cleaning

* Add pulsing glow effect to ExitOffroadButton

Introduced a QTimer-based mechanism to create a pulsing glow effect around the ExitOffroadButton. This enhances visual feedback by animating the outline with varying alpha transparency, improving UI responsiveness and aesthetics.

* move custom asset to sunnypilot

---------

Co-authored-by: DevTekVE <devtekve@gmail.com>
2025-06-07 15:03:13 +02:00
infiniteCable2 fe22ae0f62 Merge branch 'master-new' of https://github.com/infiniteCable2/openpilot into master-new 2025-06-07 14:43:31 +02:00
infiniteCable2 50c3835bf6 Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-06-07 14:43:12 +02:00
infiniteCable2 79d97d2b0b Update opendbc_repo 2025-06-07 14:42:38 +02:00
Nayan fa4c3a80b6 device: customizable wake-up behavior (start offroad) (#861)
* allow always offroad at boot

* update description

* move buttons down again

* device boot mode

* update description

* offroad on sleep

* update name & description

* cleanup

* update signal name

* Update selfdrive/ui/sunnypilot/qt/offroad/settings/device_panel.cc

---------

Co-authored-by: DevTekVE <devtekve@gmail.com>
Co-authored-by: Kumar <36933347+rav4kumar@users.noreply.github.com>
Co-authored-by: James Vecellio-Grant <159560811+Discountchubbs@users.noreply.github.com>
2025-06-07 14:41:39 +02:00
infiniteCable 252e1b0725 Update latcontrol_curvature.py 2025-06-07 12:46:02 +02:00
DevTekVE 4e3e069a65 Revert "ui: model fuzzy search" (#990)
Revert "ui: model fuzzy search (#958)"

This reverts commit 489d9164f8.
2025-06-07 10:48:30 +02:00
Jason Wen ab6d192714 mapd (#989)
* init

* some fixes

* move

* more

* old navd helpers

* bring back cereal

* fix linting

* more

* add to cereal first

* sp events

* lint

* implement in long plan

* fixme-sp

* refactor state machine

* wrong state

* start refactor controller

* some type hints

* init these

* enable debug print

* ui? ui!

* print them out

* fix spinner import

* fix path

* let's use gps chips directly for now

* service missing

* publish events

* no nav for now

* need to sub

* no car state speed yet

* missed event

* Car: `CarStateSP`

* fix tests

* bring back car state speed limit

* fix

* use old controller for now

* fix

* fix source

* type hints

* none for now

* formatting

* more

* create directory if does not exist

* mypy my bt

* policy param catch exceptions

* handle all params with exceptions

* more

* single method

* define types in init

* rename

* simpler op enabled check

* more mypy stuff

* rename

* no need for brake pressed

* don't reset if gas pressed

* type hint all

* type hint all

* back to upstream

* in another pr

* no longer need data type

* qlog

* slc in another pr

* use horizontal accuracy

* set core affinity for all realtime processes

* unused

* sort

* unused

* type hint and slight cleanup

* from old implementation

* use directly

* combine pm

* slight more cleanup

* type hints

* even more type hint

* lint

* more cleanup

* even less

* license
2025-06-07 03:47:09 -04:00
infiniteCable 153cebce1e Update latcontrol_curvature.py 2025-06-07 01:37:53 +02:00