Compare commits

...

1021 Commits

Author SHA1 Message Date
DevTekVE
8cb85c6d7d Add Python exclusion to .gitattributes in CI
This change updates the GitLab CI configuration to exclude Python files from LFS handling in the build directory. It helps ensure that Python scripts are not filtered or merged by LFS, thus maintaining their integrity.
2024-08-03 20:57:36 +02:00
DevTekVE
84c3668c3a Add git-lfs to CI pipeline
Added `git-lfs` installation to the CI/CD pipeline in `.gitlab-ci.yml` and initialized `git lfs` in `release/ci/publish.sh`. This ensures that large files are properly handled and improves the efficiency of our build and release process.
2024-08-03 20:52:55 +02:00
DevTekVE
89005e08c4 Add support for Git LFS in the CI pipeline
This commit updates the .gitlab-ci.yml to copy the necessary .lfsconfig and .gitattributes files to the build directory. Additionally, it appends LFS filter settings to .gitattributes to manage large file storage effectively during the build.
2024-08-03 19:21:55 +02:00
DevTekVE
57daa151cb Docs: Move HOW-TOS to master (#387)
* HOW-TOS.md: Instructions to enable radar tracks

* HOW-TOS.md: Instructions to enable radar tracks and openpilot Longitudinal Control

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* README: Enable Radar Tracks (#17)

* HOW-TOS: Update HKG enable radar tracks instructions (#24)

* Update radar tracks instructions

* Update HKG enable radar tracks instructions

* Update HOW-TOS.md

* Update HOW-TOS.md

* HOW-TOS: Update enable openpilot Longitudinal Control instructions (#29)

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Update HOW-TOS.md

* Added How-To for Enabling Mapbox Navigation (#78)

* Readme 2.0 (#84)

* Readme 2.0

• Add collapsible sections in an effort to make the readme page more digestible for first time readers.
• Proposed rewording for the following sections:
        • Join our Discord
        • Safety Modifications
• Prettify layout

* Update README.md

* Update README.md

* Update README.md

* Update README.md

spelling corrections

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

Moved Prohibited Safety Modifications into it's own section

* Update README.md

Reduced clickable text for hyperlink branches.
Added comma.ai link to safety policy.

* Update README.md

* Update README.md

* Update README.md

* Prettify

• Make main headings expandable
• Rework installation section (undecided yet)

* Update README.md

Make table of contents uniform

* Update README.md

* Update README.md

Tidy up installation section

* Update Driving Enhancements

something is preventing self linking after [**Gap Adjust Cruise (GAC)**](#gap-adjust-cruise)

* Quality of life Enhancements

Added more to the list

* Add e2e path colour

* Fix How-To link

* Add comma two recommended branch

* Discrete discord badge

* Update installation instructions

* Make sections mobile friendly

`h2` -> h3

* Update `Features:`

reword and make use of footnotes

* Less is more, updated branch with search query

* 0.8.12 will work on comma three as well

* Tweak OSM feature and add footnote

* update menu reference

* DLP footnote

* Delete CHANGELOGS.md

Not needed seen as README directs to live / updated changelog per branch

* Delete FEATURES.md

Double up / already exists in README

* Update HOW-TOS.md

Make styling consistent, no information changed

* Difference format for installation block

* Spelling

* Update README.md

Add VW/Audi/Skoda and reword what SP is for

* Update README.md

bounds -> parameters

* Update README.md

Update installation URL with shortened URL + reword. Include footnote

* Update README.md

Reword `GAC`

* Update README.md

* Update README.md

Spacing

* Update README.md

less is more

* Update README.md

Remove DLP footnote, add NZ to Offline OSM

* Update README.md

Prettify change logs - link to a change log for `0.8.12-prod` branch instead of search

* Update README.md

Refactor QOL section. Focus more on "function of" vs "how-to".

* Update README.md

Refactor Visual Enhancements

* Driving Enhancements rework

* Additional -> Miscellaneous

* Spelling + grammar check

* Replace sirens with triangles

* Always show donation, updated Special Thanks

* 📡

* Update README.md

Co-authored-by: Jason Wen <47793918+sunnyhaibin@users.noreply.github.com>

* Update README.md

Co-authored-by: Jason Wen <47793918+sunnyhaibin@users.noreply.github.com>

* Fix how-to's

* Update README.md

* Discord badge to show total members

* Update README.md

* Small cleanup and additions

Signed-off-by: Jason Wen <haibin.wen3@gmail.com>

* Don't miss this

Signed-off-by: Jason Wen <haibin.wen3@gmail.com>

* someday

Signed-off-by: Jason Wen <haibin.wen3@gmail.com>

* No longer needed

Signed-off-by: Jason Wen <haibin.wen3@gmail.com>

* Take it out

Signed-off-by: Jason Wen <haibin.wen3@gmail.com>

* Less sunny

Signed-off-by: Jason Wen <haibin.wen3@gmail.com>

---------

Signed-off-by: Jason Wen <haibin.wen3@gmail.com>
Co-authored-by: Jason Wen <47793918+sunnyhaibin@users.noreply.github.com>
Co-authored-by: Jason Wen <haibin.wen3@gmail.com>

* Update HOW-TOS.md

* Simplify README installation instructions

Consolidated the installation command for the `release-c3` branch and removed redundant instructions for unsupported comma two. Also updated the How-To, removing the old branch that caused a huge size on the repo.

* Remove comma two installation instructions

This update cleans up the README by removing outdated installation instructions for the comma two device. It makes the documentation more concise and focused on current requirements and devices.

---------

Signed-off-by: Jason Wen <haibin.wen3@gmail.com>
Co-authored-by: sunnyhaibin <haibin.wen3@gmail.com>
Co-authored-by: Brandon Bennett <56660362+bbennett80@users.noreply.github.com>
Co-authored-by: Jason Wen <47793918+sunnyhaibin@users.noreply.github.com>
Co-authored-by: tango2590 <78666662+tango2590@users.noreply.github.com>
Co-authored-by: Moodkiller <appleipodsrock@gmail.com>
2024-08-03 10:14:43 -04:00
Jason Wen
bdb733ddc9 car: Fix typo with ParamManager variable (#382) 2024-08-02 12:36:49 -04:00
DevTekVE
b63ef7b0bf Create codeql.yml 2024-08-02 18:35:44 +02:00
Jason Wen
09d1604b84 MADS: Honda: Fix PCM ACC disengage fault (#363)
* MADS: Honda: Fix PCM ACC disengage fault

* try this out

* honda only
2024-08-02 11:41:20 -04:00
Jason Wen
61f7690265 ci: Update build number on dev builds with Discord notification (#381) 2024-08-02 11:38:25 -04:00
John Belmonte
4cb7263dd6 Docs: Fix indentation of feature list (#379)
Fix indenting of feature list
2024-08-02 16:35:37 +02:00
DevTekVE
ef2331b5df ci: Prebuilt public branches and update build number (#380)
* fixing build number + forcing run to test

* Cleaning up and changing the process for the auto builds

* updating the logic for the extra verson identifier

* Return to default master-dev-c3

* if this is MR on gitlab, we also publish prebuilt on private gitlab for internal testing

* Silly formatting issue
2024-08-02 10:26:14 -04:00
Jason Wen
9be3925ee1 MADS: Hyundai: Independent control with LFA button (#362)
* MADS: HKG CAN-FD: Disallow cruise buttons to engage when pcmCruiseSpeed is off

* handle states properly

* this is better

* make sure main button is pressed

* oops flipped main

* same behavior

* handle cruise main button universally

* both

* not needed

* oops

* wtf how did i miss
2024-08-01 23:34:35 -04:00
Jason Wen
8d760272c7 car: Move all live param checks to ParamManger (#378)
car: Move all live param checks to ParamManger
2024-08-01 23:23:00 -04:00
Mathew Locoteta
22e0b4d597 Honda Longitudinal: Remove tuning from 4-CYL 9th Gen Accord (#359)
Remove ACC tuning from 9th Gen Accord

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2024-08-01 22:42:13 -04:00
Jason Wen
08afbd7cb5 car: Check params before car state is updated (#364)
* car: Check params before car state is updated

* read params in a thread instead

* initialize list

* Do this instead

* type hint

* ParamManager

* make them internal
2024-08-01 18:12:27 -04:00
DevTekVE
f311c8b1d7 No auto publish for dev-c3 or release-c3 2024-08-01 20:09:17 +02:00
DevTekVE
fb7076a042 Change remote 2024-08-01 18:28:15 +02:00
DevTekVE
cd0ee08763 Allow auto publishing of public prebuilts 2024-08-01 18:10:59 +02:00
DevTekVE
f7ab369d47 First attempt at mirroring to gitlab 2024-08-01 17:22:43 +02:00
Jason Wen
54d5281064 MADS: Map cruise main and lateral buttons to button events (#373)
* MADS: Map cruise main and lateral buttons to button events
* MADS: Map cruise main and lateral buttons to button events

* different style

* nah

(cherry picked from commit 4d7afe3a7b)

* reimplement
2024-08-01 10:26:27 -04:00
Jason Wen
fa3a0ba747 CI: Update prebuilt repository URL (#374) 2024-07-31 19:47:34 -04:00
Jason Wen
b3926faebb Revert "MADS: Map cruise main and lateral buttons to button events" (#372)
Revert "MADS: Map cruise main and lateral buttons to button events (#361)"

This reverts commit 4d7afe3a7b.
2024-07-31 18:41:17 -04:00
DevTekVE
9810b10c49 [SL] Enable sunnylink by default (#366)
Enable Sunnylink by default

Sunnylink was previously conditionally enabled based on build metadata. This change ensures that Sunnylink is enabled by default, facilitating immediate access for all builds.
2024-07-31 10:31:51 -04:00
Jason Wen
4d7afe3a7b MADS: Map cruise main and lateral buttons to button events (#361)
* MADS: Map cruise main and lateral buttons to button events

* different style

* nah
2024-07-30 10:58:35 -04:00
Jason Wen
4e237e59a5 Translations: Add untranslated 2024-07-29 21:01:11 -04:00
Jason Wen
957e6666a5 License: Loosen restrictions 2024-07-29 18:27:40 -04:00
Jason Wen
1f770e1bea Submodule: Point to panda on GitHub 2024-07-29 15:25:44 -04:00
Jason Wen
eb1b0d7ddc Update public panda submodule 2024-07-29 06:55:29 -04:00
Jason Wen
447f76d9cf ui: Split sunnypilot into its own classes 2024-07-29 06:40:35 -04:00
Jason Wen
be72a8ed06 Revert "Toyota: Auto Brake Hold"
This reverts commit 15d94a01
2024-07-29 06:40:34 -04:00
Jason Wen
7e31333b36 Add Custom MIT License 2024-07-29 06:40:34 -04:00
DevTekVE
c26fd9d7c0 Add new parameters for enabling GitLab runner and Sunnylink uploader 2024-07-29 06:21:01 -04:00
Jason Wen
ca8c74bc0d MADS: Use modern button events parsing 2024-07-29 06:21:01 -04:00
Jason Wen
2f3d999c67 ui: Lead car chevron: Time to Lead Car 2024-07-29 06:21:01 -04:00
Jason Wen
05536bf439 Driving Model Selector v5: Bug fixes 2024-07-29 06:21:01 -04:00
Jaosn Wen
e994c2cb96 Scons: Split sunnypilot/Sconscript 2024-07-29 06:20:37 -04:00
Jaosn Wen
fb04ddc9a1 Scons: Set SUNNYPILOT to CPPDEFINES 2024-07-29 06:20:37 -04:00
Jason Wen
1fb0cb59a6 Scons: Build sunnypilot elements with added GPG keys 2024-07-29 06:20:37 -04:00
DevTekVE
e24271aa2b Processor definition check for __APPLE__ has a typo on replay (#32930)
(cherry picked from commit 3c74ad145e)
2024-07-29 06:20:37 -04:00
Jason Wen
1a8170e839 Speed Limit Control: Gate behind longitudinal 2024-07-11 23:51:17 -04:00
Jason Wen
c1cd33dbc1 MADS: Fix extra gear check 2024-07-11 15:46:24 +00:00
DevTekVE
606fb2d7c9 sunnylink: disable log upload handler 2024-07-10 17:01:57 +00:00
Jason Wen
d9da6064c0 ui: Build mapsd in UBUNTU_FOCAL-based AGNOS 2024-07-10 11:04:46 -04:00
Jason Wen
ba12998986 ui: onroad: drawLead cleanup 2024-07-09 22:59:44 -04:00
Jason Wen
64a34f97aa Revert "remove nav apt dependencies (#32792)"
This reverts commit 9a084a73c5.
2024-07-08 09:13:37 -04:00
Jason Wen
a1dbcfd62b Revert "MADS: Honda Nidec: Fix enforce cruise cancel with stock PCM" 2024-07-08 03:38:29 +00:00
Jason Wen
b0b0e65ebc Bump submodules 2024-07-07 17:57:18 -04:00
Jason Wen
b455ea197b CarParam: set spFlags from platforms at init 2024-07-07 17:54:30 -04:00
Jason Wen
79ad7f1838 Update CHANGELOGS.md 2024-07-07 17:54:30 -04:00
Jason Wen
85e2589512 ui: Build navigation in UBUNTU_FOCAL-based AGNOS 2024-07-07 17:53:26 -04:00
Jason Wen
b33f8f33ca Models: Update default name 2024-07-07 17:53:26 -04:00
Jason Wen
81fb8b2883 FCR: sync with upstream supported car platforms 2024-07-07 17:53:26 -04:00
Jason Wen
f3729d95ff Clion: Build scripts updates 2024-07-07 17:53:26 -04:00
Jason Wen
b5227c0a06 Driving Model Selector v5 2024-07-07 17:53:26 -04:00
Adeeb Shihadeh
d3cb0d24c4 Sync: sunnypilot/sunnypilot:master into sunnypilot/openpilot-special:master-priv 2024-07-07 10:15:50 -04:00
Jason Wen
0669fe85e8 Revert "Toyota: remove smartDSU support (#32777)"
This reverts commit cb63f101ca.
2024-07-06 22:49:31 -04:00
Jason Wen
b86f7db97d Revert "remove navigation (#32773)"
This reverts commit e491c9d9
2024-07-06 22:44:27 -04:00
Jason Wen
e6d56ac974 Revert "remove mapbox references (#32811)"
This reverts commit bccccde568.
2024-07-06 22:42:53 -04:00
Jason Wen
a0e5ead8b0 Revert "ui: remove map & navigation related code (#32836)"
This reverts commit 669553aa
2024-07-06 22:42:44 -04:00
Jason Wen
11f0da4aa9 Manager: Add Update button when Traceback is displayed 2024-07-03 04:40:59 +00:00
Jason Wen
f3a546132c ui: Onroad Settings: Wider panel 2024-07-02 01:08:20 -04:00
rav4 kumar
e8df8fad00 Longitudinal: Acceleration Personality 2024-07-02 04:45:18 +00:00
rav4 kumar
ca202c3c4a Longitudinal: Dynamic Personality 2024-07-02 04:15:20 +00:00
Jason Wen
661b02de87 ui: Driving Personality: Updated mode names 2024-07-02 00:05:23 -04:00
rav4 kumar
46c1362511 Toyota: Automatic Door Locking and Unlocking 2024-07-01 20:16:40 +00:00
rav4 kumar
15d94a017d Toyota: Auto Brake Hold 2024-07-01 19:45:30 +00:00
Jason Wen
de8da6f41f Driving Personality: Use controlsStateSP properly 2024-07-01 15:42:29 -04:00
Jason Wen
86446a8e42 ui: Onroad Settings: Parse DLP availability 2024-07-01 15:29:52 -04:00
rav4 kumar
e5665613cb Toyota Longitudinal: New TSS2 Tuning 2024-07-01 18:54:03 +00:00
rav4 kumar
9097997b76 Toyota: Enhance BSM support 2024-07-01 18:50:12 +00:00
Jason Wen
c44f915df8 Bump submodules 2024-07-01 14:39:16 -04:00
Jason Wen
25d265e5de Bump submodules 2024-07-01 09:20:07 -04:00
Jason Wen
46196862fb Bump submodules 2024-06-30 23:27:09 -04:00
Jason Wen
5c20e7f01a Bump submodules 2024-06-30 22:26:45 -04:00
Jason Wen
8db1ea7bcd Sync: sunnypilot/sunnypilot:master into sunnypilot/openpilot-special:master-priv 2024-06-30 17:02:44 -04:00
Jason Wen
d51c2ad6f5 ui: Fix navigation path not updating the correct color 2024-06-29 15:16:28 +00:00
Jason Wen
6ebeeff1b3 ui: Fix onroad bottom row buttons positions with RHD detection 2024-06-29 15:15:10 +00:00
DevTekVE
2e39c96496 [Sunnylink] hotfix for boot registration 2024-06-28 23:35:10 +00:00
Jason Wen
3442e8b65f MADS: Fix Disengage on Accelerator Pedal not disengaging properly 2024-06-27 04:28:13 +00:00
Jason Wen
afa97df945 Remove Screen Recorder 2024-06-24 18:56:36 -04:00
Jason Wen
11baf724c0 Update CHANGELOGS.md 2024-06-24 18:19:53 -04:00
Jason Wen
c10791b67b HKG: Car Port for Kia Ceed PHEV Non-SCC 2022 2024-06-24 22:17:43 +00:00
Jason Wen
bd1dbb18b7 Sync: sunnypilot/sunnypilot:master into sunnypilot/openpilot-special:master-priv 2024-06-24 18:06:31 -04:00
Jason Wen
ed84fb1f6f FCR: sync with upstream supported car platforms 2024-06-24 16:49:08 -04:00
Jason Wen
6c429dca06 Sync: sunnypilot/sunnypilot:master into sunnypilot/openpilot-special:master-priv 2024-06-24 16:29:37 -04:00
DevTekVE
9c34635fda [sunnylink] Refactor sunnylink registration process and more resiliency 2024-06-22 19:06:17 +00:00
Jason Wen
2b6bfe32f4 Custom Stock Longitudinal ControL: Volkswagen: Fix missing bus argument 2024-06-16 19:32:10 -04:00
Jason Wen
8e9576543f Sync: sunnypilot/sunnypilot:master into sunnypilot/openpilot-special:master-priv 2024-06-16 14:22:10 -04:00
DevTekVE
43d9030f33 Sunnylink disabled by default 2024-06-16 17:59:19 +00:00
Jason Wen
dc9b652682 Sentry: Update fingerprinting events 2024-06-14 21:19:51 +00:00
DevTekVE
d78948ea6e Add 'allow_failure: false' to publish script in .gitlab-ci.yml 2024-06-14 15:32:11 +00:00
Jason Wen
a72ebe18be Release: Add all DBC to release files 2024-06-14 09:19:26 -04:00
Jason Wen
1f33f51ace [sunnylink] Optimize platform checking in xattr_cache 2024-06-14 12:01:24 +00:00
Jason Wen
d870eb2a27 Lateral Plan: Desire cereal fixes 2024-06-14 07:45:11 -04:00
Jason Wen
6c8d80a7d5 Sync: sunnypilot/sunnypilot:master into sunnypilot/openpilot-special:master-priv 2024-06-13 17:31:07 -04:00
DevTekVE
68a82a48e6 [sunnylink] Set default value for SunnylinkDongleId and small fixes 2024-06-13 21:10:14 +00:00
DevTekVE
82c67c87ad [sunnylink] Better network management 2024-06-13 17:01:39 +00:00
Jason Wen
40d9b8c333 ui: Disallow pairing QR code generation with empty sunnylink dongle ID 2024-06-13 16:57:34 +00:00
Jason Wen
85d069044a ui: sunnypilot Terms of Service 2024-06-13 16:53:16 +00:00
Jason Wen
799488573a Update CHANGELOGS.md 2024-06-13 01:02:55 -04:00
Jason Wen
c55d11a865 Sync: sunnypilot/sunnypilot:master into sunnypilot/openpilot-special:master-priv 2024-06-12 21:43:05 -04:00
Jason Wen
59711afcd4 Update CHANGELOGS.md 2024-06-12 16:21:43 -04:00
Jason Wen
aae38ac5ab GitLab Pipelines: Add script for syncing LFS between comma and sunnypilot
This commit adds a new script, 'sync-lfs.sh'. This script assists by syncing the git large file storage (LFS) system. It backs up the current LFS configuration, uses the comma-separated configuration for operations like fetch and pull, and then restores the original configuration before pushing to the origin's main branch.
2024-06-12 16:21:43 -04:00
Jason Wen
524d7b73f9 Sync: sunnypilot/panda:master into sunnypilot/panda-special:master-priv 2024-06-12 16:21:36 -04:00
DevTekVE
1004730750 [sunnylink] Add sunnylink_uploader to process_config and implement uploader 2024-06-11 07:21:45 +00:00
DevTekVE
2b0dbb4e8e [sunnylink] Swaglogs to cloudwatch Enable log_handler in sunnylinkd.py 2024-06-11 07:19:54 +00:00
DevTekVE
5030860ab8 [sunnylink] Bugfixes like sidebar & improved logging for error troubleshoot 2024-06-11 06:52:11 +00:00
Jason Wen
e4f6e12786 Simulator: Refactor hardcoded path crashing PC runs 2024-06-07 22:59:54 +00:00
Jason Wen
111d8a5a54 Toyota: Fix platform naming with comma Pedal 2024-06-03 15:36:21 -04:00
Jason Wen
2c0ab40c82 Controls: Customizable Pause Lateral Speed 2024-05-31 23:01:31 +00:00
Jason Wen
0166f21568 ui: V-TSC: Update at 20 Hz 2024-05-31 22:58:01 +00:00
Jason Wen
37223889e2 Sentry: Add dongle ID to uploaded bootlog 2024-05-31 22:55:35 +00:00
Jason Wen
57b31abaa8 Volkswagen: Support for distance button hold to toggle between Chill & Experimental Mode 2024-05-30 23:38:36 -04:00
Jason Wen
1dc145c628 Sync: sunnypilot/sunnypilot:master into sunnypilot/openpilot-special:master-priv 2024-05-30 14:34:12 -04:00
Jason Wen
d8595b63e8 Auto Lane Change: Add option to disable lane change 2024-05-30 02:42:11 +00:00
Jason Wen
fff3c30ce5 SPOptionControl: Dim button if the option cannot be adjusted 2024-05-30 02:40:24 +00:00
Jason Wen
5351420a72 Merge branch 'master' into master-priv 2024-05-29 00:13:00 -04:00
Jason Wen
ee2f721841 Update CHANGELOGS.md 2024-05-29 00:11:22 -04:00
DevTekVE
b52348bf40 Bump to 0.9.6.2 2024-05-28 22:59:45 -04:00
DevTekVE
23742d046f Disable Screen Recorder 2024-05-28 02:26:26 +00:00
Jason Wen
0fb264377d Revert "SP-35: Driving Model Selector: Reset all related params if branches/remote have changed" 2024-05-27 03:45:11 +00:00
Jason Wen
04925ab879 ui: ButtonParamControl: Only reset to 0 if the value is less than 0 2024-05-24 02:40:56 -04:00
DevTekVE
30b1180a3b SP-72: sunnylink: Add sunnylink status to Sidebar UI 2024-05-24 06:26:28 +00:00
Jason Wen
0953fb6bf2 Hyundai CAN Longitudinal: Lenient parsing for auto-enabled radar configs 2024-05-24 06:22:20 +00:00
Jason Wen
3f7bf0c167 Params: Fix for SP-35 2024-05-24 01:02:27 -04:00
DevTekVE
55e271be71 mapd: Bump to v1.9.0 2024-05-24 04:38:14 +00:00
Jason Wen
86bec171b0 Params: Add BACKUP to Cython 2024-05-24 00:30:49 -04:00
Jason Wen
1d2ff881b0 SP-35: Driving Model Selector: Reset all related params if branches/remote have changed 2024-05-24 00:16:57 -04:00
Jason Wen
407dfd0d6b Revert "SP-35: Driving Model Selector: Reset all related params if branches/remote have changed" 2024-05-24 04:13:30 +00:00
DevTekVE
e78ae2c140 Driving Model Selector: Introduce ModelCapabilities class for model feature handling 2024-05-23 21:39:28 +00:00
DevTekVE
1b10cc8575 Driving Model Selector: Improve progress display for model downloads 2024-05-23 17:59:37 +00:00
Jason Wen
9d82d128ec SP-35: Driving Model Selector: Reset all related params if branches/remote have changed 2024-05-23 17:39:58 +00:00
Jason Wen
b77d0809bc ui: ButtonParamControl: Handle out of bound param 2024-05-23 17:34:29 +00:00
DevTekVE
16706bda9c Update model generation conditions in modeld.py and map.cc 2024-05-19 19:23:32 +00:00
DevTekVE
21feff5457 Refactor model generation condition in modeld.py 2024-05-18 18:53:16 +00:00
DevTekVE
dcabd306c7 Add default values for DrivingModel parameters 2024-05-18 18:52:51 +00:00
Jason Wen
136fecf86b SP-123: Hyundai CAN Longitudinal: Auto-enable radar tracks on platforms with Mando radar 2024-05-18 04:02:16 +00:00
Jason Wen
42818ba95b Sentry: Add sunnylink_dongle_id tag 2024-05-18 03:59:26 +00:00
Jason Wen
6299b2070d Update CHANGELOGS.md 2024-05-17 20:03:45 -04:00
Jason Wen
7c42ec8b1e SP-120: ui: Fix "Customize Speed Limit Control" submenu button visibility 2024-05-17 23:51:10 +00:00
Jason Wen
b5c66e193c Models: Update default name 2024-05-17 19:38:08 -04:00
Jason Wen
3a705a0e1c Volkswagen MQB: Non-ACC fixes with upstream merges 2024-05-17 13:03:37 -04:00
Jason Wen
264788fb4a Manager: Initialize SidebarTemperatureOptions 2024-05-17 16:52:13 +00:00
DevTekVE
b471da8975 Config Backup: Remove sponsor check for restore 2024-05-17 16:41:38 +00:00
Jason Wen
27f495e5e7 NoO: Only start processes if NoO-enabled models are selected 2024-05-17 14:34:03 +00:00
Jason Wen
4242c21c52 Honda Platform: Remove redundant code 2024-05-17 14:32:25 +00:00
Jason Wen
9842d68f4c ui: Force offroad from settings when the car is on 2024-05-17 06:00:29 +00:00
Jason Wen
7a286d2f52 Controlsd: Remove unused code and leadDistanceBar parsing with SP values 2024-05-17 04:57:44 +00:00
Jason Wen
0b8262175f Hyundai CAN-FD Longitudinal: Parse lead info for camera-based SCC platforms 2024-05-17 04:48:46 +00:00
Jason Wen
0d6c95dadc SP-121: Platforms: Update old platform names referenced in different features 2024-05-16 23:41:04 -04:00
Jason Wen
8261a71d67 Update CHANGELOGS.md 2024-05-16 23:05:50 -04:00
Jason Wen
bb41d2e386 CSLC: Hyundai: Fix upstream conflicts 2024-05-16 22:22:21 -04:00
Jason Wen
0a6bc53fc2 Revert "Longitudinal: Use upstream button timer to toggle between Chill & Experimental Mode"
This reverts commit d959c43284.
2024-05-16 12:45:05 -04:00
Jason Wen
2efdba4daf Update CHANGELOGS.md 2024-05-16 01:31:44 -04:00
Jason Wen
d959c43284 Longitudinal: Use upstream button timer to toggle between Chill & Experimental Mode 2024-05-16 00:12:17 -04:00
Jason Wen
755c39b2fd Revert "[$100 bounty] mapsd: switch to static render mode (#32118)"
This reverts commit 3c69fcddc8.
2024-05-15 22:25:53 -04:00
DevTekVE
1c0bf18084 Refactor manage_athenad to make it more generic 2024-05-15 22:25:45 -04:00
Jason Wen
e1e26c6b4f NNLC: Rename to new platform names and remove EPS-specific fits for now 2024-05-15 22:25:42 -04:00
Jason Wen
bbc79f1798 Merge branch 'master' into SP-59-sync-priv-20240507 2024-05-15 22:25:40 -04:00
Jason Wen
250afef443 Merge branch 'master' into SP-59-sync-priv-20240507
# Conflicts:
#	panda
#	release/build_release.sh
#	selfdrive/car/volkswagen/interface.py
2024-05-15 16:04:19 -04:00
Jason Wen
f5171c34a9 Bump panda 2024-05-09 15:48:47 -04:00
Jason Wen
8b02be74f9 Merge branch 'master' into SP-59-sync-priv-20240507 2024-05-09 15:48:40 -04:00
Jason Wen
9e3f57d53e Merge branch 'master' into SP-59-sync-priv-20240507 2024-05-09 15:48:29 -04:00
Jason Wen
11351823ef GAC: Remove from sunnypilot 2024-05-07 04:05:11 -04:00
DevTekVE
c7ade243a9 Subaru: Increase RPM Limit (#32299) 2024-04-30 20:33:01 +00:00
Jason Wen
1940ef7480 ui: Dev UI: Bearing Angle fixes 2024-04-17 23:52:00 -04:00
Jason Wen
3c6e0c300d ui: Dev UI: Desired Steering Angle changes 2024-04-17 23:47:51 -04:00
Jason Wen
ba0cc91318 ui: Chevron: Round distance to whole number 2024-04-17 23:28:32 -04:00
DevTekVE
39bcc41f9f [sunnylink] Integrate debug logging and revise retry mechanism in sunnylinkd.py 2024-04-15 19:24:40 +00:00
DevTekVE
fe023d946f Add new thread for handling sunnylink queue 2024-04-14 10:11:08 +00:00
DevTekVE
53f50e53ef Add easter egg for specific Sunnylink device ID 2024-04-13 17:40:17 +00:00
Jason Wen
0e237f459c sunnylink: Sync Settings 2024-04-13 17:22:33 +00:00
DevTekVE
900e312687 Add request_queued method to SunnylinkApi 2024-04-13 17:21:07 +00:00
Jason Wen
397bcf03a5 ui: Reset Access Tokens for all Map Services 2024-04-12 04:07:07 +00:00
DevTekVE
a4806c4c2a sunnylink: Update backup attributes for GitHub and SSH keys 2024-04-11 16:12:04 +00:00
DevTekVE
f1dbb9a1ce LFS: Move to sunnypilot's public GitLab 2024-04-11 15:41:59 +00:00
Jason Wen
957071fd42 Ngrok: Add toggle to start/stop service manually 2024-04-11 05:05:37 +00:00
Jason Wen
2cbe1a7ec6 Toyota sdsu upstream hack 2024-04-08 21:32:53 +00:00
DevTekVE
2d705e826c sunnylink: Full sunnylink update with pairing, athena and more 2024-04-08 21:15:18 +00:00
Jason Wen
e1c4ab01a9 Clion: Some updates 2024-04-08 14:18:57 -04:00
Jason Wen
271968e763 ui: Only build installers on comma devices 2024-04-08 14:15:16 -04:00
DevTekVE
913f32a15c ui: Driving Model Selector description fixes 2024-04-06 16:18:29 +00:00
DevTekVE
7e3f8091c2 ui: Network refresh button 2024-04-06 16:17:21 +00:00
Jason Wen
6a8f434627 Map: Add back enabled for navigation path color change 2024-04-06 09:25:36 -04:00
Jason Wen
2d73059d79 sunnylink: Set User Agent to sunnypilot 2024-04-06 13:23:34 +00:00
DevTekVE
919f3d1c74 Lots of stabilization improvments for the model fetcher 2024-04-06 11:35:44 +00:00
DevTekVE
8acd104c65 specify base image 2024-04-01 18:14:42 +02:00
Jason Wen
746d2b750c ui: Developer UI cleanup 2024-03-25 18:28:22 +00:00
DevTekVE
cab71cc388 sunnylink: Remov unicode header during HTTP requests 2024-03-14 16:23:52 +00:00
Jason Wen
1f154928dc Translations: Prepare for sunnypilot custom texts 2024-03-14 04:39:33 +00:00
Jason Wen
5e775a1e66 Hyundai CAN: Fix Navi_HU check for cars that do not have this signal 2024-03-13 22:33:36 +00:00
Jason Wen
ded3389721 FCA: Fix upstream merge conflicts 2024-03-13 22:32:22 +00:00
Jason Wen
5b9a397078 sunnylink: Config Backup 2024-03-13 19:50:00 +00:00
DevTekVE
28efb5388b sunnylink: Registration API 2024-03-13 18:29:58 +00:00
Jason Wen
e2d6a9ab3e Params: Do not backup Driving Model Selector params 2024-03-13 13:22:23 -04:00
Jason Wen
920d4cdcc3 Remove PNG and WAV from LFS 2024-03-12 21:13:47 -04:00
Jason Wen
7dc9d336b5 ui: Lead car chevron improvements 2024-03-12 14:55:25 +00:00
Jason Wen
0daa1e846b Map: Use latActive and longActive for navigation path color change 2024-03-12 00:06:02 -04:00
Jason Wen
ef727550a9 Params: BACKUP ParamKeyType for sunnylink's Settings Backup 2024-03-11 14:28:55 -04:00
Jason Wen
7bfd2b81e1 Toyota: Fix upstream merge conflicts 2024-03-07 15:31:46 -05:00
Jason Wen
95c748b9f9 M-TSC: Re-enable in release 2024-03-04 22:41:31 -05:00
Jason Wen
95b224c155 NNLC: Add HONDA CLARITY 2018 2024-02-29 02:32:55 +00:00
Jason Wen
2d6dbc1275 Event: Add additional GitHub path for startup event check 2024-02-28 17:20:58 -05:00
Jason Wen
fe1dc7b8de Merge branch 'master' into dev-priv/master-priv 2024-02-28 11:40:59 -05:00
Jason Wen
540431a06b Models: Update default name 2024-02-28 11:36:56 -05:00
Jason Wen
ce4055ced6 FCR: Implement during the fingerprint stage 2024-02-27 21:57:14 -05:00
Jason Wen
dbaba022a2 Fix upstream merge conflicts 2024-02-27 21:28:12 -05:00
Jason Wen
f588a0367b Merge branch 'master' into sync-priv-20240227
# Conflicts:
#	panda
#	selfdrive/car/chrysler/values.py
#	selfdrive/car/ford/carstate.py
#	selfdrive/car/ford/interface.py
#	selfdrive/car/ford/values.py
#	selfdrive/car/interfaces.py
#	selfdrive/car/nissan/values.py
#	selfdrive/car/subaru/interface.py
#	selfdrive/car/volkswagen/interface.py
#	selfdrive/car/volkswagen/values.py
#	selfdrive/controls/radard.py
#	selfdrive/manager/process.py
#	selfdrive/modeld/modeld.py
2024-02-27 21:22:16 -05:00
Jason Wen
761b16d8f5 Merge branch 'master' into dev-priv/master-priv 2024-02-27 10:31:13 -05:00
Jason Wen
d0911f62e5 Merge branch 'master' into dev-priv/master-priv 2024-02-24 20:41:56 -05:00
Jason Wen
fe1e34dc21 Merge branch 'master' into dev-priv/master-priv 2024-02-24 09:48:26 -05:00
Jason Wen
df79d31a6b ui: Remove device ambient temperature from Sidebar Temperature selector 2024-02-24 09:41:01 -05:00
Jason Wen
8eb043ec7d Merge branch 'master' into sync-priv-20240220
# Conflicts:
#	CHANGELOGS.md
#	panda
#	selfdrive/car/toyota/interface.py
#	selfdrive/controls/controlsd.py
#	selfdrive/manager/manager.py
#	selfdrive/modeld/fill_model_msg.py
#	selfdrive/modeld/modeld.py
2024-02-24 09:35:16 -05:00
Jason Wen
5e16cba5bb MADS: Enforce pedalPressed when MADS is disabled 2024-02-20 14:22:26 +00:00
Jason Wen
f87e3dc433 ui: Update manual brightness in every loop 2024-02-20 09:05:56 -05:00
Jason Wen
df87f45190 ESCC: Forward FCA11 and FCA12 for all stock FCW/AEB commands 2024-02-19 17:36:55 +00:00
Jason Wen
6336a51cb5 Screen Recorder: Fix blank video files 2024-02-19 17:17:39 +00:00
Jason Wen
761f6eb37f Hyundai non-SCC: Fix upstream merge conflict 2024-02-18 10:22:11 -05:00
Jason Wen
d68905831b FCR: Reset cached param to sync with upstream conflicts 2024-02-17 23:52:08 +00:00
Jason Wen
25246b1b71 Fleet Manager: Fix Screen Recorder list generation 2024-02-17 16:30:53 -05:00
Jason Wen
8cbfae6eff ui: Speed Limit Assist: Fix Speed Limit Warning button behavior 2024-02-17 21:01:02 +00:00
Jason Wen
5989674a11 DEC: Use modelV2.navEnabled for navigation instruction checks 2024-02-17 20:55:31 +00:00
Jason Wen
45f21a844a Fix upstream merge conflicts 2024-02-16 15:06:27 -05:00
Jason Wen
18551612e9 FCR: sync with upstream supported car platforms 2024-02-16 08:50:12 -05:00
Jason Wen
31f1dc1ffd Update CHANGELOGS.md 2024-02-16 08:47:58 -05:00
Jason Wen
47caf0e0a4 Merge branch 'master' into sync-priv-20240216
# Conflicts:
#	panda
#	release/files_common
#	selfdrive/car/hyundai/interface.py
#	selfdrive/controls/controlsd.py
#	selfdrive/controls/plannerd.py
#	selfdrive/sentry.py
#	system/version.py
2024-02-16 08:47:13 -05:00
Jason Wen
47e165dd16 DEC: Update logic from dragonpilot-community/dragonpilot:beta3 2024-02-16 13:07:01 +00:00
Jason Wen
b4a6486380 ui: Onroad optimization 2024-02-16 13:05:41 +00:00
Jason Wen
9b48a5667c ui: Add toggles for Feature Status and Onroad Settings 2024-02-16 12:47:06 +00:00
Jason Wen
efd6c7554b ui: Feature Status: Fix SLC stuck in "OFF" 2024-02-16 12:42:10 +00:00
Jason Wen
0a737ba343 MADS: Display pre-enable events with MADS engaged 2024-02-16 12:41:07 +00:00
Jason Wen
170c63fbc5 FCR: Add description to generate LEAF_IC in Nissan FCR 2024-02-15 11:40:23 -05:00
Miguel Fernandez
ab6dd22f71 Merge branch 'master-priv' into sync-priv-20240201 2024-02-14 20:09:13 +01:00
Jason Wen
f17ebeeef6 Torque: Remove additional files 2024-02-14 14:02:55 -05:00
Miguel Fernandez
57be1f4c5f PIPELINE: hardening pipeline - excluding ui.h from prebuilts 2024-02-14 19:40:40 +01:00
Jason Wen
071e12e527 NNLC: Slight fixes 2024-02-14 13:08:54 -05:00
DevTekVE
a0dd4d7359 Adding sanity checking and using a different method for the actual artifact being built 2024-02-14 17:51:26 +00:00
Jason Wen
17acb0dc49 Driving Model Selector: Create directory if does not exist 2024-02-13 17:57:24 -05:00
Jason Wen
896bd18c0d Driving Model Selector: Handle default model name display 2024-02-13 15:39:03 -05:00
Jason Wen
d2648d42f9 Driving Model Selector: Handle custom navmodel 2024-02-13 15:34:04 -05:00
Jason Wen
0e90bf751b Update CHANGELOGS.md 2024-02-13 13:36:17 -05:00
Jason Wen
9413bb5952 Update CHANGELOGS.md 2024-02-13 08:47:10 -05:00
Jason Wen
019257eb60 controlsd: Fix upstream conflicts 2024-02-12 21:16:48 -05:00
Jason Wen
5ea1d4416b Driving Model Selector: Handle default model loading 2024-02-12 21:05:49 -05:00
Jason Wen
f44a04056e FCR: sync with upstream supported car platforms 2024-02-12 21:05:49 -05:00
Jason Wen
09fe96daf7 Update CHANGELOGS.md 2024-02-12 21:05:49 -05:00
Jason Wen
7f540311a9 Longitudinal: Fix planner not getting up to set speed 2024-02-12 19:52:03 -05:00
Jason Wen
672a4b3c74 Revert "Longitudinal: Fix planner not getting up to set speed"
This reverts commit 374a284d1c.
2024-02-12 19:51:05 -05:00
Jason Wen
c9bc99f083 Custom Offsets: Only available for gen1 driving models 2024-02-12 19:47:27 -05:00
Jason Wen
374a284d1c Longitudinal: Fix planner not getting up to set speed 2024-02-13 00:34:55 +00:00
Jason Wen
51a5e92212 Driving Model Selector: Always send modelV2SP 2024-02-12 19:20:53 -05:00
Jason Wen
760a3fe86d Quiet Drive: Check param every 50 frames (2.5 seconds) 2024-02-12 19:16:41 -05:00
Jason Wen
e1721bfd6e Update driving model name 2024-02-12 19:11:19 -05:00
Jason Wen
e74a3cf9d0 DLP: Show reason of incompatibility 2024-02-12 19:10:48 -05:00
Jason Wen
74c3c72ba0 Driving Model Selector: Can't import Params on PC 2024-02-12 16:00:32 -05:00
Jason Wen
90e5e237a8 Revert "NNLC: Nuked for now"
This reverts commit 3c82625546.
2024-02-12 12:07:39 -05:00
DevTekVE
4e0708c20d gpxd out again 2024-02-12 16:19:32 +00:00
DevTekVE
ecfb60feff add hash check and validation for model download 2024-02-12 12:07:42 +00:00
Jason Wen
d6abb30453 Driving Model Selector: Fix lag? 2024-02-12 00:26:10 -05:00
Jason Wen
2845581391 Revert "MADS: Don't forget this"
This reverts commit 22ddc78dc7.
2024-02-11 17:29:27 -05:00
Jason Wen
4994372a5d Driving Model Selector: Do this 2024-02-11 17:26:00 -05:00
Jason Wen
22ddc78dc7 MADS: Don't forget this 2024-02-11 17:24:45 -05:00
Jason Wen
3c82625546 NNLC: Nuked for now 2024-02-11 17:03:48 -05:00
Jason Wen
b977a52f92 NNLC: Turn this shit off 2024-02-11 16:46:43 -05:00
Jason Wen
43fd2add8b NNLC: Small fix 2024-02-11 16:27:29 -05:00
Jason Wen
6f4ef8ef1e Revert "NNLC: Fixes"
This reverts commit 852200f4d0.
2024-02-11 16:27:05 -05:00
Jason Wen
8bf9a0e738 Revert "NNLC: Comment out duplicate"
This reverts commit 5a88fbc2ae.
2024-02-11 16:27:04 -05:00
Jason Wen
021fd4f04e Controlsd: Fix 2024-02-11 16:22:20 -05:00
Jason Wen
5a88fbc2ae NNLC: Comment out duplicate 2024-02-11 15:51:03 -05:00
Jason Wen
852200f4d0 NNLC: Fixes 2024-02-11 15:28:49 -05:00
Jason Wen
913a2cc72c Driving Model Selector: Cleanup 2024-02-11 13:36:46 -05:00
DevTekVE
9a62ad78e5 Improving the nav model download process 2024-02-11 18:10:46 +00:00
Jason Wen
05340ffb7e Driving Model Selector: Add TODO 2024-02-11 13:04:44 -05:00
Jason Wen
8e82b3abd9 Driving Model Selector: Handle dynamic dictionary inputs 2024-02-11 12:30:32 -05:00
Jason Wen
1299c51924 Driving Model Selector: Handle dynamic dictionary inputs 2024-02-11 11:33:02 -05:00
Jason Wen
46c7ff26a8 How did I miss this jesus 2024-02-09 16:06:18 -05:00
Jason Wen
d914617ee0 Driving Model Selector: Some fix 2024-02-09 16:03:51 -05:00
Jason Wen
8dda347bf2 Driving Model Selector: Try converting to int 2024-02-09 15:36:58 -05:00
Jason Wen
814ed8e32f Driving Model Selector: More more fixes 2024-02-09 15:11:28 -05:00
Jason Wen
84c6f86805 Driving Model Selector: More fixes 2024-02-09 14:57:45 -05:00
Jason Wen
0850fcfb22 Driving Model Selector: Fix 2024-02-09 14:53:10 -05:00
Jason Wen
a2dd3de3ab Lateral Plan: More fixes 2024-02-09 14:41:49 -05:00
Jason Wen
0d290529d7 Lateral Plan: More fix 2024-02-09 14:38:03 -05:00
Jason Wen
085f17c6c8 Lateral Plan: Fix 2024-02-09 14:36:59 -05:00
Jason Wen
cd3e1db875 NNLC: Fix upstream conflict 2024-02-09 14:22:17 -05:00
Jason Wen
e133647123 Dynamic Lane Profile: Only allow for gen1 driving models 2024-02-09 13:38:31 -05:00
Jason Wen
3d4edc7289 Driving Model Selector: Handle nav models dynamically 2024-02-09 13:27:01 -05:00
Jason Wen
59d9c68196 Driving Model Selector: Navigation model support 2024-02-09 13:18:43 -05:00
Jason Wen
b7836aa04e ui: Onroad Settings Panel - add ENABLE_MAPS flag 2024-02-09 12:53:58 -05:00
DevTekVE
374b43b883 Merge remote-tracking branch 'origin/sync-priv-20240201' into sync-priv-20240201 2024-02-09 18:36:46 +01:00
DevTekVE
f40de9e1bd Fixing mac setup development environment 2024-02-09 18:35:09 +01:00
Jason Wen
1e5fdf3d1a Driving Model Selector: Model generation support 2024-02-09 09:54:10 -05:00
Jason Wen
eeab29969a Lateral Planner: Reimplement for legacy models 2024-02-09 01:00:10 -05:00
Jason Wen
e7d7189d21 Lateral Planner: Use new variable for useLaneLines 2024-02-08 12:05:01 -05:00
Jason Wen
78e8fc9623 Merge remote-tracking branch 'sunnypilot/sunnypilot/master' into sync-priv-20240201
# Conflicts:
#	panda
2024-02-08 11:56:08 -05:00
Jason Wen
75b38db870 Merge branch 'sync-20240201' into sync-priv-20240201 2024-02-07 22:49:01 -05:00
Jason Wen
ce64433dc9 MADS: Fix wrong variable name in init function 2024-01-03 12:21:48 -05:00
Jason Wen
059cf0f3a3 Torque: Subaru: Ignore paramsd valid checks 2023-12-27 20:08:36 +00:00
Jason Wen
10e82711df Merge branch 'master' into dev-priv/master-priv 2023-12-26 13:35:34 -05:00
Jason Wen
71adace06f MADS: Only allow altButton1 trigger if enabled 2023-12-26 02:00:59 +00:00
Jason Wen
519a3bf52c bump panda 2023-12-25 20:08:53 -05:00
Jason Wen
1b49d24db0 bump panda 2023-12-24 14:35:32 -05:00
Jason Wen
3f0c43c7a2 Merge branch 'master' into dev-priv/master-priv
# Conflicts:
#	CHANGELOGS.md
2023-12-24 13:30:21 -05:00
Jason Wen
4bdcb1f527 Merge branch 'master' into dev-priv/master-priv 2023-12-24 13:22:09 -05:00
Jason Wen
3ac37a2f20 Speed Limit Assist 2023-12-24 18:05:26 +00:00
Jason Wen
a4edd8d68d Driving Model Selector v2 2023-12-24 17:43:47 +00:00
Jason Wen
ace9b3e451 Toyota: Fix LKAS fault at max steering angle 2023-12-24 16:44:23 +00:00
Jason Wen
d54fd16ae3 DEC: Update logic from dragonpilot-community/dragonpilot:lp-dp-beta2 2023-12-24 16:43:31 +00:00
Jason Wen
4778efe4f6 ui: Feature Status: Revert "parse from cereal" 2023-12-24 16:42:23 +00:00
Jason Wen
1c662ff310 Sentry: Handle unofficial device dongle id 2023-12-24 16:41:39 +00:00
DevTekVE
488f3647d9 UI: only display waring if user chose a model 2023-12-24 16:14:33 +00:00
Jason Wen
d1efa4489c FCA: support steer to 0 with White Panda Mod on certain models 2023-12-24 16:09:55 +00:00
Jason Wen
81a42d9d29 FCA: Fix heartbit forward logic 2023-12-24 11:02:50 -05:00
Jason Wen
880d0c2af1 MADS: Add delay to CRUISE MAIN and non-forward gear 2023-12-24 15:59:11 +00:00
Jason Wen
70fd796e6d M-TSC: New implementation 2023-12-24 15:56:27 +00:00
Jason Wen
3de6b4365b Manager: Gate features behind non-release-c3 branches 2023-12-22 14:41:26 -05:00
Jason Wen
46cb955e33 NNLC: Update description 2023-12-20 06:14:34 +00:00
Jason Wen
de81acb040 ui: sunnypilot: slight refactor 2023-12-20 01:01:46 -05:00
DevTekVE
57dfee47b8 mapd: New implementation and remove deprecated libraries 2023-12-19 22:14:06 +00:00
Jason Wen
7cdb6bb45d SLC: Don't convert float NaN to integer 2023-12-16 08:06:23 +00:00
Jason Wen
00a31ce264 ui: Full Screen Navigation 2023-12-16 07:50:39 +00:00
Jason Wen
c313af5cd0 MADS: Honda Nidec: Fix enforce cruise cancel with stock PCM 2023-12-16 07:29:49 +00:00
Jason Wen
2ae85e71e7 ui: Add hideDescription slot in AbstractControl 2023-12-15 01:39:04 -05:00
Jason Wen
b054089137 ui: Add hideDescription slot 2023-12-15 01:33:24 -05:00
Jason Wen
f7a674550a Hyundai: Car Port for Bayon Non-SCC 2021 2023-12-15 03:22:12 +00:00
Jason Wen
4ff444a7d6 Toyota: ZSS: Re-enable and add safety checks 2023-12-14 18:55:20 +00:00
Jason Wen
55b87c4b13 DEC: Update logic from dragonpilot-community/dragonpilot:beta3 2023-12-14 18:54:11 +00:00
Jason Wen
0772ef2b8c CSLC: Hyundai CAN-FD: Disable for CRUISE_BUTTONS_ALT platforms 2023-12-12 10:43:25 -05:00
Jason Wen
bcf1736265 Sentry: Fix set_tag with route_name 2023-12-12 02:18:26 -05:00
Jason Wen
704577e22f V-TSC: Add conditions to allow engaging 2023-12-11 23:59:45 -05:00
Jason Wen
c6de841d79 ui: V-TSC: Only hide experimental button when debug UI is on 2023-12-11 02:35:30 -05:00
Jason Wen
8e84ebeadb V-TSC: New implementation 2023-12-10 23:18:34 +00:00
Jason Wen
a19c45d5a2 Hyundai CAN: Enable radar tracks for certain Sante Fe platforms at all times 2023-12-10 12:13:34 -05:00
Jason Wen
83a1c8d6a9 CI: Fix commit message for prebuilt branches 2023-12-09 19:58:28 -05:00
DevTekVE
f601c7be0b CI: test version differently 2023-12-10 01:14:14 +01:00
DevTekVE
75d2fbf22a CI: test version differently 2023-12-10 00:48:32 +01:00
Jason Wen
128390aadc Enhanced Speed Control: Remove acceleration solution 2023-12-09 23:36:37 +00:00
DevTekVE
9bb3844301 CI: Update VERSION extraction command in .gitlab-ci.yml
Refactored the command used to extract the version information in the .gitlab-ci.yml file. The new command targets the `#define COMMA_VERSION` line, going through 'common/version.h' and printing the version without quotation marks. This change affects both the "staging-c3" and "release-c3" branches.
2023-12-10 00:30:32 +01:00
DevTekVE
1073aecf79 Update version handling in GitLab CI configuration 2023-12-09 23:09:22 +00:00
Jason Wen
05f3074a79 Hyundai: CSLC: don't calculate counters manually for LEGACY_SAFETY_MODE_CAR 2023-12-09 22:55:43 +00:00
Jason Wen
a1aecf4ba4 Toyota: Temporary disable ZSS 2023-12-09 21:47:43 +00:00
Jason Wen
df7b56ff06 Honda: Bosch Civic changes with modified EPS 2023-12-09 21:40:34 +00:00
Jason Wen
e143d45c21 Sentry: Log params as attachment and new tags to startup event 2023-12-09 21:34:03 +00:00
Jason Wen
e13641080b Sentry: Cleanup redundant code 2023-12-09 19:37:30 +00:00
DevTekVE
002d0d10de CI: Unifying gitlab steps 2023-12-09 15:12:57 +00:00
Jason Wen
e19383d5f0 CI: Post notifications to Discord 2023-12-09 11:58:25 +00:00
Jason Wen
0959f34669 Merge branch 'master' into dev-priv/master-priv 2023-12-07 16:22:46 -05:00
Jason Wen
557728aa09 NNLC: Update event texts 2023-12-07 15:25:08 +00:00
Jason Wen
7b27ee2b91 Merge branch 'master' into dev-priv/master-priv 2023-12-06 23:23:43 -05:00
Jason Wen
5ab39133ec NNLC/NNFF: Better events and description handling 2023-12-07 04:09:25 +00:00
DevTekVE
2d870d1d8b Updating to pub github 2023-12-06 17:49:58 +00:00
DevTekVE
d50171d130 Add retry to default in GitLab CI config
This commit introduces a retry parameter under the default settings in .gitlab-ci.yml to improve the robustness of CI/CD pipeline. Additionally, an unnecessary whitespace has been removed from the file to maintain neat and clean code.
2023-12-06 17:05:58 +01:00
Jason Wen
84c7b3322a Volkswagen MQB: Car Port for CC Only platforms 2023-12-06 06:36:08 +00:00
DevTekVE
c48d1bee55 Update Gitlab Pipeline user configurations 2023-12-05 18:19:18 +00:00
DevTekVE
8c817a37e0 ci: Remove after_script from .gitlab-ci.yml 2023-12-05 07:54:04 +00:00
Jason Wen
6cee1edb2e Merge branch 'master' into dev-priv/master-priv
# Conflicts:
#	CHANGELOGS.md
2023-12-05 00:21:32 -05:00
Jason Wen
faa1ecbbbe Driving Model Selector 2023-12-05 05:15:30 +00:00
Jason Wen
f6977cc925 SLC: Properly handle previous setpoint updates 2023-12-04 22:36:18 -05:00
Jason Wen
6d42a7bf85 ui: Feature Status: parse from cereal 2023-12-04 04:25:06 +00:00
Jason Wen
448e71e584 Torque: Neural Network Lateral Controller (formerly NNFF) 2023-12-04 03:55:09 +00:00
Jason Wen
536d9f2fc3 MADS: Allow NoO in Chill Mode 2023-12-04 03:23:35 +00:00
Jason Wen
b7bb78723b Hyundai CAN Longitudinal: Enable radar tracks for certain Sante Fe platforms 2023-12-04 03:14:39 +00:00
DevTekVE
54f7ccab8c Add new JsonFetcher class in Sunnypilot 2023-12-02 10:29:37 +00:00
Jason Wen
2e3bddffa1 Sentry: Set user property for every event 2023-11-28 07:34:16 +00:00
Jason Wen
b0ac95a473 MADS: Volkswagen: Add delay to initial MADS engagement 2023-11-28 05:22:49 +00:00
Jason Wen
7b32df43f9 SLC: User Confirm: Convert to km/h when setting speed 2023-11-27 23:27:31 -05:00
Jason Wen
4bf4ad32da SLC: User Confirm: Remove temp active with opposite buttons 2023-11-27 14:34:35 -05:00
Jason Wen
7bd95fb749 SLC: Fix rounding mismatch with MPH 2023-11-27 19:32:24 +00:00
Jason Wen
ec748af4d0 Revert "SLC: Fix rounding mismatch with MPH" 2023-11-27 15:55:42 +00:00
Jason Wen
c2142cdaad ui: Feature Status: Sync SLC with Engage Mode 2023-11-26 20:26:53 +00:00
Jason Wen
c5e21314e0 SLC: Fix rounding mismatch with MPH 2023-11-26 20:11:58 +00:00
DevTekVE
ea5643afb1 Add ccflags option to SConstruct configuration 2023-11-25 07:40:04 +00:00
Jason Wen
6806fb83df Hyundai CAN Longitudinal: Set SP_CAMERA_SCC_LEAD flag with CAMERA_SCC_CAR 2023-11-24 23:31:22 -05:00
Jason Wen
3c834b7692 Hyundai CAN: Detect LKAS12 and set spFlags 2023-11-24 04:10:20 +00:00
Jason Wen
5671f65c1b Lane Change: Allow entering preLaneChange with Nudge while manually braking 2023-11-24 04:06:04 +00:00
Jason Wen
6192e75380 DEC: Only allow engage with Experimental Mode 2023-11-24 04:03:30 +00:00
DevTekVE
9a53a53fc5 Add External Tools configurations for Poetry SCons
The commit introduces a new XML file, tools/External Tools.xml, laying out configurations for several external tool commands using Poetry and SCons. These tools include options for building in debug, clean, and release operations, enhancing the development process.
2023-11-23 16:39:07 +01:00
Jason Wen
96a67d464a Merge branch 'master' into dev-priv/master-priv 2023-11-18 08:54:30 -05:00
Jason Wen
b028de02f2 Merge branch 'master' into dev-priv/master-priv 2023-11-17 22:47:52 -05:00
Jason Wen
413fba812a Merge branch 'master' into dev-priv/master-priv 2023-11-17 22:43:33 -05:00
Jason Wen
aae39f6bd5 Merge branch 'master' into dev-priv/master-priv 2023-11-14 01:54:43 -05:00
Jason Wen
5213aca6db SLC: User Confirmation State Machine 2023-11-14 06:25:23 +00:00
Jason Wen
b34089693f Revert "FCR: Reset cached param to sync with upstream conflicts" 2023-11-13 10:53:42 +00:00
Jason Wen
433a6320f6 Merge branch 'master' into dev-priv/master-priv 2023-11-12 17:03:12 -05:00
Jason Wen
99d542d0cc Merge branch 'master' into dev-priv/master-priv 2023-11-12 15:15:53 -05:00
Jason Wen
daafa7d63a Update CHANGELOGS.md 2023-11-12 13:55:36 -05:00
Jason Wen
4afb19c97e Sentry: Log error in Error Troubleshoot with only last 3 lines 2023-11-12 06:34:10 +00:00
Jason Wen
bce0dc3efa Update CHANGELOGS.md 2023-11-12 01:16:22 -05:00
Jason Wen
574ca41478 Update driving model name 2023-11-12 01:15:45 -05:00
Jason Wen
9465da083f Merge branch 'dev-priv/master-priv' into sync-priv-20231108 2023-11-12 01:06:57 -05:00
Jason Wen
9e00a2f066 Merge branch 'master' into sync-priv-20231108
# Conflicts:
#	panda
#	selfdrive/car/subaru/interface.py
#	selfdrive/locationd/torqued.py
2023-11-12 01:00:33 -05:00
Jason Wen
8a12b77748 omg we flipped the logic 2023-11-11 11:58:58 -05:00
Jason Wen
1349fa576e omg we flipped the logic 2023-11-11 11:53:05 -05:00
DevTekVE
29c65ff033 Dont create folder with sudo 2023-11-11 13:45:44 +01:00
DevTekVE
c073305bae Update build configurations for Poetry SCons
The build configurations for both Debug and Release modes have been updated to use the Poetry SCons tool. A new customTargets.xml file has been added to specify the build actions for Poetry SCons in Debug and Release targets.
2023-11-11 12:55:15 +01:00
DevTekVE
b0cb6bf0a4 Add new Build Release and Build Debug configurations
Two new run configurations for Build Release and Build Debug have been added. These configurations include specific options, like location of working directory and external build option. Each configuration includes a unique name and target name.
2023-11-11 12:38:16 +01:00
DevTekVE
050c38d0ab Merge remote-tracking branch 'origin/master-priv' into master-priv
# Conflicts:
#	release/ci/install_gitlab_runner.sh
2023-11-11 09:50:11 +01:00
DevTekVE
aad8cd295b Update GitLab runner scripts and add sudo permissions
The GitLab Runner installation and uninstallation scripts have been refined, including directory management improvements and user handling enhancements. The install script now exports the base directory for subprocess availability and validates script arguments presence. An uninstall script has been added for smoother user experience. Additionally, sudo permissions have been granted to the gitlab-runner user group in both scripts and the .gitlab-ci.yml file, enhancing workflow efficiency.
2023-11-11 09:47:58 +01:00
DevTekVE
bcf6cd8e1a Add sudo permissions to gitlab-runner
This update adds sudo permissions to the gitlab-runner user group. The .gitlab-ci.yml file has been altered to change user ownership of ${OUTPUT_DIR} in the after_script phase. In install_gitlab_runner.sh, we also add gitlab-runner to the sudo group and explicitly grant it NOPASSWD: ALL rights in the sudoers file.
2023-11-11 08:31:51 +01:00
DevTekVE
294b0ad038 Refactor driver view transform function 2023-11-09 19:15:20 +00:00
Jason Wen
783267ec29 Merge branch 'master' into sync-priv-20231108
# Conflicts:
#	panda
#	selfdrive/car/subaru/carcontroller.py
#	selfdrive/car/subaru/interface.py
#	selfdrive/controls/lib/lateral_planner.py
2023-11-08 16:41:32 -05:00
Jason Wen
741237f6e2 FCR: Reset cached param to sync with upstream conflicts 2023-11-07 20:05:37 +00:00
DevTekVE
5d2de35fc4 Refactor traffic signal update in Hyundai 2023-11-07 19:50:47 +00:00
Jason Wen
928528a13c bump cereal 2023-11-06 23:36:01 -05:00
Jason Wen
81bdfaf198 ui: Rearrange SLC related toggles 2023-11-06 23:07:34 -05:00
Jason Wen
e51063fb6e ui: Fix exceed speed limit warning conditions 2023-11-06 21:23:32 -05:00
Jason Wen
f2d6949402 ui: Speed Limit Warning 2023-11-06 21:56:05 +00:00
Jason Wen
8f2682022e ui: Speed limit cleanup 2023-11-06 21:40:03 +00:00
Jason Wen
d8faa2a6ea ui: SLC: Common description builder 2023-11-06 16:15:07 -05:00
Jason Wen
81acbe224f controlsd: Get minimum set speed in a method 2023-11-06 21:07:00 +00:00
Jason Wen
3d1cac8946 ui: Disallow SLC toggles if longitudinal is off or not available 2023-11-06 09:44:32 -05:00
Jason Wen
45babf70df Revert "ui: Error Troubleshoot: Scroll to the bottom on init" 2023-11-06 11:12:50 +00:00
Jason Wen
8ad8238e38 SLC: slight cleanup 2023-11-05 21:06:39 -05:00
Jason Wen
40eb5801bd Revert "SLC: slight cleanup" 2023-11-06 02:05:09 +00:00
DevTekVE
f0b81d9151 ui: SLC: Expand settings 2023-11-05 19:24:25 +00:00
Jason Wen
6d11fa71d2 SLC: slight cleanup 2023-11-05 19:23:30 +00:00
Jason Wen
87ede67c96 ui: Error Troubleshoot: Scroll to the bottom on init 2023-11-05 13:20:12 -05:00
DevTekVE
fe2c9f97ca ui: DLP: Sync settings and onroad status 2023-11-05 10:31:34 +01:00
Jason Wen
779ec5c491 Toyota: Adjust safety param flags 2023-11-01 04:56:51 +00:00
Jason Wen
0febc36428 ui: Add back missing toggles 2023-11-01 04:41:24 +00:00
Jason Wen
d3118cabca VW: Custom Stock Longitudinal Control: calculate counters manually 2023-10-31 21:30:40 +00:00
Jason Wen
0c01b99967 ui: New Settings Panels 2023-10-31 20:42:25 +00:00
Jason Wen
590577911d DEC: Refactor toggle states 2023-10-31 01:04:23 -04:00
Jason Wen
14de9f1c64 Toyota: Keep sending pcm_cancel_cmd until disengaged 2023-10-31 04:46:19 +00:00
Jason Wen
8a0385e13e ui: Fix Speed Limit Control interaction with speed limit sign 2023-10-31 04:45:26 +00:00
Jason Wen
c4ee64c0aa Disable Onroad Upload: Cleanup 2023-10-31 00:27:53 -04:00
Jason Wen
3fa111b61c ui: watchdog: don't use param to check offroad state 2023-10-31 03:54:24 +00:00
Jason Wen
77800c7112 Gpxd: Disable services 2023-10-30 23:51:04 -04:00
Jason Wen
dde1a6e881 Fleet Manager: Always running 2023-10-30 23:47:02 -04:00
DevTekVE
7b94c831ef Improve GPS data processing and accuracy evaluation 2023-10-30 18:49:37 +00:00
DevTekVE
68e1379003 Reimplement SLC 2023-10-30 18:16:23 +00:00
Jason Wen
08c0c8e85b Toyota: Gate UNSUPPORTED_DSU_CAR from PCM_CRUISE_2 2023-10-30 13:07:33 +00:00
Jason Wen
a0ad76294e MADS: Toyota: UNSUPPORTED_DSU_CAR support 2023-10-30 13:01:29 +00:00
Jason Wen
2c1fe0213b Revert "MADS: Toyota: UNSUPPORTED_DSU_CAR support"
This reverts commit b3784fc2f8.
2023-10-30 08:59:32 -04:00
Jason Wen
b3784fc2f8 MADS: Toyota: UNSUPPORTED_DSU_CAR support 2023-10-30 12:58:58 +00:00
Jason Wen
4f65f9f8e6 Update CHANGELOGS.md 2023-10-28 10:24:30 -04:00
Jason Wen
1a06a4c250 Update CHANGELOGS.md 2023-10-28 08:45:07 -04:00
Jason Wen
bd9770982c mapd: add Spain to offline OSM database list 2023-10-27 00:03:05 -04:00
Jason Wen
0e74dfa7a8 ui: Fix states for longitudinal related toggles 2023-10-26 12:54:16 -04:00
Jason Wen
6d7be9153c Update CHANGELOGS.md 2023-10-26 11:02:05 -04:00
Jason Wen
d1a3d6abe8 Hyundai: Car Port for Kona Non-SCC 2019 2023-10-26 14:54:54 +00:00
Jason Wen
9e66af59a0 Merge branch 'master' into sync-priv-20231026 2023-10-26 10:44:15 -04:00
Comma Device
87223dc0ca final fixes to gitlab_runner.sh 2023-10-26 10:58:18 +02:00
Comma Device
615cf68e14 More fixes to the gitlab runner 2023-10-26 10:43:09 +02:00
Comma Device
0f7663baef Fix permissions for the gitlab runner scripty 2023-10-26 10:30:47 +02:00
DevTekVE
0e4d7c6f74 Add check for service existence in gitlab_runner.sh
A new function has been added to the gitlab_runner.sh script to check if a service is present on the system before trying to start or stop it. This will prevent potential errors caused by attempting to interact with nonexistent services.
2023-10-26 08:33:32 +02:00
DevTekVE
5ac7e9e2c0 Update .gitlab-ci.yml to point to public repo 2023-10-26 05:53:15 +00:00
Jason Wen
2d8e67980b Merge branch 'master' into sync-priv-20231025 2023-10-25 15:28:19 -04:00
Jason Wen
3efe44db07 Merge branch 'master' into sync-priv-20231025
# Conflicts:
#	selfdrive/car/hyundai/interface.py
2023-10-25 15:22:57 -04:00
Jason Wen
78ec50e6c8 Toyota: ZSS fix 2023-10-24 13:36:17 -04:00
DevTekVE
607513b733 Simplify rules in .gitlab-ci.yml
The commit streamlines the 'rules' condition in our CI/CD pipeline configuration. It removes redundant and unnecessary conditions, leaving only the essential check for a new branch creation. This revision not only makes the code cleaner but also enhances our pipeline's clarity and readability.
2023-10-24 19:15:55 +02:00
DevTekVE
87b4ca54b6 Add CI/CD pipeline and Docker support 2023-10-24 17:13:32 +00:00
Jason Wen
6175360a8e Merge branch 'master' into sync-priv-20231020
# Conflicts:
#	selfdrive/controls/lib/speed_limit_controller.py
#	selfdrive/controls/lib/turn_speed_controller.py
2023-10-24 00:24:05 -04:00
Jason Wen
c8cefa4af1 fix with T_IDXS 2023-10-23 20:22:49 -04:00
Jason Wen
c006e24599 Merge branch 'dev-priv/master-priv' into sync-priv-20231020
# Conflicts:
#	selfdrive/controls/lib/longitudinal_planner.py
2023-10-23 11:37:06 -04:00
Jason Wen
1682eaa03c Merge branch 'master' into sync-priv-20231020 2023-10-23 11:16:05 -04:00
DevTekVE
4b8109666b Revert "Refactoring the speed limit control" 2023-10-23 11:05:17 +00:00
Jason Wen
80da209baf Merge branch 'master' into sync-priv-20231020
# Conflicts:
#	selfdrive/car/toyota/carstate.py
#	selfdrive/controls/lib/longitudinal_planner.py
2023-10-20 16:59:04 -04:00
Jason Wen
faf2ac1e4d ui: Developer UI: MEMORY -> RAM 2023-10-20 12:46:50 -04:00
Jason Wen
019454bd34 ui: Hide Screenrecorder button when alert is displayed 2023-10-20 15:43:56 +00:00
Jason Wen
9717829840 ui: Fix Onroad Settings button alignment with DM transition 2023-10-20 11:40:09 -04:00
Jason Wen
6057d460c0 Update CHANGELOGS.md 2023-10-20 10:35:07 -04:00
Jason Wen
20a39376e9 Update driving model name 2023-10-20 10:34:55 -04:00
DevTekVE
df23ba80dd Reimplement HKG: Add lead distance indicator on cluster 2023-10-19 17:21:01 +00:00
DevTekVE
1d8091aea1 Revert "HKG: Add lead distance indicator on cluster"
This reverts commit aa5bcb2762
2023-10-19 08:29:50 +00:00
DevTekVE
aa5bcb2762 HKG: Add lead distance indicator on cluster 2023-10-19 05:53:12 +00:00
Jason Wen
19e8728477 Merge branch 'master' into sync-priv-20231016
# Conflicts:
#	panda
2023-10-18 01:21:52 -04:00
Jason Wen
b1f4dc6bb0 Merge remote-tracking branch 'commaai/openpilot/master' into sync-priv-20231016 2023-10-17 14:37:34 -04:00
Jason Wen
ccfb7ff153 Merge branch 'master' into sync-priv-20231016
# Conflicts:
#	panda
#	selfdrive/car/chrysler/values.py
#	selfdrive/car/ford/values.py
#	selfdrive/car/hyundai/hyundaican.py
#	selfdrive/car/hyundai/interface.py
#	selfdrive/car/toyota/interface.py
#	selfdrive/car/toyota/values.py
#	selfdrive/controls/controlsd.py
#	selfdrive/controls/plannerd.py
#	selfdrive/sentry.py
#	selfdrive/ui/qt/offroad/settings.cc
2023-10-16 11:52:39 -04:00
DevTekVE
2559c299cd brakeLights -> brakeLightsDEPRECATED 2023-10-16 06:10:29 +00:00
Jason Wen
6a730bd8dd fixup! Revert "Suppress panda siren if in park gear (#175)" 2023-10-16 06:04:45 +00:00
Jason Wen
18e630c436 bump cereal 2023-10-16 01:28:50 -04:00
Jason Wen
6c67abe65f Revert "Sync master-priv with public sunnypilot:master" 2023-10-16 04:53:55 +00:00
Jason Wen
71b9fe4918 Suppress panda siren if in park gear - V2 2023-10-16 02:35:08 +00:00
DevTekVE
455b448d8a Revert "Suppress panda siren if in park gear (#175)" 2023-10-16 02:34:12 +00:00
DevTekVE
3aef2ddbd9 Refactor GPS data handling to use 'liveLocationKalman' 2023-10-15 09:01:43 +00:00
DevTekVE
f885863e1e Sync master-priv with public sunnypilot:master 2023-10-13 16:40:08 +00:00
DevTekVE
db4d201819 Move speed_limit_controller to sunnypilot module 2023-10-11 07:54:15 +00:00
Jason Wen
fb9ab1db28 mapd: PubMaster var fix 2023-10-10 20:22:10 -04:00
DevTekVE
99f8adde71 Refactoring the speed limit control 2023-10-10 15:02:35 +00:00
Jason Wen
ffd3c98c20 gpxd: Only allow GPX uploads if the network is Wi-Fi 2023-10-09 13:37:04 +00:00
Jason Wen
0aa33b7303 mapd: Set thread affinity 2023-10-09 00:06:53 +00:00
Jason Wen
374dea106c Subaru: Fix safety param assignment for IMPREZA_2020 torque increase 2023-10-07 06:50:27 +00:00
Jason Wen
f548322753 ui: ButtonParamControl style update 2023-10-05 00:13:23 -04:00
Jason Wen
22b72e02e1 Update CHANGELOGS.md 2023-10-04 23:31:14 -04:00
Jason Wen
76c99b92a4 ui: ButtonParamControl: redesign 2023-10-05 02:44:58 +00:00
Jason Wen
4f07bf2504 ui: Hide description on SPAbstractControl init 2023-10-04 15:02:16 -04:00
Jason Wen
969767bb68 Explicitly define non-private submodule URLs 2023-10-04 13:25:34 -04:00
Jason Wen
fb6acf9ff1 ui: New ButtomParamControl design 2023-10-04 16:59:33 +00:00
Jason Wen
2c43f3b15b ui: Use local variables for cereal 2023-10-04 02:42:20 +00:00
Jason Wen
98dbd39209 Mazda: Custom Stock Longitudinal Control: calculate counters manually 2023-10-03 21:38:52 +00:00
Jason Wen
8d993284b3 Hyundai: Custom Stock Longitudinal Control: calculate counters manually 2023-10-03 21:23:37 +00:00
Jason Wen
9af11f99b0 Merge branch 'subaru-sng-fix' into 'master-priv'
Subaru: Stop and Go autoresume counter fix

See merge request openpilot-devtekve/sunnyhaibin/openpilot-special!321
2023-10-03 20:54:19 +00:00
Jason Wen
c4068f34a2 Subaru: Stop and Go autoresume counter fix 2023-10-03 20:54:18 +00:00
Jason Wen
c946f50a70 Subaru: Stop and Go: Initialize for all platforms (#329) 2023-10-03 11:14:29 -04:00
Jason Wen
62e6d6392d V-TSC: Parse lane lines calculation fix (#326) 2023-10-02 22:54:01 -04:00
Jason Wen
5e0c958618 Subaru: Safety param assignment fix (#327) 2023-10-02 20:52:25 -04:00
Jason Wen
48d7faf48f Dynamic Longitudinal Control (#218)
* Dynamic End to End Longitudinal

* Revert "Dynamic End to End Longitudinal"

This reverts commit cec0fa8ad23b8473b27c58f6d20ba6d4d58e726e.

* Dynamic Longitudinal Controller

* Update CHANGELOGS.md

* add to builds

* Name change

* Toggle at wrong place :p

* oops take this out for now

* ZeroDivisionError

* add mpc mode to cereal

* add mpc mode to cereal

* Add UI button, replace MEMORY with DLC status in dev UI

* small change

* Higher stop counts

* add blinker logic

* initial set normally if DLC is on

* Update CHANGELOGS.md

* Fix

* fixes

* add dlc to Feature Status

* catch AttributeError

* fix

* add btn

* Dynamic Longitudinal Control (DLC) -> Dynamic Experimental Control (DEC)

* Capitalization on ACC and Blended

* add here

* sync

* sync

* Update CHANGELOGS.md

* cleanup

* more cleanup
2023-10-01 23:59:27 -04:00
Jason Wen
d0e58efaf6 Hyundai CAN Longitudinal: Only use vision-based yRel for Hyundai camera-based SCC platforms (#320) 2023-10-01 21:43:00 -04:00
Jason Wen
1a3899e062 ui: Hide Custom Stock Longitudinal Control if not available (#319) 2023-10-01 15:22:50 -04:00
Jason Wen
7a072093dd Merge branch 'master' into dev-priv/master
# Conflicts:
#	CHANGELOGS.md
#	selfdrive/controls/controlsd.py
#	selfdrive/controls/lib/lateral_planner.py
#	selfdrive/controls/lib/longitudinal_planner.py
#	selfdrive/controls/lib/speed_limit_controller.py
#	selfdrive/controls/plannerd.py
#	selfdrive/mapd/mapd.py
#	selfdrive/ui/qt/onroad.cc
#	selfdrive/ui/ui.cc
2023-10-01 11:35:25 -04:00
Jason Wen
dfe106f1b0 Revert "ui: Hide bottom row dev UI when alerts are displayed (#272)" (#318)
* Revert "ui: Hide bottom row dev UI when alerts are displayed (#272)"

This reverts commit ccde494acc.

* Update CHANGELOGS.md
2023-10-01 11:30:51 -04:00
Jason Wen
e6d11a46b4 Torqued: Hide torqued in Dev UI when Custom Live Tune is overriding (#317) 2023-10-01 03:14:36 -04:00
Jason Wen
cc47228363 Cereal: Use custom reserved structs (aka MSPA) (#316)
* Cereal: Use custom reserved structs

* bump cereal

* fix dmonitoring

* pandaStateSP & controlsStateSP

* LongitudinalPlanSP

* LateralPlanSP

* LiveMapDataSP

* E2eLongStateSP

* fixup! LongitudinalPlanSP

* fix

* LongitudinalPersonality fix

* sync with upstream

* bump cereal

* LongitudinalPersonalitySP fixed

* LongitudinalPlanSP fix

* no need

* bump cereal

* bump panda

* no longer logs controlsAllowedLong

* bump cereal

* bump cereal

* fix

* LiveMapDataSP fix

* MSPA (#217)

* Cereal: Use custom reserved structs

* fix dmonitoring

* sync with upstream

* bump cereal

* bump cereal

* fix

* bump cereal

* fix

* unused

* check sm valid

* bump cereal

* MSPA: Unused service (#218)

* bump panda

* bump panda

* bump panda
2023-10-01 03:13:14 -04:00
Jason Wen
823e82ec0a MADS: Remove controlsAllowedLong pandaStates to sync with stock cereal (#315)
* MADS: Remove controlsAllowedLong pandaStates to sync with stock cereal

* bump panda

* bump panda
2023-10-01 02:27:52 -04:00
Jason Wen
12a56eb46e ui: Settings toggle color change (#314)
* ui: Move toggle to the left of ParamControl

* blank icons

* tesla blue

* tesla blue

* Revert "ui: Move toggle to the left of ParamControl"

This reverts commit 3f6a3c831e5eebc740733ce625ef7dd11985c7e7.

* Revert "blank icons"

This reverts commit d778cf378b6374b89fa679b4f3358dbf48c89a06.
2023-09-30 22:16:49 -04:00
Jason Wen
5d8354ec63 ui: Redesign settings sidebar panel (#313)
* ui: Redesign settings sidebar panel

* redesign close button

* add icon

* remove

* no icons for now

* more adjust
2023-09-30 03:16:55 -04:00
Jason Wen
d6a768c96f Hyundai CAN Longitudinal: Parse lead info for camera-based SCC platforms (#299)
* Hyundai CAN Longitudinal: Parse lead info for camera-based SCC platforms

* typo

* another typo

* camera SCC has them flipped

* disable `radarUnavailble`

* Missing on these platforms

* parse lateral position of lead car from vision model output

* fix CP init
2023-09-30 01:20:13 -04:00
Jason Wen
b982079429 HKG: Car Port for Kia Seltos Non-SCC 2023-24 (#288)
* HKG: add Kia Seltos 2024 Non-SCC platform

* 2023 MY also works

* finish port

* Update CHANGELOGS.md

* update name

* add fw

* fix

* fix list
2023-09-29 08:59:01 -04:00
Jason Wen
47096cbb3c Merge branch 'master' into dev-priv/master
# Conflicts:
#	CHANGELOGS.md
2023-09-29 08:57:43 -04:00
Jason Wen
613d5b4aba Torque Lateral Control: Refactor settings (#300)
* Torque Lateral Control: Refactor settings

* don't need this

* only offroad allowed

* Don't need this

* allow when offroad

* gate them

* flipped

* handle them better

* cleaner

* remove duplicate

* toggle checks cleanup

* 2.5 second check

* trigger refresh when going offroad

* cleanup

* move toggle

* update title and description

* fix ampersand

* update live torque toggle

* live torqued every 2.5 second
2023-09-29 02:36:55 -04:00
Jason Wen
71fc267606 ui: Feature Status: Update only when param is changed (#311)
* ui: Feature Status: Update only when param is changed

* less calls
2023-09-29 01:49:43 -04:00
Jason Wen
c0f2e6bc05 ui: Allow SPOptionControl button group enabled state modifications (#310) 2023-09-29 00:54:15 -04:00
Jason Wen
c49b5c8e35 Lateral Planner: Fix Custom Offsets and Path Offset in all modes (#309)
* Lateral Planner: Fix Custom Offsets and Path Offset in all modes

* Update init values
2023-09-29 00:39:49 -04:00
Jason Wen
429f7307be Subaru: Stop and Go autoresume (#289)
* Subaru: Stop and Go autoresume

* Update CHANGELOGS.md

* Update CHANGELOGS.md

* do this

* sync with subaru-community

* sync for manual parking brake

* no slot machine pls

* fix this too

* flipped

* fix panda

* comments

* Update CHANGELOGS.md

* check every 2.5 second

* move them to a function

* more logical

* frame-based frequency sends

* type hinting

* should be tuple

* better grouping

* for docs regeneration

* same as upstream

* move it down

* cleanup

* use int flag and safety param, only block message when sng is allowed

* Do it here instead

* gate everything

* move comment

* block tx if sng is not allowed on certain platforms

* bump panda
2023-09-29 00:33:03 -04:00
Jason Wen
c2c2be07bc 3D Building on Map (#308)
* ui: 3D buildings on map

* add toggle

* toggleable offroad only

* fixes

* Revert "toggleable offroad only"

This reverts commit 7c0c8d99bca3bbec00921c2d438e68b5f9054393.
2023-09-28 00:10:51 -04:00
Jason Wen
5214a703d7 Sentry: Cleanup unncessary inits (#307)
* Sentry: cleanup unncessary inits

* unnecessary

* unused

* cleanup
2023-09-27 21:59:13 -04:00
Jason Wen
a612ee07d7 ui: Fix blinker positions when in split view (#306)
* ui: Fix blinker positions when in split view

* Shorten name
2023-09-27 12:27:02 -04:00
Jason Wen
5bf6368947 ui: Clear road name cache when going onroad (#305)
* ui: Clear road name cache at UI initiation

* clear on offroad
2023-09-27 11:17:16 -04:00
Jason Wen
c8cb9b3b75 ESCC: Disable radarUnavailable when detected (#304) 2023-09-27 02:27:34 -04:00
Jason Wen
5dbecc7d38 Hyundai: radar interface fixups (#303) 2023-09-27 02:10:44 -04:00
Jason Wen
67208ee372 ui: sunnypilot settings panels params cleanup (#302) 2023-09-26 23:00:10 -04:00
Jason Wen
934aa7acd2 ui: Controls Panel: slight cleanup (#301) 2023-09-26 21:46:31 -04:00
Jason Wen
5cf452acdd Hyundai: radar interface cleanup (#298) 2023-09-26 10:00:41 -04:00
Jason Wen
65b74b45c4 Toyota: Stop and Go hack implementation (#290) 2023-09-25 14:46:50 -04:00
Jason Wen
dd98954ce3 Toyota: ZSS support (#292)
* Toyota: ZSS support

* comment
2023-09-25 14:45:27 -04:00
Jason Wen
99d64ed1b4 ui: Sync Onroad Settings buttons with Onroad Feature Status (#297) 2023-09-25 12:45:15 -04:00
Jason Wen
172d629393 Retain hotspot/tether: Check HotspotOnBoot toggle (#296) 2023-09-25 11:44:26 -04:00
Jason Wen
7445c42b5d Retain hotspot/tether: Initialize after modem is configured (#295) 2023-09-25 10:48:39 -04:00
Jason Wen
8d75ca9a7b Retain hotspot/tether: Fix initialization (#293)
* Retain hotspot/tether: Fix initialization

* init before manager starts

* simpler
2023-09-25 01:14:48 -04:00
Jason Wen
9cab2802ea Merge branch 'master' into dev-priv/master 2023-09-24 00:22:53 -04:00
Jason Wen
ab66732ee9 ui: Some comments in sunnypilot settings (#291) 2023-09-24 11:33:19 -04:00
Jason Wen
3b1ad57ee2 sunnypilot: Fix upstream conflict 2023-09-23 14:12:49 -04:00
Jason Wen
07e1b55df2 Update CHANGELOGS.md 2023-09-23 08:36:17 -04:00
Jason Wen
c5a85ba831 Gap Adjust Cruise: Fix object reference 2023-09-23 05:18:36 -04:00
Jason Wen
acdfbbb359 Gap Adjust Cruise: Fix unnecessary I/O (#287) 2023-09-23 13:53:46 -04:00
Yassine
231f2331aa Gap Adjust Cruise: Fix param typing 2023-09-23 03:16:52 -04:00
Jason Wen
64e38459d0 Merge branch 'master' into dev-priv/master
# Conflicts:
#	system/fleetmanager/fleet_manager.py
#	system/fleetmanager/helpers.py
2023-09-23 00:36:44 -04:00
Jason Wen
d20dbdf12b Update CHANGELOGS.md 2023-09-22 23:53:46 -04:00
Jason Wen
a8fbb3bcec Merge branch 'master' into dev-priv/master 2023-09-22 23:50:24 -04:00
Jason Wen
9308c16823 Core management (#232)
* set core affinity and priority for gpxd and gpx_uploader

* use higher cores

* 4 is available offroad

* sync them all

* set for fleet manager

* only upload gpx while offroad
2023-09-23 09:43:29 -04:00
Jason Wen
c514823c94 navd: Prioritize comma Prime Mapbox token (#286) 2023-09-23 01:59:16 -04:00
Jason Wen
ac7d86d292 navd: Auto detect custom Mapbox token (#285)
* navd: Auto detect custom Mapbox token

* cleanup
2023-09-23 01:26:09 -04:00
Jason Wen
31c56ca708 Merge branch 'master' into dev-priv/master
# Conflicts:
#	panda
#	selfdrive/car/hyundai/carstate.py
#	selfdrive/car/hyundai/hyundaican.py
#	selfdrive/controls/controlsd.py
#	selfdrive/manager/custom_dep.py
2023-09-23 00:06:34 -04:00
Jason Wen
84f6fce906 ui: Onroad Options Panel (#249)
* init and bring back DLP

* Add button, DLP, GAC

* GAC: remove in separate PR

* sync

* unused

* readjust onroad settings button

* uncomment

* cleanup

* more cleanup

* update params right away

* fix values

* Rearrange buttons

* align buttons with dev ui dynamically

* draw feature statuses on camera view

* ui: Consolidate feature status string updates

* narrower panel

* slight cleanup

* rearrange

* slight cleanup

* subtitle below

* slc text color

* Revert "ui: Consolidate feature status string updates"

* change all to driving_personality

* declare their own

* Adjust panel subtitle

* Add Speed Limit Control button

* fix slc

* cleanup

* cleanup

* update comment
2023-09-22 23:23:00 -04:00
Jason Wen
b1bb33418e ui: Feature Status display conditions (#283) 2023-09-21 21:35:55 -04:00
Jason Wen
65e08b51a0 ui: Update Feature Status texts (#282) 2023-09-19 00:26:43 -04:00
Jason Wen
0481fefa26 Merge branch 'master' into dev-priv/master 2023-09-18 16:15:05 -04:00
Jason Wen
f743c2f78a ui: Singleton Feature Status text and color (#281)
* ui: Singleton Feature Status text and color

* lower

* move color to eclipse to left of text

* move to right

* does not work

* cleanup

* more cleanup

* move a bit

* rename

* add commment
2023-09-17 20:19:26 -04:00
Jason Wen
2b8af5d398 ui: Handle frequency checks for live params and other element (#280) 2023-09-15 23:40:23 -04:00
Jason Wen
1a0da520fc Revert "ui: Handle frequency checks for live params and other elements (#278)" (#279)
This reverts commit acf280e15b.
2023-09-15 23:15:17 -04:00
Jason Wen
acf280e15b ui: Handle frequency checks for live params and other elements (#278) 2023-09-15 22:55:59 -04:00
Jason Wen
22a5951aa7 ui: Add comment and organize Auto Hide Button and Onroad Brightness (#277) 2023-09-15 21:55:16 -04:00
Jason Wen
d315926396 Revert "UI: check params every 5 seconds" (#276)
* Revert "UI: check params every 5 seconds"

* add comment
2023-09-15 20:28:25 -04:00
Jason Wen
27dc94e52a ui: Adjust screenrecorder button position (#275) 2023-09-15 19:18:27 -04:00
Jason Wen
04b62555a0 Gap Adjust Cruise: Fix carstate button press logic (#274) 2023-09-15 04:02:12 -04:00
Jason Wen
a809a7f6fd ui: 15% opacity drop shadow with Feature Status (#273) 2023-09-14 15:39:37 -04:00
Jason Wen
ccde494acc ui: Hide bottom row dev UI when alerts are displayed (#272) 2023-09-14 15:12:01 -04:00
Jason Wen
814e644a35 ui: Drop shadow on Feature Status texts (#271) 2023-09-14 15:02:51 -04:00
Jason Wen
020cd7b1f8 ui: Feature Status cleanup (#270) 2023-09-14 13:54:33 -04:00
Jason Wen
e8a6afa656 Subaru: Fix brake light signal rename (#269) 2023-09-14 11:55:10 -04:00
Jason Wen
b68ce95c87 Gap Adjust Cruise: Unused UI variable (#268) 2023-09-14 11:26:58 -04:00
Jason Wen
59fa3c8770 Gap Adjust Cruise: Slight cleanup (#267) 2023-09-14 04:31:13 -04:00
Jason Wen
0b09c641a9 Gap Adjust Cruise: Handle distance bar on cluster for Hyundai CAN-FD (#266) 2023-09-14 04:15:04 -04:00
Jason Wen
1958fa95cf Gap Adjust Cruise: Handle min and max distance on cluster (#265)
* Gap Adjust Cruise: Handle min and max distance on cluster

* lint
2023-09-14 04:11:46 -04:00
Jason Wen
b2ef8fb5bf Gap Adjust Cruise: Remove unused variables (#264) 2023-09-14 03:47:47 -04:00
Jason Wen
b868339f7a Gap Adjust Cruise: Merge with Driving Personality (#263)
* Merge Gap Adjust Cruise with Driving Personality

* last bit
2023-09-14 03:15:43 -04:00
Jason Wen
787406ba39 ui: Detect and sync param changes with ButtonParamControl (#262) 2023-09-14 01:42:32 -04:00
Jason Wen
d3e93e919c ui: Add Dynamic Lane Profile to Feature Status Panel (#261)
* ui: Add Dynamic Lane Profile to Feature Status Panel

* missed
2023-09-13 17:17:13 -04:00
Jason Wen
91770b9afb Revert "ui: Add Dynamic Lane Profile to Feature Status Panel (#259)" (#260)
This reverts commit b4acb61c1c.
2023-09-13 17:16:22 -04:00
Jason Wen
b4acb61c1c ui: Add Dynamic Lane Profile to Feature Status Panel (#259) 2023-09-13 17:15:39 -04:00
Jason Wen
35186a31a6 ui: Draw feature statuses on camera view (#258) 2023-09-13 17:10:58 -04:00
Jason Wen
9545f2547e ui: screenrecorder button resize (#257) 2023-09-12 23:23:43 -04:00
Jason Wen
fa1188a1f2 ui: Align bottom row icons and buttons with Dev UI dynamically (#256)
* ui: Align bottom row icons and buttons with Dev UI dynamically

* fix
2023-09-12 23:08:43 -04:00
Jason Wen
25a3fa5333 ui: Custom onroad button sizes (#255)
* ui: Custom button sizes

* remove space
2023-09-12 18:13:38 -04:00
Jason Wen
43c89de187 ui: Fix buttons layout recreation (#254) 2023-09-12 18:04:59 -04:00
Jason Wen
311b53b514 ui: Wrap buttons layout in AnnotatedCameraWidget (#253) 2023-09-12 12:38:10 -04:00
Jason Wen
53e45a81ef ui: fix spacing from upstream merge 2023-09-12 12:31:16 -04:00
Jason Wen
f76534cf75 ui: Wrap wake screen timeout check in OnroadWindow (#252) 2023-09-12 12:29:23 -04:00
Jason Wen
f5a518b8af GAC: remove legacy onroad button (#251) 2023-09-12 12:21:06 -04:00
Jason Wen
dbbb20a0ef ui: Rename mapVisible to splitPanelVisible (#250) 2023-09-12 12:15:59 -04:00
Jason Wen
d857c01f0d Fix upstream conflicts 2023-09-10 22:10:54 -04:00
Jason Wen
ff1d7d446b Merge branch 'master' into dev-priv/master 2023-09-10 22:07:06 -04:00
Jason Wen
20b54929ab ui: Adjust RocketFuel positions (#248) 2023-09-09 12:21:07 -05:00
Jason Wen
433f00ae0e ui: Dynamic blinker positions when the map is visible (#247) 2023-09-09 11:43:02 -05:00
Jason Wen
26805f6184 Update CHANGELOGS.md 2023-09-08 11:28:10 -04:00
Jason Wen
9997c611f3 Custom Stock Longitudinal Control: re-enable for HKG CAN-FD 2023-09-08 11:20:55 -04:00
Jason Wen
f1eccc6036 Update CHANGELOGS.md 2023-09-08 11:10:16 -04:00
Jason Wen
cedd322667 ui: update driving model name 2023-09-07 00:24:37 -04:00
Jason Wen
e50f3baa45 Merge branch 'master' into dev-priv/master
# Conflicts:
#	panda
#	selfdrive/car/nissan/interface.py
#	selfdrive/car/subaru/carcontroller.py
#	selfdrive/car/subaru/subarucan.py
#	selfdrive/car/toyota/interface.py
2023-09-07 00:05:25 -04:00
Jason Wen
1376baeee4 Merge branch 'master-09052023' into dev-priv/master
Merge with upstream - 09-05-2023
2023-09-06 01:26:37 -04:00
Jason Wen
80cfdf13b7 bump panda 2023-09-06 01:26:02 -04:00
Jason Wen
a4cd9129ba Merge branch 'master' into dev-priv/master-test
# Conflicts:
#	selfdrive/controls/lib/speed_limit_controller.py
#	selfdrive/manager/process_config.py
2023-09-06 01:09:19 -04:00
Jason Wen
9b407fee17 MADS: set flag for minEnableSpeed > 0 cars (#245) 2023-09-05 23:54:51 -04:00
Jason Wen
92abd64efd Upstream merge fixes 2023-09-05 22:30:15 -04:00
Jason Wen
affe7884a0 Upstream merge fixes 2023-09-05 21:57:12 -04:00
Jason Wen
808611e691 Upstream merge fixes 2023-09-05 21:20:52 -04:00
Jason Wen
9219b7966c Merge branch 'master' into dev-priv/master-test
# Conflicts:
#	panda
#	release/build_release.sh
#	selfdrive/car/car_helpers.py
#	selfdrive/car/chrysler/carcontroller.py
#	selfdrive/car/chrysler/carstate.py
#	selfdrive/car/chrysler/interface.py
#	selfdrive/car/ford/carstate.py
#	selfdrive/car/ford/interface.py
#	selfdrive/car/gm/carcontroller.py
#	selfdrive/car/gm/carstate.py
#	selfdrive/car/gm/interface.py
#	selfdrive/car/honda/carcontroller.py
#	selfdrive/car/honda/interface.py
#	selfdrive/car/hyundai/carcontroller.py
#	selfdrive/car/hyundai/carstate.py
#	selfdrive/car/hyundai/hyundaican.py
#	selfdrive/car/hyundai/interface.py
#	selfdrive/car/interfaces.py
#	selfdrive/car/mazda/carcontroller.py
#	selfdrive/car/mazda/carstate.py
#	selfdrive/car/mazda/interface.py
#	selfdrive/car/nissan/carcontroller.py
#	selfdrive/car/nissan/interface.py
#	selfdrive/car/subaru/carstate.py
#	selfdrive/car/subaru/interface.py
#	selfdrive/car/subaru/subarucan.py
#	selfdrive/car/toyota/carcontroller.py
#	selfdrive/car/toyota/carstate.py
#	selfdrive/car/toyota/interface.py
#	selfdrive/car/toyota/toyotacan.py
#	selfdrive/car/volkswagen/carcontroller.py
#	selfdrive/car/volkswagen/carstate.py
#	selfdrive/car/volkswagen/interface.py
#	selfdrive/controls/controlsd.py
#	selfdrive/controls/lib/latcontrol_torque.py
#	selfdrive/controls/lib/lateral_planner.py
#	selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py
#	selfdrive/controls/lib/longitudinal_planner.py
#	selfdrive/locationd/paramsd.py
#	selfdrive/manager/manager.py
#	selfdrive/manager/process.py
#	selfdrive/manager/process_config.py
#	selfdrive/sentry.py
#	selfdrive/ui/SConscript
#	selfdrive/ui/qt/home.cc
#	selfdrive/ui/qt/maps/map_settings.cc
#	selfdrive/ui/qt/maps/map_settings.h
#	selfdrive/ui/qt/offroad/settings.cc
#	selfdrive/ui/qt/onroad.cc
#	selfdrive/ui/qt/onroad.h
#	selfdrive/ui/qt/util.cc
#	selfdrive/ui/qt/util.h
#	selfdrive/ui/soundd/sound.h
#	selfdrive/ui/ui.h
#	system/version.py
2023-09-05 20:17:19 -04:00
Jason Wen
3d87d88dc6 MADS: Toyota: handle pedal disengage (#244) 2023-09-04 19:29:11 -04:00
Jason Wen
e362198880 MADS: allow Disengage on Accelerator (#243)
* MADS: allow Disengage on Accelerator

* make sure to disable in interfaces
2023-09-04 19:28:25 -04:00
Jason Wen
c9932561c4 ui: remove Q_PROPERTY from AnnotatedCameraWidget (sync with upstream) (#231) 2023-08-28 11:00:17 -04:00
Jason Wen
6341be1cd3 ui: sunnypilot menu refactor (#242)
* ui: `SPOptionControl`

* This works

* only need to initialize

* Use QButtonGroup

* Add method to update specific labels

* Always init label with value

* add method to update external methods

* Update in another PR

* Unnecessary

* construct std map with defined range

* Test that it works

* In separate PR

* change var

* refreshLabels() instead

* Revert "refreshLabels() instead"

This reverts commit ceed9935cf48c7db974e45ab5ab496a7bc3f9f26.

* allow individual `refresh` classes

* now we can do it in another PR!

* General: OnroadScreenOff

* General: OnroadScreenOffBrightness

* General: BrightnessControl

* Controls: CameraOffset

* Controls: PathOffset

* Controls: AutoLaneChangeTimer

* Controls: GapAdjustCruiseMode

* Controls: TorqueFriction

* Controls: TorqueMaxLatAccel

* Controls: SpeedLimitOffsetType

* Controls: SpeedLimitValueOffset

* General: MaxTimeOffroad

* Visuals: DevUiInfo

* Visuals: ChevronInfo

* unused

* add comment
2023-08-21 20:40:27 -04:00
Jason Wen
f673a44438 ui: add SPOptionControl to sunnypilot settings (#241)
* ui: `SPOptionControl`

* This works

* only need to initialize

* Use QButtonGroup

* Add method to update specific labels

* Always init label with value

* add method to update external methods

* Update in another PR

* Unnecessary

* construct std map with defined range

* Test that it works

* In separate PR

* change var

* refreshLabels() instead

* Revert "refreshLabels() instead"

This reverts commit ceed9935cf48c7db974e45ab5ab496a7bc3f9f26.

* allow individual `refresh` classes

* now we can do it in another PR!
2023-08-21 20:29:59 -04:00
Jason Wen
e47b386a23 bump panda 2023-08-19 21:54:28 -04:00
Jason Wen
bd583b98c1 MADS: keep longActive state for minEnableSpeed > 0 cars (#240) 2023-08-19 12:07:26 -04:00
Jason Wen
ec47a9e977 Manager: delay ui start (#238)
* remove unused

* start ui at the end

* Revert "remove unused"

This reverts commit f1cf4a597295da62bc93e4e858423cd50d439824.
2023-08-17 23:19:55 -04:00
Jason Wen
2741088ab0 ui: display wide cam based on steering angle (#217)
* ui: display wide cam based on steering angle

* Update CHANGELOGS.md
2023-08-17 12:35:11 -04:00
Jason Wen
9a6653bf4c dcam: detect and ignore errors for unofficial devices (#237)
* dcam: detect and ignore errors for unofficial devices

* must be a registered device
2023-08-17 12:31:40 -04:00
Jason Wen
0c3e99f83f controlsd: ignore nonessential processes (#234) 2023-08-16 22:37:38 -04:00
Jason Wen
6284795809 Merge branch 'master' into dev-priv/master 2023-08-16 21:58:39 -04:00
Jason Wen
dac7aeba87 Nissan: sendcan format fix (#233) 2023-08-14 17:11:55 -04:00
Jason Wen
7931f18df8 Merge branch 'master' into dev-priv/master 2023-08-11 17:52:12 -04:00
Jason Wen
fcd3520c35 Merge branch 'master' into dev-priv/master 2023-08-11 09:50:13 -04:00
Jason Wen
5e2b06668c ui onroad: utilize local variables for repeated capnp reader access (#230) 2023-08-11 01:22:59 -04:00
Jason Wen
bdd40ae585 Merge branch 'master' into dev-priv/master
# Conflicts:
#	selfdrive/mapd/lib/NodesData.py
2023-08-10 22:46:30 -04:00
Jason Wen
9bc1632141 GAC: Ford support (#226)
* GAC: Ford support

* Update CHANGELOGS.md
2023-08-10 22:37:11 -04:00
Jason Wen
d7a2214dc9 MADS: Ford: LCA button signal fix (#229) 2023-08-10 22:05:33 -04:00
Jason Wen
edcb497308 MADS: disallow lateral control when process not running (#228) 2023-08-10 21:23:36 -04:00
Jason Wen
95393495f6 ui: remove Speed Limit Style and fix speed limit display (#227)
* ui: only allow single speed limit type to display

* Use unit conversion to set speed limit style if not nav

* Remove Speed Limit Style override options

* unused

* unused
2023-08-10 16:17:19 -04:00
Jason Wen
f0fecb14cb Merge branch 'master' into dev-priv/master 2023-08-10 16:07:37 -04:00
Jason Wen
e5a9e4439c ui: even driving screen button gaps (#225) 2023-08-10 09:43:37 -04:00
Jason Wen
6b21f7a72a ui: fix MapSettings/PrimeAdWidget border radius 2023-08-10 01:59:01 -04:00
Jason Wen
cf6e50af69 Merge branch 'master' into dev-priv/master
# Conflicts:
#	CHANGELOGS.md
2023-08-10 00:21:04 -04:00
Jason Wen
d076a193be MADS: Ford support (#212)
* MADS: Ford support

* Update CHANGELOGS.md

* bump panda

* Update CHANGELOGS.md

* bump panda

* bump panda

* add LCA button
2023-08-10 00:18:29 -04:00
Jason Wen
019e612776 nav: Local Webserver Enhancements (from sunnypilot upstream) (#224) 2023-08-09 23:56:46 -04:00
Jason Wen
ea35f72528 ui: driving path size scaling with MADS status (#223)
* ui: driving path size scaling with MADS status

* cleanup
2023-08-09 03:46:39 -04:00
Jason Wen
cbc2469494 Merge branch 'master' into dev-priv/master 2023-08-07 00:41:31 -04:00
Jason Wen
eefcf0a266 DLP: move selector to SP - Controls menu (#222)
* DLP: move options to SP - Controls

* remove driving ui button

* Update CHANGELOGS.md

* no longer used
2023-08-06 23:39:16 -04:00
Jason Wen
1cb131c507 Revert "DLP: move selector to SP - Controls menu (#220)" (#221)
This reverts commit c3fd676e67.
2023-08-06 23:36:23 -04:00
Jason Wen
c3fd676e67 DLP: move selector to SP - Controls menu (#220)
* DLP: move options to SP - Controls

* remove driving ui button

* Update CHANGELOGS.md
2023-08-06 23:26:16 -04:00
Jason Wen
a22b22d4ae ui: driving screen button sorting (#219) 2023-08-06 22:22:20 -04:00
Jason Wen
8e7f3dbf44 mapd: check dependency versions at startup (#216)
* mapd: check dependency versions at startup

* can i do this

* can i do this

* store versions in var

* more concise

* loop it
2023-08-06 00:36:28 -04:00
Jason Wen
a4d793be92 Screenrecorder: fix layout hierarchy (#215) 2023-08-05 15:30:12 -04:00
Jason Wen
c81d29e8cf Merge branch 'master' into dev-priv/master 2023-08-04 17:46:37 -04:00
Jason Wen
dc98584f80 Screenrecorder: adjust button position (#214)
* screenrecorder: small fixes

* remove QPushButton press, use mouse release instead

* Revert "remove QPushButton press, use mouse release instead"

This reverts commit 02821f63bf428332c41301a1aeb577b838ac6885.

* use horizonal layout to store buttons

* make button smaller and center text
2023-08-04 17:31:49 -04:00
Jason Wen
eee9b8b67c sunnypilot: fix upstream conflicts 2023-08-03 00:48:44 -04:00
Jason Wen
f67d25dc01 ui: update driving model name 2023-08-02 23:34:45 -04:00
Jason Wen
e388b49872 mapd: bump scipy to 1.11.1
upstream openpilot 0.9.4 has Python upgraded to 3.11.4, scipy upgrade is required
2023-08-02 23:32:15 -04:00
Jason Wen
a9c70aa12b Merge branch 'master' into dev-priv/master 2023-08-02 22:52:54 -04:00
Jason Wen
e58a6eabdd sunnypilot: fix upstream conflicts 2023-08-02 15:07:02 -04:00
Jason Wen
1719fbc7e2 Merge branch 'master' into dev-priv/master 2023-08-02 15:06:14 -04:00
Jason Wen
31b29bc094 Merge branch 'master' into dev-priv/master 2023-08-02 12:58:28 -04:00
Jason Wen
ec5258c69e files common: sync with sunnypilot:master 2023-07-12 01:27:47 -04:00
Jason Wen
43521a963e Merge branch 'master' into dev-priv/master 2023-07-12 01:17:31 -04:00
Jason Wen
9d9383a61a Merge branch 'master' into dev-priv/master
# Conflicts:
#	CHANGELOGS.md
2023-07-11 09:29:56 -04:00
Jason Wen
8476948e0c Torque lateral control: Disallow for angle control platforms (#208)
* Torque lateral control: Disallow for angle control platforms

* Update CHANGELOGS.md

* Update CHANGELOGS.md

* do this properly
2023-07-11 09:28:42 -04:00
Jason Wen
7d8db21954 Merge branch 'master' into dev-priv/master 2023-07-11 09:11:21 -04:00
Jason Wen
54f17f0b5e Merge branch 'master' into dev-priv/master 2023-07-09 23:51:59 -04:00
Jason Wen
9c0cfddacb Merge branch 'master' into dev-priv/master
# Conflicts:
#	selfdrive/car/hyundai/interface.py
2023-07-09 23:48:47 -04:00
Jason Wen
eeef3491e5 Merge branch 'master' into dev-priv/master 2023-07-09 23:42:39 -04:00
Jason Wen
199e9e2c37 Merge branch 'master' into dev-priv/master 2023-07-09 23:36:19 -04:00
Jason Wen
433dfd2b52 Merge branch 'master' into dev-priv/master
# Conflicts:
#	selfdrive/car/hyundai/carcontroller.py
#	selfdrive/car/hyundai/carstate.py
#	selfdrive/car/hyundai/interface.py
2023-07-09 01:39:58 -04:00
Jason Wen
d43592022a ui: Screen Recorder toggle display (#207)
* ui: Screen Recorder toggle display

* not needed

* duplicate

* Update CHANGELOGS.md
2023-07-09 01:36:15 -04:00
Jason Wen
f269e799b1 Re-enable Screenrecorder with resource fix (#204)
* Re-enable Screenrecorder with resource fix

* add this back

* didn't fix

* Update CHANGELOGS.md
2023-07-09 01:29:23 -04:00
Jason Wen
0bfa681eb7 ui: enable always_watchdog (#206) 2023-07-09 01:28:40 -04:00
Jason Wen
be7ee80d58 watchdog: always seen if offroad (#205)
* watchdog: always seen if offroad

* do this instead

* don't set always_watchdog until we have an exitcode
2023-07-09 01:27:10 -04:00
Jason Wen
18120d8ee8 Merge branch 'master' into dev-priv/master 2023-06-30 15:48:47 -04:00
Jason Wen
cdc69f925d Merge branch 'master' into dev-priv/master 2023-06-30 15:40:04 -04:00
Jason Wen
e04cdaf9e3 ui: revert onroad round border corners (#203) 2023-06-29 23:04:17 -04:00
Jason Wen
82cb6b6754 Merge branch 'master' into dev-priv/master 2023-06-29 17:26:15 -04:00
Jason Wen
6c68af71f0 DLP: enforce laneless when below 10 MPH or 16 KPH (#202)
* DLP: enforce laneless when below 5 MPH or 8 KPH

* Update CHANGELOGS.md

* make this simpler

* unused

* Update CHANGELOGS.md
2023-06-29 11:52:24 -04:00
Jason Wen
7bdb43a62c Revert "DLP: enforce laneless when below 10r MPH or 16 KPH (#187)" (#201)
This reverts commit 87a972b718.
2023-06-29 11:50:19 -04:00
Jason Wen
87a972b718 DLP: enforce laneless when below 10r MPH or 16 KPH (#187)
* DLP: enforce laneless when below 5 MPH or 8 KPH

* Update CHANGELOGS.md

* make this simpler

* unused
2023-06-29 11:49:58 -04:00
Jason Wen
eb75b0cfbd DLP: display Laneless path on initialization (#200)
* DLP: display Laneless path on initialization

* Default in ui as well
2023-06-28 16:07:20 -04:00
Jason Wen
3d9668d622 DLP: param loading changes (#199)
* DLP: read param in real-time

* read from param instead of lateralPlanner for init
2023-06-28 15:46:03 -04:00
Jason Wen
7ce9f862b3 Road Edge Detection: toggle state fix (#198)
* Road Edge Detection: toggle state fix

* one liner

* Revert "one liner"

This reverts commit 44a34a3505456181af47329fbe76119c7fa204fb.
2023-06-28 00:00:30 -04:00
Jason Wen
89e28560c0 Lateral Planner: read params every 2.5 second (#197)
* Lateral Planner: read params every 2.5 second

* Check every 2.5 second

* add all params here
2023-06-27 23:43:09 -04:00
Jason Wen
938a64620f Auto Lane Change Timer: cleaner method (#196) 2023-06-27 23:39:47 -04:00
Jason Wen
30c5781e11 Revert "Road Edge Detection: toggle state fix (#186)" (#195)
This reverts commit 42d1a75a02.
2023-06-27 23:16:13 -04:00
Jason Wen
42d1a75a02 Road Edge Detection: toggle state fix (#186) 2023-06-26 23:07:45 -04:00
Jason Wen
9e89575310 Toyota: TSS2 Longitudinal: Custom Tuning toggle (#185)
* Toyota: TSS2 Longitudinal: Custom Tuning toggle

* add this in another PR
2023-06-26 14:38:03 -04:00
Jason Wen
0da0e9231c Merge branch 'master' into dev-priv/master
# Conflicts:
#	CHANGELOGS.md
#	selfdrive/car/toyota/interface.py
2023-06-26 12:10:52 -04:00
Jason Wen
4d614c6830 Driving Personality: sunnypilot changes (#176)
* make it callable

* ui: disable longitudinal personality when GAC is enabled

* different profiles between stock and gac

* not this class

* update profiles in stock

* only checks once on init

* Match GAC names

* update description
2023-06-25 23:52:24 -04:00
Jason Wen
1fa95672b7 GAC: update objects when toggling GAC (#178) 2023-06-25 23:45:47 -04:00
Jason Wen
05353894e8 ui: Sidebar Temperature selector (#183)
* ui: Sidebar Temperature selector

* don't update

* should be numerical

* update it!

* fix index

* fix

* correct wording

* use ListWidget-like method

* No lines, can shrink

* update description

* fix

* not needed

* Update CHANGELOGS.md

* cleanup
2023-06-25 10:34:07 -04:00
Jason Wen
6027b8a623 ui: Skip comma Prime ad if Mapbox token exists (#184)
* ui: Ski comma Prime ad if Mapbox token is valid

* check sk

* update!

* test

* might be doing it wrong all along

* try this
2023-06-25 10:08:35 -04:00
Jason Wen
23bd4e8659 Merge branch 'master' into dev-priv/master 2023-06-25 06:30:38 -04:00
Jason Wen
0125389414 DLP: check state properly (#182)
* DLP: check state properly

* in a method
2023-06-25 00:47:32 -04:00
Jason Wen
8eb936d440 GAC: check state properly (#181) 2023-06-25 00:38:48 -04:00
Jason Wen
afb446231e Screenrecorder: Remove UI init hack (#180) 2023-06-25 00:31:25 -04:00
Jason Wen
31dccdce3a Merge branch 'master' into dev-priv/master
# Conflicts:
#	CHANGELOGS.md
2023-06-25 00:30:29 -04:00
Jason Wen
c83de72cc4 Disable Screenrecorder (#179)
* ui: split screenrecorder as independent native process

* would this work

* Revert "would this work"

This reverts commit 9ef6e54f0d4161c64682ca98229e92a124e9995e.

* Revert "ui: split screenrecorder as independent native process"

This reverts commit 0b6c7f77ebbe4c39bfc84ada8b0c1d906ccd99d6.

* Let it compile

* start ui very late

* Revert "start ui very late"

This reverts commit b6437ab0172ded0addda66ebd48812fcb356e546.

* remove hack

* ignore 0x80001000

* oops

* Try this

* Check with this

* Revert "remove hack"

This reverts commit 45407b01fc349f0ab7dc1d06214ab28af306b60a.

* Revert "Revert "remove hack""

This reverts commit ad739cbbe93d2266f24dece5ee58dc73a0bf9079.

* Revert "Check with this"

This reverts commit b9c59fc4830e0a89272af01e8f5c086bfd343583.

* Revert "Try this"

This reverts commit ff31bca2794c2dc3541f5d66648fc27eba33094f.

* Revert "oops"

This reverts commit 8a5e56baed75ccdc3890b47cb1a531732b1a4574.

* Revert "ignore 0x80001000"

This reverts commit 24bc8f6f6c9571a75976a39d9a56aa50a91482b4.

* Revert "remove hack"

This reverts commit 45407b01fc349f0ab7dc1d06214ab28af306b60a.

* Revert "Revert "start ui very late""

This reverts commit a5b7d53b73b77a6982db203f6afe5035daffe404.

* Revert "start ui very late"

This reverts commit b6437ab0172ded0addda66ebd48812fcb356e546.

* Revert "Let it compile"

This reverts commit 06e82419fb366a46bef9f6eb06eb13a27b1d15aa.

* Revert "Revert "ui: split screenrecorder as independent native process""

This reverts commit 35618db461a319b138444957e0134e011f6f725b.

* Revert "Revert "would this work""

This reverts commit 25ec02d9dd12eb1166b979e3f6f1d2eac338c12b.

* Revert "would this work"

This reverts commit 9ef6e54f0d4161c64682ca98229e92a124e9995e.

* Revert "ui: split screenrecorder as independent native process"

This reverts commit 0b6c7f77ebbe4c39bfc84ada8b0c1d906ccd99d6.

* Disable Screenrecorder

* Add update
2023-06-25 00:29:14 -04:00
Jason Wen
df1c24b253 ui: E2E Longitudinal Status toggle fix (#177) 2023-06-23 21:33:40 -04:00
Jason Wen
f9ecf5cea1 Merge branch 'master' into dev-priv/master 2023-06-22 21:12:02 -04:00
Jason Wen
7dd66a22c6 fix upstream conflict 2023-06-22 20:43:01 -04:00
Jason Wen
fead5d9d82 Use spFlags for sunnypilot specific features (#171) 2023-06-22 16:38:03 -04:00
Jason Wen
64558ef76a ui tests: skip check 2023-06-22 16:36:07 -04:00
Jason Wen
81f0c6bc63 ui: update driving model name 2023-06-22 15:23:22 -04:00
Jason Wen
78638a4a5f fix upstream conflict 2023-06-22 15:21:19 -04:00
Jason Wen
6df086aa82 Merge branch 'master' into dev-priv/master
# Conflicts:
#	panda
#	selfdrive/car/honda/interface.py
#	selfdrive/car/hyundai/hyundaican.py
#	selfdrive/car/mazda/carstate.py
#	selfdrive/car/nissan/nissancan.py
#	selfdrive/car/subaru/carcontroller.py
#	selfdrive/car/subaru/subarucan.py
#	selfdrive/car/volkswagen/mqbcan.py
#	selfdrive/car/volkswagen/pqcan.py
#	selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py
#	selfdrive/controls/lib/longitudinal_planner.py
#	selfdrive/ui/SConscript
#	selfdrive/ui/qt/offroad/settings.cc
#	selfdrive/ui/qt/onroad.cc
#	selfdrive/ui/translations/main_de.ts
#	selfdrive/ui/translations/main_ja.ts
#	selfdrive/ui/translations/main_ko.ts
#	selfdrive/ui/translations/main_zh-CHS.ts
#	selfdrive/ui/translations/main_zh-CHT.ts
2023-06-22 15:14:15 -04:00
Jason Wen
ad18e2181b Merge branch 'master' into dev-priv/master 2023-06-22 11:54:42 -04:00
Jason Wen
a9bcf732d0 Suppress panda siren if in park gear (#175)
* Suppress panda siren if in park gear

* bump panda
2023-06-21 07:33:00 -04:00
Jason Wen
a9c0e59004 Revert "Skip heartbeat check if in parked gear" (#174)
* bump panda

* Revert "Skip heartbeat check if in parked gear"

* bump panda
2023-06-21 07:23:25 -04:00
Jason Wen
67c7816c35 Merge branch 'master' into dev-priv/master 2023-06-18 22:36:26 -04:00
Jason Wen
4eaaebc592 HKG CAN: Smoother Stopping Performance toggle (#173)
* HKG CAN: Smoother Stopping Performance toggle

* only toggleable offroad
2023-06-18 22:29:54 -04:00
Jason Wen
eeaa6185ff Merge branch 'master' into dev-priv/master 2023-06-18 22:09:29 -04:00
Jason Wen
ce91902139 Jenkins: Manual approval and 10-minute timeout for staging-c3 builds (#172) 2023-06-18 21:21:40 -04:00
Jason Wen
479fe77756 Merge branch 'master' into dev-priv/master 2023-06-18 20:49:28 -04:00
Jason Wen
52a927c08a Merge branch 'master' into dev-priv/master 2023-06-18 20:33:52 -04:00
Jason Wen
fe08549ded Build scripts: disable concurrent builds 2023-06-18 20:23:02 -04:00
Jason Wen
a7771a66aa Build scripts: add identity.sh (#170)
* Build scripts - concurrent builds with Jenkins

* Allow concurrent builds

* Build scripts: add identity.sh
2023-06-18 17:06:02 -04:00
Jason Wen
ab7d30dbfc Build scripts - concurrent builds with Jenkins (#169)
* Build scripts - concurrent builds with Jenkins

* Allow concurrent builds
2023-06-18 16:59:35 -04:00
Jason Wen
5801d081e8 Merge branch 'master' into dev-priv/master 2023-06-18 10:03:58 -04:00
Jason Wen
9868e6df88 Merge branch 'master' into dev-priv/master 2023-06-18 07:16:20 -04:00
Jason Wen
842f18ba3b Jenkins: dev and staging builds (#168)
* Add SP Jenkinsfile

* try this

* or this?

* New method

* good ol method

* how about this

* Revert "how about this"

This reverts commit a05741621f86ea65f727c1814c7fee0a819159ae.

* another new method

* try this

* Revert "try this"

This reverts commit a4456e4167bcb47b2ccd1c0c6b2544379563fcf9.

* Revert "another new method"

This reverts commit 7faea7661e5a660411a9bc68b48f119a1bfca1d2.

* skip for now

* do this

* set env

* this

* run in c3

* building now!

* No concurrent builds

* test no concurrent builds

* try discord notifier

* in description

* don't stop

* try this

* always send

* can we do this?

* in a script pls

* ready

* no need

* take a step back

* test

* misspell

* replace cred

* try this

* quote

* this should send it

* gave it wrong URL

* use explicit url for now

* Revert "use explicit url for now"

This reverts commit 932d0117d1e1720caf5d3f0c6af659457f438e7f.

* use explicit url for now

* try this

* working as-is!
2023-06-18 06:45:30 -04:00
Jason Wen
816fc6e5d7 Build scripts: add exec to staging & dev (#167) 2023-06-17 21:57:14 -04:00
Jason Wen
73113a6b31 Merge branch 'master' into dev-priv/master 2023-06-17 12:38:13 -04:00
Jason Wen
b148b58601 ui: display blinker when blinker is on (#165)
* init

* looks good

* left done

* next to speedometer

* adjusted

* pass in x and y

* color & x

* spaced out properly next to speedometer!

* blindspots and pulsing rate

* fixes

* int instead

* Update CHANGELOGS.md

* add road edge block

* lower

* center a bit more

* that's it!

* only show green when hazard is on
2023-06-17 12:36:07 -04:00
Jason Wen
32ac0b0a2d Merge branch 'master' into dev-priv/master 2023-06-15 19:37:42 -04:00
Jason Wen
ae993522d2 ui: reset all sunnypilot params (#164)
* ui: reset all sunnypilot params

* test successful
2023-06-15 19:36:17 -04:00
Jason Wen
a05b549d9c Merge branch 'master' into dev-priv/master 2023-06-15 18:42:02 -04:00
Jason Wen
17ad67821b Ram HD: ignore paramsd sanity check (#162)
* Ram HD: ignore paramsd sanity check

* can we do this

* this instead
2023-06-15 18:40:14 -04:00
Jason Wen
0063036aa3 MADS: Cruise Main button engage with cruise state available (#163)
* MADS: Cruise Main button engage with cruise state available

* simplify

* Revert "simplify"

This reverts commit 09276bc5d250d4357f593276686045e1359c0c37.
2023-06-15 16:03:24 -04:00
Jason Wen
879041976f Revert "Ram HD: locked Steering Ratio (#156)" (#161)
This reverts commit 8db81e9f4e.
2023-06-15 11:20:18 -04:00
Jason Wen
ea903ccff7 Merge branch 'master' into dev-priv/master 2023-06-15 07:10:07 -04:00
Jason Wen
6e0132856f Fleet Manager: toggle PIN requirement (#160)
* Fleet Manager: toggle PIN requirement

* update the entire title

* update the param

* handle conditions

* update on toggle press
2023-06-15 07:07:10 -04:00
Jason Wen
f762bd2155 Merge branch 'master' into dev-priv/master 2023-06-15 07:03:05 -04:00
Jason Wen
a76ad396c8 Merge branch 'master' into dev-priv/master 2023-06-15 04:15:06 -04:00
Jason Wen
f67b0f5f77 Hyundai: Longitudinal support for CAN-based Camera SCC cars (#139)
* Hyundai: Longitudinal support for CAN-based Camera SCC cars

* gate FCA12 send to CAMERA_SCC_CARS for now

* unused

* sync with upstream PR

* Update CHANGELOGS.md

* Update CHANGELOGS.md

* separate from upstream

* bump panda
2023-06-15 04:14:43 -04:00
Jason Wen
653c3ea5d7 Merge branch 'master' into dev-priv/master 2023-06-14 23:52:10 -04:00
Jason Wen
8db81e9f4e Ram HD: locked Steering Ratio (#156)
* Ram HD: locked SR

* gate to only ram hd

* attribute error

* gotta init first

* define type
2023-06-14 23:48:11 -04:00
Jason Wen
7586395cb4 MADS: Cruise Main button engage always off handling (#155)
* MADS: Cruise Main button engage always off handling

* fix

* change it up
2023-06-14 23:04:47 -04:00
Jason Wen
d50a9a7303 Merge branch 'master' into dev-priv/master 2023-06-14 07:28:58 -04:00
Jason Wen
56232b5535 Merge branch 'master' into dev-priv/master 2023-06-14 07:27:39 -04:00
Jason Wen
7927c72076 Auto Lane Change: Delay execution if lane change was blocked by BSM (#153)
* Auto Lane Change: Delay execution if lane change was blocked by BSM

* add toggle

* add changelogs

* flipped

* show/hide toggles with param updates

* fix docs

* 1 second instead
2023-06-14 07:26:40 -04:00
Jason Wen
9bcfc1a855 ui: Reset Mapbox Access Token button (#152) 2023-06-13 14:05:46 -04:00
Jason Wen
9be71b864a Merge branch 'master' into dev-priv/master 2023-06-13 13:45:47 -04:00
Jason Wen
cfaef14f05 Green Traffic Light Chime: alert status = normal (#151) 2023-06-13 13:43:11 -04:00
Jason Wen
1647175135 mapd: better exceptions handling when loading dependencies (#150)
* mapd: better exceptions handling for loading dependencies

* handle the last

* clean them up
2023-06-13 12:26:11 -04:00
Jason Wen
c9e7ca09e5 Merge branch 'master' into dev-priv/master 2023-06-13 12:24:46 -04:00
Jason Wen
64bc894349 ui: Onroad Screen Off Timer: add additional conditions (#147)
* ui: Onroad Screen Off Timer: add additional conditions

* fix logic and rename

* Update CHANGELOGS.md
2023-06-13 11:40:02 -04:00
Jason Wen
439cad86fd ui: Driving Screen Off: show/hide toggles with param updates (#149)
* ui: Driving Screen Off: show/hide toggles with param updates

* not just yet
2023-06-13 11:37:29 -04:00
Jason Wen
dbab500b23 Sentry: only import sentry module if there are exceptions (#148) 2023-06-13 11:14:47 -04:00
Jason Wen
2f835a9738 Merge branch 'master' into dev-priv/master 2023-06-13 11:06:35 -04:00
Jason Wen
67c62353c4 Merge branch 'master' into dev-priv/master 2023-06-13 05:07:57 -04:00
Jason Wen
10937acba1 Revert "bump to 0.9.2.3"
This reverts commit ec96a0dd9a.
2023-06-13 05:07:51 -04:00
Jason Wen
ec96a0dd9a bump to 0.9.2.3 2023-06-13 05:06:51 -04:00
Jason Wen
5d1e1ccc81 Merge branch 'master' into dev-priv/master 2023-06-13 04:55:28 -04:00
Jason Wen
bbbae5e252 MADS: Toyota: gate LKAS button behind toggle: update description (#146) 2023-06-13 00:29:19 -04:00
Jason Wen
41aa099b3e Merge branch 'master' into dev-priv/master 2023-06-13 00:26:51 -04:00
Jason Wen
2fd9e71bf1 MADS: Toyota: gate LKAS button behind toggle (#145)
* MADS: Toyota: gate LKAS button behind toggle

* better title
2023-06-12 23:26:26 -04:00
Jason Wen
0dae7c7e04 Merge branch 'master' into dev-priv/master 2023-06-12 23:23:01 -04:00
Jason Wen
6b63ac47f6 Ram: always prioritize user button presses (#142)
* Ram: always prioritize user button presses

* Custom Stock Long Control: manual presses need to reset timer

* separate logic for ram_cars

* handle FCA resume button differently
2023-06-12 23:12:39 -04:00
Jason Wen
f3c86bd9dd CSLC: handle FCA resume button differently (#144) 2023-06-12 23:10:55 -04:00
Jason Wen
018cc21025 Custom Stock Long Control: FCA: reset timer with manual button press (#143) 2023-06-12 20:20:24 -04:00
Jason Wen
12be6a0dbb Ram: CRUISE_BUTTONS rx/tx improvements (#138)
* Ram: CRUISE_BUTTONS rx/tx improvements

* unnecessary

* try forwarding everything

* only block tx for speed set/change buttons if cruise not engaged

* separate pacifica and ram

* flip around

* gotta send set buttons too

* rename

* don't check the buttons then

* bump panda

* cleanup
2023-06-12 07:46:10 -04:00
Jason Wen
9e0680cdec Merge branch 'master' into dev-priv/master 2023-06-11 20:08:12 -04:00
Jason Wen
20bd203ca2 Merge branch 'master' into dev-priv/master 2023-06-11 19:52:46 -04:00
Jason Wen
2e7e26ef95 mapd: remove liveMapData and time_since_epoch fix check (#137) 2023-06-11 18:40:04 -04:00
Jason Wen
83efa3738b Sentry: name -> username (#132) 2023-06-11 09:29:23 -04:00
Jason Wen
cb097260c0 ui/SConscript: fix duplicated environment 2023-06-11 08:07:12 -04:00
Jason Wen
a9fd1b36c1 ui: show Target Branch selector for all branches (#129) 2023-06-10 23:31:03 -04:00
Jason Wen
28b0a8f40e Build script: add build_staging.sh (#128) 2023-06-10 22:38:44 -04:00
Jason Wen
eef6588bcd Merge branch 'master' into dev-priv/master 2023-06-10 22:32:30 -04:00
Jason Wen
d5bf4daecf Merge branch 'master' into dev-priv/master 2023-06-10 22:08:30 -04:00
Jason Wen
f6335f1f7b ui: display current driving model in software settings (#127) 2023-06-10 22:04:38 -04:00
Jason Wen
3dc9ffb9bb ui: sunnypilot setting panels refactor (#125)
* General: use ListWidget

* Controls: use ListWidget

* Visuals: use ListWidget

* General: tuple list

* Controls: full refactor based on ListWidget change

* Controls: FINALLYYYYYYY

* Controls: move things around

* check actual toggle as well

* handle this

* Visuals: use ListWidget

* const for

* separate each panel into each file

* rename and move files

* Revert "rename and move files"

This reverts commit 5cfedabe2c6a2cb25355318107f119ade480baac.

* Revert "separate each panel into each file"

This reverts commit aa2c0e9162d5344a5cbbbfaf1ff2bd77d1e5a10b.
2023-06-10 21:12:00 -04:00
Jason Wen
c566e87b61 ui: sunnypilot Vehicles panel refactor (#126)
* take out toyota stock long for now

* remove scrollbar (use in other areas!)

* use ListWidget for toggles

* Revert "remove scrollbar (use in other areas!)"

This reverts commit 0b6bbc49e968598b204558060e04fb6f64ad1977.

* turn off scrollbar

* new fcr styling
2023-06-10 12:08:49 -04:00
Jason Wen
bf19c7dddf ui: ensure driving path is colored when cruise state enabled (#124) 2023-06-10 06:58:49 -04:00
Jason Wen
547059a67f Merge branch 'master' into dev-priv/master 2023-06-10 06:36:44 -04:00
Jason Wen
baf96a4f87 Build script improvements (#123)
* add build_dev

* udpate build_release
2023-06-10 06:34:38 -04:00
Jason Wen
48391b6b5c Build Release: files cleanup (#122) 2023-06-10 02:00:45 -04:00
Jason Wen
526b106c9a Merge branch 'master' into dev-priv/master 2023-06-10 01:49:14 -04:00
Jason Wen
c8aff167bb Fleet Manager: rolling PIN implementation (#121)
* Fleet Manager: rolling PIN implementation

* format

* spacing

* use scheduler

* use thread
2023-06-10 01:02:58 -04:00
Jason Wen
b341c81522 ui: CPU temperature on sidebar: rate limit to refresh every second (#120)
* cleaner

* ui: CPU temperature on sidebar: rate limit to refresh every second
2023-06-09 23:20:11 -04:00
Jason Wen
8f5a6b129b Merge branch 'master' into dev-priv/master 2023-06-09 18:11:01 -04:00
Jason Wen
1bc6193d3d ui: update SidebarCpuTemp toggle name (#119) 2023-06-09 18:10:29 -04:00
Jason Wen
34619be925 Revert "ui: update SidebarCpuTemp toggle name"
This reverts commit 6a8f789816.
2023-06-09 18:09:13 -04:00
Jason Wen
6a8f789816 ui: update SidebarCpuTemp toggle name 2023-06-09 18:07:48 -04:00
Jason Wen
b006e48a2d ui: display CPU temperature on sidebar (#118)
* ui: display CPU temperature on sidebar

* ui: display CPU temperature on sidebar

* take it out for now

* Revert "take it out for now"

This reverts commit 3e7daa11f6a3e8ed6dec92df02bb4c390c99583c.

* small changes

* push this

* string

* flip???

* no setproperty

* check param every 1 second

* wrong param!

* do this

* flip them back

* don't need this
2023-06-09 18:06:37 -04:00
Jason Wen
63fb07b4b8 Merge branch 'master' into dev-priv/master 2023-06-09 18:03:27 -04:00
Jason Wen
dde5309015 Tmux error viewer: catch more exceptions (#117)
* Tmux error viewer: new file name convention and cleanup

* log in local_osm_install

* show on ui

* add this

* not needed

* just need these

* unused

* log custom_dep

* rename

* cleaner
2023-06-09 15:11:31 -04:00
Jason Wen
1a87f92097 ui: show path color when cruise state enabled (#116) 2023-06-09 11:12:36 -04:00
Jason Wen
a88941837b Merge branch 'master' into dev-priv/master 2023-06-09 09:36:10 -04:00
Jason Wen
f39ea7e446 mapd: smaller query radius to lower RAM usage (#115) 2023-06-09 09:09:53 -04:00
Jason Wen
e6ce327b8c mapd: Preload dependencies (#114)
* exclude third_party/mapd/ from gitignore

* all mapd dependencies

* exclude more

* more dependencies!

* add to files_common

* add script to compress locally

* compressed dependencies

* Revert "more dependencies!"

This reverts commit 0cd08beb3fa81b5e037ceb41b5e0554261c56dd5.

* Revert "all mapd dependencies"

This reverts commit b1a19b82b3911313e543a91d77ece124f5e7ded0.

* decompress preloaded deps

* fix path

* use xz

* fix script

* update deps

* no need

* strip first level

* missed this

* try that

* not needed

* try except extraction

* handle exception

* unused

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-06-09 09:04:12 -04:00
Jason Wen
100aa5685b gpxd: Filesystem permission error handling (#113)
* gpxd: Filesystem permission error handling

* convert to string

* shadow name
2023-06-09 07:25:22 -04:00
Jason Wen
9a78c0a776 Revert "mapd: Preload dependencies (#111)" (#112)
This reverts commit 00351268b4.
2023-06-09 07:01:58 -04:00
Jason Wen
00351268b4 mapd: Preload dependencies (#111)
* exclude third_party/mapd/ from gitignore

* all mapd dependencies

* exclude more

* more dependencies!

* add to files_common
2023-06-09 02:49:50 -04:00
Jason Wen
9737b0d366 Retain hotspot/tether: start later in manager (#110) 2023-06-09 00:34:26 -04:00
Jason Wen
9171aa6718 Merge branch 'master' into dev-priv/master 2023-06-08 23:19:15 -04:00
Jason Wen
9cdb838557 Controls: Custom Stock Longitudinal Control (#61)
* Custom Stock Longitudinal Control - base

* HKG

* simpler

* expose toggle

* allow events and engagements

* gate hysteresis for now

* screen tap SLC logic

* Honda

* update with submaster

* Revert "simpler"

This reverts commit 61b9a02faec721d4460c50c6e3f81b7d459d506b.

* send to cereal

* handle new pcm cruise engagement on HKG

* small cleanup

* define vehicle-specific lowest set speed

* not fitting

* new logic to help with weird rapid spam

* comment

* gaspressed don't override

* slow down button send when 2 values away

* less complex

* round them up

* Revert "less complex"

This reverts commit d850c404cccca5940f4e861c5df0317a38a4ab6b.

* gotta convert

* only slow down for slc and normal

* gaspress allow override

* no delay

* gate behind custom stock long

* add hysteresis to curve speed button sends

* remove limiting for Honda

* Revert "remove limiting for Honda"

This reverts commit b50f6199508e313fa1a30e1ab74970c507d89d78.

* 20/4 hz

* 25 times, just like old times

* god damn slow it down

* faster

* a tad bit faster

* slower at the end

* Volkswagen

* more checks

* log vw customs stock long

* change it up

* change it up for vw checks

* oops

* make sure it sends 10 times before changing to another button sets

* unnecessary

* use different count

* better logic

* bring back speed_diff

* vw: faster

* chrysler support

* mazda support

* fixup! chrysler support

* bump panda

* bump panda

* fix upstream merge

* Enable for Mazda

* initial and lowest set speed for all supported brands

* use buttonEvents from carstate for FCA and Mazda

* gate this behind non PCM only

* lower calls

* fix counter in button send

* log FCA and Mazda

* format

* just send one copy

* FCA: make SET+ set instead of resume

* Nicki Minaj Model (#28218)

* New model: 2ff7490f-8a2f-4c0d-87a8-b0fa3a4a6a71

* Updated model_replay_ref_commit

(cherry picked from commit 328b5d9d47)

* Revert "FCA: make SET+ set instead of resume"

This reverts commit 523a0537b728e8243e9cecb47169799d519aac3f.

* try this out

* try to match jvepilot's logic

* send with extra incrementing counts

* Revert "Revert "FCA: make SET+ set instead of resume""

This reverts commit f414a51e784b040d0f04881adcfc78d7faacda2a.

* have to block it

* lower send at 4 Hz

* can't be int

* 10 Hz max, 1 copy

* mazda send at 10 Hz

* chrysler at 10 hz

* send at 10 Hz

* remove this check for vw for now

* hkg can-fd go back to 4Hz, 1 copy

* hkg can-fd go back to 5Hz, 1 copy

* vw: different send freq logic

* Set cruise button every frame for FCA and HKG

* Set cruise button every frame for Mazda

* Revert "Set cruise button every frame for HKG"

* can't use brackets

* FCA: only send if counter has changed

* HKG CAN-FD: only send if counter has changed

* only up button frame if needed

* Revert "Set cruise button every frame for FCA"

* HKG CAN-FD: fix name

* FCA: handle resume button press engage cruisestate enabled

* FCA: separate RAM and non-RAM

* bump panda (test CAN Bus Disconnected bad commit)

* bump panda

* bump panda

* Revert "Nicki Minaj Model (#28218)"

This reverts commit 348f68b68c0bd2fcb6fdd6269e911d63ada968b4.

* gate behind customStockLong

---------

Co-authored-by: Mitchell Goff <mitchellgoffpc@gmail.com>
2023-06-08 23:10:48 -04:00
Jason Wen
9644ea30d8 Merge branch 'master' into dev-priv/master 2023-06-08 22:56:59 -04:00
Jason Wen
5570211c10 Tools: autogenerate all supported platforms (#107)
* init script

* Parse and generate json

* move to scripts

* no print

* ford is supported
2023-06-08 22:41:14 -04:00
Jason Wen
b5b85ca64f Merge branch 'master' into dev-priv/master 2023-06-08 22:38:35 -04:00
Jason Wen
f182323cf3 Merge branch 'master' into dev-priv/master
# Conflicts:
#	selfdrive/manager/process_config.py
2023-06-08 20:33:08 -04:00
Jason Wen
64b47e89ab Add staging-c3 and release-c3 as tested branches 2023-06-08 17:16:06 -04:00
Jason Wen
75f23637dc ui: don't grey out Error Troubleshoot when onroad (#105) 2023-06-08 17:01:23 -04:00
Jason Wen
46c9d00516 Release branch redefinition 2023-06-08 12:12:46 -04:00
Jason Wen
5d3caec440 ui: move Error Troubleshoot to Device menu (#102) 2023-06-08 12:31:20 -04:00
Jason Wen
ddf590e6d2 Merge branch 'master' into dev-priv/master 2023-06-08 11:45:24 -04:00
Jason Wen
869573d282 GAC: new implementation and jerk changes (#95)
* GAC: Harald's method

* unused

* match harald's

* Revert "match harald's"

This reverts commit f2015eb2d8ffe80f8e02ffb92bd1d244dbfdb38c.

* try this

* Revert "try this"

This reverts commit 993adce26f594c5d2da1752657fe3af21c17cd27.

* do this instead

* fix

* cleanup

* align with harald's method

* fix init at 0

* use cereal

* unused

* maniac, aggro, stock

* unused

* fake lead when no lead

* print desired following distance from lead_0

* default at 3

* update carstate obj

* clip this

* use actual profiles

* cleanup

* scale maniac text smaller

* should be 1
2023-06-08 11:22:26 -04:00
Jason Wen
780c83102e MADS: FCA: add LKAS button (#97)
* MADS: FCA Ram: add LKAS button

* FCA: add LKAS button and heartbit send

* bump panda

* non-Ram only

* non-Ram only too

* Revert "FCA: RAM HD - steer down to 0 (hardware modification required)"

* make sure cruise button is forwarded?!

* only check tx for CHRYSLER_PACIFICA, forward all cruise buttons for Ram

* add fw for not working ram 1500 and hd

* Revert "add fw for not working ram 1500 and hd"

This reverts commit 6f60b488ac1cebdbcafaa62ea4df097fd765b7d8.

* add fw for not working ram 1500 and hd

* use this logic

* fixup! use this logic

* does it help?

* Revert "does it help?"

This reverts commit 6cca9105459dd50d657ded94cba863baa0c6151d.

* Revert "fixup! use this logic"

This reverts commit 3a0d43ef76c762244e9edfab5497de9c55ccd468.

* Revert "use this logic"

This reverts commit 337eb1596f1a4e782d11fb15c0bdfe76763fd0d0.

* set event

* Revert "make sure cruise button is forwarded?!"

This reverts commit 1b51818c89fbf31315d1c992efb96298c7b63899.

* Revert "only check tx for CHRYSLER_PACIFICA, forward all cruise buttons for Ram"

This reverts commit c72ef05cf0f4450d21a2be7ddbc1c50273570cc4.

* Revert "Revert "FCA: RAM HD - steer down to 0 (hardware modification required)""

This reverts commit 0849fdc1f1557807af83d8c69fb7432743a95b2d.

* Can't use upstream to check EPS fw for minEnableSpeed

* reversed

* revert and wait for upstream

* bump panda
2023-06-08 10:45:35 -04:00
Jason Wen
c032563908 Merge branch 'master' into dev-priv/master 2023-06-08 09:58:20 -04:00
Jason Wen
75ca9e18e1 Merge branch 'master' into dev-priv/master 2023-06-08 09:48:14 -04:00
Jason Wen
2cf7e23b83 files common: dashcamviewer ▶️ fleetmanager 2023-06-07 17:33:28 -04:00
Jason Wen
48c440f24d Merge branch 'master' into dev-priv/master
# Conflicts:
#	selfdrive/manager/process_config.py
2023-06-07 17:22:21 -04:00
Jason Wen
8c41f9a81e Sentry: set environment tag properly (#101) 2023-06-07 16:06:54 -04:00
Jason Wen
df185e6ead Merge branch 'master' into dev-priv/master 2023-06-07 02:12:24 -04:00
Jason Wen
199aabb476 Merge branch 'master' into dev-priv/master 2023-06-06 21:01:50 -04:00
Jason Wen
65de8af740 GAC: allow profile changes in Experimental Mode (#99) 2023-06-06 16:51:24 -04:00
Jason Wen
955926a80e Block Enhanced Speed Control events on unsupported platforms (#98) 2023-06-06 14:45:41 -04:00
Jason Wen
a2b8970a83 Merge branch 'master' into dev-priv/master
# Conflicts:
#	CHANGELOGS.md
2023-06-06 01:27:55 -04:00
Jason Wen
899eb2e99f Merge branch 'master' into dev-priv/master 2023-06-05 22:54:17 -04:00
Jason Wen
cd7bed1d2e Merge branch 'master' into dev-priv/master 2023-06-05 22:31:46 -04:00
Jason Wen
95078c22d5 CarState: update objects when refreshing params (#96) 2023-06-05 17:16:57 -04:00
Jason Wen
8a9bec3a82 Don't append immediate disable events if in park gear (#94) 2023-06-05 15:32:47 -04:00
Jason Wen
091d662a5e Merge branch 'master' into dev-priv/master 2023-06-05 12:43:28 -04:00
Jason Wen
d94abf9e2e Sentry: tag improvements (#93)
* Sentry: include dongle_id, ip_address, gitname

* allow default pii

* use sentry default ip query

* use sentry auto ip

* unused
2023-06-04 20:41:30 -04:00
Jason Wen
a3d632ad0a Merge branch 'master' into dev-priv/master 2023-06-03 21:09:22 -04:00
Jason Wen
6cfc7a76a1 Separate Lead Vehicle Departure Alert from E2E Status (#88) 2023-06-03 19:13:51 -04:00
Jason Wen
013221c06d Merge branch 'master' into dev-priv/master 2023-06-03 01:55:40 -04:00
Jason Wen
69698381c5 Merge branch 'master' into dev-priv/master 2023-06-03 01:19:36 -04:00
Jason Wen
5ea521920b ui: back button change (#91) 2023-06-03 00:50:31 -04:00
Jason Wen
f627a34e47 Retain hotspot/tethering state across reboots (#89)
* Retain tethering state across reboots

* store state

* Update CHANGELOGS.md

* Add toggle to "SP - General"

* Network icon
2023-06-03 00:17:13 -04:00
Jason Wen
c4fc609883 ui: remove unused toggles (#90) 2023-06-03 00:13:38 -04:00
Jason Wen
75ec6119fd Merge branch 'master' into dev-priv/master 2023-06-03 00:04:48 -04:00
Jason Wen
e4668cbf4f ui: delay DM camera initialization when reversing (#87)
* ui: delay DM camera initialization when reversing

* faster
2023-06-02 21:24:15 -04:00
Jason Wen
892ce2754b Merge branch 'master' into dev-priv/master 2023-06-02 18:21:01 -04:00
Jason Wen
a0a70f563f Merge branch 'master' into dev-priv/master 2023-06-02 18:17:36 -04:00
Jason Wen
d465138f1d MADS: Cruise Main button engage fix (#86)
* MADS: Cruise Main button engage fix

* take this out on HKG side

* fix for HKG

* no need to update
2023-06-01 19:38:47 -04:00
Jason Wen
8179a56926 Add toggle for Road Edge Detection (#85) 2023-05-31 13:25:05 -04:00
Jason Wen
e5525f6bc0 Merge branch 'master' into dev-priv/master 2023-05-31 13:24:12 -04:00
Jason Wen
5728cd7b7a ui: screen touch fixes (#84)
* ui: don't toggle map if buttons are hidden

* keep button the same height during screen touches

* fixed height
2023-05-31 13:06:23 -04:00
Jason Wen
f107f51b4a Screenrecorder cleanup and 1 minute clip (#83)
* Record from OnroadWindow

* not from here

* not needed

* make it whole

* Revert "make it whole"

This reverts commit 318c28c1ac921b52672fdd4665d903c2bdf5ef41.

* Revert "not needed"

This reverts commit 45d9707736b942b3a671bf853333a35741beb079.

* Revert "not from here"

This reverts commit 1bb002ff86630f3b1f6c6171606e4f7a8922253b.

* Revert "Record from OnroadWindow"

This reverts commit f4ceab4d9f4f1be992ba447c1474fdd47063c41b.

* cleaning

* cleaning

* 1 min per clip

* remove

* add back
2023-05-31 03:18:52 -04:00
Jason Wen
356a601d20 MADS: add toggle for Cruise Main button engage (#82)
* MADS: add toggle for Cruise Main button engage

* add toggle
2023-05-30 22:52:29 -04:00
Jason Wen
99de69095c Merge branch 'master' into dev-priv/master 2023-05-30 22:40:06 -04:00
Jason Wen
828ef6e6a5 Merge branch 'master' into dev-priv/master 2023-05-30 22:03:56 -04:00
Jason Wen
674b416d11 Merge branch 'master' into dev-priv/master 2023-05-30 21:28:32 -04:00
Jason Wen
9c32204bb4 Add Honda Clarity DBC to files_common 2023-05-30 10:30:52 -04:00
Jason Wen
7f1edf0966 Add dashcamviewer to files_common 2023-05-30 00:14:34 -04:00
Jason Wen
a75f5adf2a Merge branch 'master' into dev-priv/master
# Conflicts:
#	CHANGELOGS.md
#	panda
2023-05-30 00:02:11 -04:00
Jason Wen
b2f3d576ba Merge branch 'master' into dev-priv/master 2023-05-29 22:08:33 -04:00
Jason Wen
b6a5f0e6b9 Road Edge Detection (#75)
* don't initialize lane change if road edge detected

* add event

* use frog's method

* sync name

* unused

* Only block during preLaneChange

* change it up
2023-05-29 21:47:56 -04:00
Jason Wen
c69e49c064 Merge branch 'master' into dev-priv/master
# Conflicts:
#	selfdrive/manager/process_config.py
2023-05-29 19:35:21 -04:00
Jason Wen
f52b52b1d4 Merge branch 'master' into dev-priv/master
# Conflicts:
#	panda
2023-05-29 10:51:28 -04:00
Jason Wen
5f01dca186 Visuals: Remove Navigation Full Screen toggle (#80) 2023-05-29 02:05:33 -04:00
Jason Wen
eba305649d Hide Stand Still Timer when map is visible 2023-05-28 23:38:47 -04:00
Jason Wen
30328c50a4 Don't trigger CAN bus timeout if in park gear 2023-05-28 23:04:54 -04:00
Jason Wen
d27eb2b4b8 Skip heartbeat check if in parked gear (#79)
* Skip heartbeat check if parked

* bump panda
2023-05-28 22:56:37 -04:00
Jason Wen
10d2fbb0b8 Merge branch 'master' into dev-priv/master
# Conflicts:
#	panda
2023-05-28 19:53:22 -04:00
Jason Wen
184b3aaf99 Lead Vehicle Departure Alert: fix relative distance parsing (#78) 2023-05-28 17:40:08 -04:00
Jason Wen
ef5d612475 Revert "change it up (#76)" (#77)
This reverts commit ab6116776b.
2023-05-28 17:39:31 -04:00
Jason Wen
ab6116776b change it up (#76) 2023-05-28 17:39:20 -04:00
Jason Wen
28d3ebe95b Merge branch 'master' into dev-priv/master 2023-05-28 01:38:52 -04:00
Jason Wen
7e052e77ee Merge branch 'master' into dev-priv/master 2023-05-28 00:50:34 -04:00
Jason Wen
633cdaca9b Merge branch 'master' into dev-priv/master 2023-05-28 00:26:12 -04:00
Jason Wen
39006f7401 Invert DM cam if reversing (#74) 2023-05-27 23:59:18 -04:00
Jason Wen
50a96c9a92 General: Lead Vehicle Departure Alert (#73)
* UI: Display E2E Longitudinal status icon

* don't forget init

* take these out

* and this

* can't leave this

* spam the event

* publish here instead

* try this now

* expose the toggle

* Spam all the time!!!

* Spam all the time with this!

* see if this works

* new way to trigger

* fix

* another one

* more to it

* more of that

* move to car controls instead

* no longer needed

* 20 hz

* unnecessary

* send like this pls

* move to long planner

* let's see what it looks like first

* don't alert yet lol

* re-enable and try out prompt!

* move chime event to longitudinal_planner

* AlertStatus to userPrompt

* Add more reset conditions

* less conditions to test first

* louder sound

* permanent alert

* LOUDER SON!

* use stock prompt

* Revert "less conditions to test first"

This reverts commit b24a096e65e80f303f7d92072cdf273a30dd37e2.

* remove lead car take off alert (in separate PR)

* cleanup

* longer

* Nicki Minaj Model (#28218)

* New model: 2ff7490f-8a2f-4c0d-87a8-b0fa3a4a6a71

* Updated model_replay_ref_commit

(cherry picked from commit 328b5d9d47)

* use the event

* move logic to c++

* cleanup

* no prompt border

* use brake light from car state

* lead car take off event

* lead car take off event

* always reset last distance

* show border when prompted

* remove lead car take off alert (in separate PR)

* don't prompt when lead car detected

* Revert "Nicki Minaj Model (#28218)"

This reverts commit b25e96c9d8fe0ac3a93c97eec2e91064c12a5649.

* bad sounds

* simpler

* lead car takeoff prompt

* log to tmux

* Nicki Minaj Model (#28218)

* New model: 2ff7490f-8a2f-4c0d-87a8-b0fa3a4a6a71

* Updated model_replay_ref_commit

(cherry picked from commit 328b5d9d47)

* only print when stopping or starting

* remove debug msgs

* Revert "Nicki Minaj Model (#28218)"

This reverts commit 4fa06f12db858f65570bbf4bc2d9ee1709aead19.

---------

Co-authored-by: Mitchell Goff <mitchellgoffpc@gmail.com>
2023-05-27 13:35:11 -04:00
Jason Wen
0372bf8e11 UI: E2E longitudinal status icon and prompt chime (#23)
* UI: Display E2E Longitudinal status icon

* don't forget init

* take these out

* and this

* can't leave this

* spam the event

* publish here instead

* try this now

* expose the toggle

* Spam all the time!!!

* Spam all the time with this!

* see if this works

* new way to trigger

* fix

* another one

* more to it

* more of that

* move to car controls instead

* no longer needed

* 20 hz

* unnecessary

* send like this pls

* move to long planner

* let's see what it looks like first

* don't alert yet lol

* re-enable and try out prompt!

* move chime event to longitudinal_planner

* AlertStatus to userPrompt

* Add more reset conditions

* less conditions to test first

* louder sound

* permanent alert

* LOUDER SON!

* use stock prompt

* Revert "less conditions to test first"

This reverts commit b24a096e65e80f303f7d92072cdf273a30dd37e2.

* remove lead car take off alert (in separate PR)

* cleanup

* longer

* Nicki Minaj Model (#28218)

* New model: 2ff7490f-8a2f-4c0d-87a8-b0fa3a4a6a71

* Updated model_replay_ref_commit

(cherry picked from commit 328b5d9d47)

* use the event

* move logic to c++

* cleanup

* no prompt border

* use brake light from car state

* lead car take off event

* lead car take off event

* always reset last distance

* show border when prompted

* remove lead car take off alert (in separate PR)

* don't prompt when lead car detected

* Revert "Nicki Minaj Model (#28218)"

This reverts commit b25e96c9d8fe0ac3a93c97eec2e91064c12a5649.

* bad sounds

* simpler

---------

Co-authored-by: Mitchell Goff <mitchellgoffpc@gmail.com>
2023-05-27 13:32:05 -04:00
Jason Wen
6cee8b6827 Merge branch 'master' into dev-priv/master 2023-05-27 12:26:38 -04:00
Jason Wen
28aef88932 MADS: Remove global cruise cancel and Toyota cruise cancel (#72)
* remove global check for now, refactor later

* Toyota cruise cancel fix

* add this back

* add this back
2023-05-27 12:08:52 -04:00
Jason Wen
3119402f4e Merge branch 'master' into dev-priv/master 2023-05-27 12:05:03 -04:00
Jason Wen
9c1dc31998 bump panda 2023-05-27 00:16:45 -04:00
Jason Wen
9434ad909e Screenrecorder: stop recording when transition to offroad (#71)
* Screenrecorder: stop recording when transition to offroad

* slower ui start
2023-05-25 16:16:10 -04:00
Jason Wen
4d3a97a5d5 fix upstream conflict 2023-05-25 13:35:01 -04:00
Jason Wen
dba3eb7a50 fix upstream conflict 2023-05-25 12:50:37 -04:00
Jason Wen
141c04e46f Merge branch 'master' into dev-priv/master 2023-05-25 12:46:27 -04:00
Jason Wen
6ef022758e fix upstream conflict 2023-05-25 12:42:33 -04:00
Jason Wen
a0d162ccd9 Merge branch 'master' into dev-priv/master
# Conflicts:
#	panda
#	selfdrive/car/nissan/carcontroller.py
#	selfdrive/car/subaru/subarucan.py
#	selfdrive/controls/controlsd.py
#	selfdrive/controls/lib/lateral_planner.py
#	selfdrive/ui/qt/offroad/settings.cc
#	selfdrive/ui/qt/onroad.cc
#	selfdrive/ui/ui.cc
2023-05-25 12:39:32 -04:00
Jason Wen
e94386dc96 bump panda 2023-04-28 03:36:22 -04:00
Jason Wen
17854dc2d2 mapd: add Germany to offline OSM database list (#70) 2023-04-28 03:32:24 -04:00
Jason Wen
b4fa677656 bump panda 2023-04-25 23:14:52 -04:00
Jason Wen
ebd82c18c5 Merge branch 'master' into dev-priv/master 2023-04-25 02:21:05 -04:00
Jason Wen
a8705ad033 Merge branch 'master' into dev-priv/master 2023-04-25 01:45:17 -04:00
Jason Wen
9c84fa7434 Merge branch 'master' into dev-priv/master
# Conflicts:
#	panda
#	release/files_common
#	selfdrive/car/hyundai/carcontroller.py
#	selfdrive/car/hyundai/carstate.py
#	selfdrive/car/hyundai/hyundaicanfd.py
#	selfdrive/car/interfaces.py
#	selfdrive/car/subaru/carcontroller.py
#	selfdrive/car/subaru/subarucan.py
#	selfdrive/car/toyota/interface.py
#	selfdrive/ui/translations/main_pt-BR.ts
2023-04-25 01:42:45 -04:00
Jason Wen
a3f4c24f4c ui: Display DM camera when reversing (#69)
* ui: show driver monitoring camera in reverse gear

* oops

* hide extra UIs if toggle enabled
2023-04-25 00:56:08 -04:00
Jason Wen
0d6d336f63 Ignore gpxd crash in manager 2023-04-01 23:16:47 -04:00
Jason Wen
a136c8568e Merge branch 'master' into dev-priv/master 2023-04-01 12:52:07 -04:00
Jason Wen
710525544c sunnypilot: HKG CAN: non-SCC platform support (#58)
* MADS: HKG: non-SCC support

* remove dashcamOnly in priv

* add fw for 2019 Kia Forte non scc

* add to torque params
2023-03-31 23:33:44 -04:00
Jason Wen
18e36f3b7f ui: auto-hide UI buttons (#67)
* draft

* only in dlp button for now

* update with uiState

* Revert "update with uiState"

This reverts commit cbc755f0601c2595f7357c61a486c570000ecb3c.

* independent variable

* it works!

* faster

* prep for other elements

* apply to brightness checks

* proper

* lasts 30 seconds for now

* init at -1

* fade in when first tapped

* fade in finish at 250ms

* fade in finish at 100ms

* gate behind a toggle now

* redisplay button if tapped before disappear

* apply on gac

* only allow press when at 100% opacity
2023-03-31 23:30:31 -04:00
Jason Wen
72ba1c3e39 Merge branch 'master' into dev-priv/master
# Conflicts:
#	panda
#	selfdrive/car/honda/carcontroller.py
#	selfdrive/car/interfaces.py
#	selfdrive/ui/translations/main_de.ts
#	selfdrive/ui/translations/main_ja.ts
#	selfdrive/ui/translations/main_ko.ts
#	selfdrive/ui/translations/main_pt-BR.ts
#	selfdrive/ui/translations/main_zh-CHS.ts
#	selfdrive/ui/translations/main_zh-CHT.ts
2023-03-30 23:14:39 -04:00
Jason Wen
5c8db326cf small mpc fix (#68)
* small change

* use actual long engaged cereal
2023-03-30 22:57:22 -04:00
Jason Wen
4a9e96375b Merge branch 'master' into dev-priv/master 2023-03-30 00:04:43 -04:00
Jason Wen
b1c12dedc7 MADS: enforce longitudinal allowed check on auto-resume (#66)
* bump panda

* MADS: enforce long allowed on auto-resume
2023-03-29 21:28:43 -04:00
Jason Wen
c5f0b9ab47 Merge branch 'master' into dev-priv/master 2023-03-29 17:54:21 -04:00
Jason Wen
a7f756fee5 MADS: better doorOpen event logic (#65)
* MADS: better doorOpen event logic

* unnecessary
2023-03-28 19:03:59 -04:00
Jason Wen
c30c140866 Merge branch 'master' into dev-priv/master
# Conflicts:
#	panda
2023-03-28 17:17:32 -04:00
Jason Wen
e1403b4771 ui: update controls state to wake screen during events (#64) 2023-03-27 23:12:16 -04:00
Jason Wen
6128f92a5e Merge branch 'master' into dev-priv/master 2023-03-27 22:10:12 -04:00
Jason Wen
989b8b251d ui: only show overriding set speed states when gas pressed (#63) 2023-03-27 02:15:02 -04:00
Jason Wen
9c3bceb9f3 Merge branch 'master' into dev-priv/master 2023-03-26 13:57:39 -04:00
Jason Wen
688134a603 bump panda 2023-03-25 23:15:09 -04:00
Jason Wen
1762a2adc0 MADS: Nissan: correct cruise state busses and signals (#62) 2023-03-25 23:13:42 -04:00
Jason Wen
1d0e38fce5 Merge branch 'master' into dev-priv/master 2023-03-25 22:42:41 -04:00
Jason Wen
944f066628 Merge branch 'master' into dev-priv/master 2023-03-25 10:09:46 -04:00
Jason Wen
823cc11b80 MADS: disallow manualLongitudinalRequired when cancel without button (#60) 2023-03-25 07:10:09 -04:00
Jason Wen
ed26cac599 mapd: add hysteresis to prevent rapid road name change (#59) 2023-03-25 00:18:06 -04:00
Jason Wen
e45a5815b8 Merge branch 'master' into dev-priv/master 2023-03-25 00:07:46 -04:00
Jason Wen
8aab7b82b6 Merge branch 'master' into dev-priv/master 2023-03-24 17:34:58 -04:00
Jason Wen
ee0dfacb93 Merge branch 'master' into dev-priv/master
# Conflicts:
#	panda
#	selfdrive/car/car_helpers.py
#	selfdrive/car/toyota/interface.py
#	selfdrive/ui/ui.cc
2023-03-24 15:24:05 -04:00
Jason Wen
c726a82eaf mapd: offline/local OpenStreetMap database, Feature Speed Limits (#55)
* mapd: offline/local database

* link overpy before manager

* add path to deps

* down here

* this too

* don't force redownload/reinstall unless db not current

* make things neater in json

* small fix

* Revert "small fix"

This reverts commit dbc70ee6d40b51e4d7c4a4af4523d23737350905.

* Revert "make things neater in json"

This reverts commit 1b244c552c1bf877e8b6bf879ca73ebf72617025.

* neater attempt 2 (no reboot for now)

* neater attempt 2 (no reboot for now)

* "selected" not working

* make it stick

* already QString

* check when menu is up

* check when menu is up

* interactive buttons

* add label to inform users about car off

* update texts

* set all params properly

* clean up ui logic

* test

* revert

* ui logic again

* interactive button

* after confirmation updates

* only check when selected

* stop signs?

* bruh

* missed

* small cleanup

* query for real from local db

* Revert "query for real from local db"

This reverts commit d7eb664da2949b073c7d7eb00e0098aa01c83ad3.

* don't hold in same object

* remote server as fallback if local server fails

* use different waypoint

* use function

* declare missing vars

* skip SSL/TLS verification

* fallback to online query if local query fails

* don't prompt to reboot if none is selected

* update ui on press

* Revert "skip SSL/TLS verification"

This reverts commit 2eb5c0972a08227edbfc4f50c38d22d2ced62423.

* simplier

* handle ConnectionError

* point to sunnypilot-osm S3 bucket

* revert freq of road name

* small cleanup

* small cleanup

* revert

* cleanup

* TEMP: test online/offline switchover

* Revert "TEMP: test online/offline switchover"

This reverts commit 4641b8e6f26f4015559a9aff2271f1850708ab09.

* set user-agent

* more databases!

* new urls

* TEST: remove check here

* parse timestamp from file content instead of HEAD Last Modified

* not correct

* wrong var

* don't need this

* have list in cpp

* don't read from json

* provide expectation

* add var to gate feature speed limits

* remove unused
2023-03-24 14:46:14 -04:00
Jason Wen
e28aa306aa pre-commit: skip all checks for now 2023-03-24 14:35:58 -04:00
Jason Wen
ecd3b9ab30 Merge branch 'master' into dev-priv/master 2023-03-24 14:09:09 -04:00
Jason Wen
66e0c7206b mapd: use MADS attribute for openpilot state (#57) 2023-03-21 22:32:20 -04:00
Jason Wen
b1efbc48b2 MADS: initialize set speed when in override state (#56) 2023-03-21 14:52:08 -04:00
Jason Wen
d0e21fc6c8 ui: shorter inner radius in corners (#54) 2023-03-15 23:22:10 -04:00
Jason Wen
a8aa8dbb8a ui: round border corners (#53) 2023-03-14 05:21:08 -04:00
Jason Wen
58bf23e2c4 Merge branch 'master' into dev-priv/master 2023-03-12 17:11:17 -04:00
Jason Wen
d124f62078 ui: developer ui (#48)
* Hide 2nd row dev UI when map is visible

* Dev UI init

* fixup! Dev UI init

* fixup! Dev UI init

* fixup! Dev UI init

* fixup! Dev UI init

* fixup! Dev UI init

* fixup! Dev UI init

* Disable lateraState for now?

* Revert "Disable lateraState for now?"

This reverts commit ff669862e9ab7cfe421a0266dfc503b3b190143a.

* add cs.laterelState

* should be bool

* bruh

* change dm icon too

* Bruh should be y

* don't draw border

* bolded text

* bring back memory usage

* angleSteer status color

* move it higher

* higher

* lower

* closer together

* Move this button too

* fixup! Move this button too

* Move this text?

* to the left

* left and down

* missed an argument

* move them a bit

* readjust bottom row positioning

* test position

* revert to this

* wider!

* proper space reference

* unused

* other method

* fix

* shorter

* more spaces

* wider

* do it like this

* should be width

* add on top

* wider

* lineup right

* align this right

* different one

* try this

* fix

* align right!

* make unit strings standalone

* Try this out

* adjust

* align to unit strings

* adjust!

* adjust!

* Revert "adjust!"

This reverts commit 748b74c21a986b4ed62acdcceb83226ff523e5ce.

* Revert "adjust!"

This reverts commit 4f5373b0de503203098c5fd495e72227f4525be4.

* more adjust

* final adjust?

* final adjust?

* wider

* keep left

* Try this out

* more together

* hmm

* adjust

* align differently

* adjust final

* adjust more

* adjust more

* Try this out

* last

* Try this

* Try that

* wider

* only check when starting

* comment

* remove second column and second row; change settings to 5 or 10 metrics; implement in future PRs

* fixup! remove second column and second row; change settings to 5 or 10 metrics; implement in future PRs

* fixup! remove second column and second row; change settings to 5 or 10 metrics; implement in future PRs
2023-03-12 16:23:00 -04:00
Jason Wen
97b21eb0dd MADS: don't show cruiseEngageBlocked when in standstill (#52) 2023-03-12 15:48:41 -04:00
Jason Wen
c1aa7b078c ui: small changes (#51)
* DLP: better path edges

* fix chevron in the meantime

* only paint when in laneless

* override color

* lighter

* even lighter
2023-03-12 15:46:29 -04:00
Jason Wen
27bd70f64b Merge branch 'master' into dev-priv/master
# Conflicts:
#	panda
#	selfdrive/car/gm/interface.py
#	selfdrive/ui/translations/main_zh-CHT.ts
2023-03-12 14:59:46 -04:00
Jason Wen
11f9ce2c71 GAC: revert button logic 2023-03-11 11:43:52 -05:00
Jason Wen
a953f5872b Longitudinal: use put_bool_nonblocking (#50) 2023-03-11 03:37:30 -05:00
Jason Wen
e2900841da GAC: Optimizations (#49)
* lower calls

* reduce blocking!

* do this in another PR
2023-03-11 03:33:58 -05:00
Jason Wen
a48a9f00bd GAC: fix Toyota signal 2023-03-09 20:07:58 -05:00
Jason Wen
7e17dc668f Merge branch 'master' into dev-priv/master 2023-02-27 13:57:22 -05:00
Jason Wen
66a052abb4 MADS: Subaru cleanup 2023-02-27 13:55:24 -05:00
Jason Wen
b81fac3870 MADS: HKG: gate cruise state available to CAN 2023-02-25 22:41:34 -05:00
Jason Wen
bbf530027c GAC: Gap Adjust Cruise implementation (#44)
* Gap Adjust Cruise (GAC): init

* cs: add longitudinal supported cars

* disable for Toyota for now

* send to car cluster

* more

* KrKeegan: More Aggresive Start from Standstill

* fix

* set prev button after

* init bool

* wrong var

* use common update param function

* bruh no wonder why

* lock to default distance when using exp mode

* make vw match other makes

* implement ui button

* gate ui button

* log desired_TF

* move button

* only show when cruise state available

* only allow press when cruise state available

* Revert "KrKeegan: More Aggresive Start from Standstill"

This reverts commit 20bdff34c83d5a0c248d6996155c995c8a99810f.

* unnecessary

* nothing else

* pass it through

* add toyota support

* fixup! add toyota support

* oops, necessary

* don't show ui button when using e2e long

* different signal to use

* Forgot to update

* Clean it up?

* this?

* ugh

* force int!!

* convert then round

* hide when in exp mode

* toyota: log button

* Revert "different signal to use"

This reverts commit edc64d31af527af842aabe2934e5720f73bf75cc.

* toyota flippy flippy

* wrong signal for vw

* oops
2023-02-24 17:41:52 -05:00
Jason Wen
05a4894ea4 MADS: HKG CAN-FD: don't use cruise state availability 2023-02-24 16:59:46 -05:00
Jason Wen
2abc8b769b MADS: fix Toyota bug 2023-02-22 20:02:54 -05:00
Jason Wen
25b25523eb Update CHANGELOGS.md 2023-02-22 17:56:57 -05:00
Jason Wen
2160f472d8 Add CHANGELOGS.md 2023-02-22 17:43:38 -05:00
Jason Wen
4c6c251dd5 MADS: fix disengage lateral on brake re-engage (#47)
* MADS: disengage lateral on brake fix

* cleaner logic

* This makes more sense
2023-02-22 17:01:19 -05:00
Jason Wen
3eca4e4c36 ui: show lead vEgo or distance with chevron (#46)
* ui: show vEgo or lead distance with chevron

* fix
2023-02-22 01:01:34 -05:00
Jason Wen
b50329f1b5 Merge branch 'master' into dev-priv/master 2023-02-21 23:51:14 -05:00
Jason Wen
aa8f5a520a Merge branch 'master' into dev-priv/master 2023-02-21 23:21:29 -05:00
Jason Wen
5ee1ae04fb Merge branch 'master' into dev-priv/master
# Conflicts:
#	selfdrive/controls/lib/lateral_planner.py
2023-02-21 01:24:41 -05:00
Jason Wen
e1efbfe6eb CarInterface: update params (#45)
* CarInterface: update params

* check exp mode every frame

* Revert "check exp mode every frame"

This reverts commit a7d174a1a0cb367487e1b7fc9d1e6b651233860c.

* only immediately check exp mode when allowed
2023-02-20 20:48:41 -05:00
Jason Wen
36152df5e4 Torque lateral control customization (#41)
* Torque lateral control init

* move-fast: v-tsc fix

* No need to show this

* oops

* cleaner
2023-02-20 18:19:52 -05:00
Jason Wen
9f0879a57e DLP: Auto Lane profile improvements (#43)
* DLP: laneless for curves when using Auto Lane profile

* DLP: force laneless while changing lane in Auto Lane profile
2023-02-20 10:51:55 -05:00
Jason Wen
f383137efd Merge branch 'master' into dev-priv/master 2023-02-20 02:59:53 -05:00
Jason Wen
828bbdc912 dragonpilot: otisserv (#42) 2023-02-20 01:02:35 -05:00
Jason Wen
adf844eb30 move-fast: v-tsc fix (#40) 2023-02-19 22:04:35 -05:00
Jason Wen
c97b3b56a9 ui: speedometer customization (#38)
* ui: speedometer customizations

* change param name

* bruh

* cereal: fix duplicate ordinals
2023-02-19 12:24:18 -05:00
Jason Wen
9ccc1523b9 ui: fix upstream conflict (commaai/openpilot:#27380) 2023-02-19 00:24:01 -05:00
Jason Wen
ace812d5d1 Merge branch 'master' into dev-priv/master 2023-02-19 00:15:26 -05:00
Jason Wen
b45f62bb74 Merge branch 'master' into dev-priv/master
# Conflicts:
#	selfdrive/controls/lib/lateral_planner.py
#	selfdrive/ui/ui.cc
2023-02-19 00:05:08 -05:00
Jason Wen
3ad8d6ef50 MADS: handle both brakePressed and regenBraking parsing (#39) 2023-02-18 23:25:36 -05:00
Jason Wen
7021d2ce20 move-fast: sunnypilot specials (#32)
* UI: Debug: Tap on Ui to capture snapshot of debug data

* UI: Debug UI: Toggle to display debug UI elements & UI prerequisites

* UI: VisionTurnController Implementation

* UI: Debug UI: Toggle to display debug UI elements

* UI: LiveMapData: Implementation

* UI: SpeedLimitControl: Implementation

* UI: TurnSpeedController: Implementation

* fixup! UI: SpeedLimitControl: Implementation

* Add adjustable speed limit offset (in % or actual values)

* fix

* fix 2

* fix 3

* wrong value used

* don't need this

* needs this!

* and this?

* needs to be at the top

* has to be public

* take them off

* gotta have this

* wrong!

* update this every time

* try to update

* hmm maybe it was this

* missed this

* Revert "missed this"

This reverts commit 926b45410544e4f1bbc5174d0d7b03fafedf610f.

* Revert "hmm maybe it was this"

This reverts commit 7f75543db71d6f438f6473c66d4f94df317f16f2.

* refresh them

* update them in both places!

* make them public please

* don't forget this path

* try this refresh?

* Revert "make them public please"

This reverts commit 669a3ee1d5607c84109294db7a567ca86cb91b0f.

* revert these

* try using signals to update

* Revert "try using signals to update"

This reverts commit f3ad02bde71467aa7fc27c0b95d03748345193e6.

* update state after it's emitted

* make it public

* Revert "make it public"

This reverts commit ddf431d198133359b8bd656dde9061ec671f2312.

* Revert "update state after it's emitted"

This reverts commit aad2876166843b63d889e90830bf3d32edaa2857.

* try this out

* fixup! try this out

* fixup! try this out

* fixup! try this out

* fixup! try this out

* don't need this

* fixup! try this out

* fixup! try this out

* fixup! try this out

* fixup! try this out

* make sure we can see it

* make it float

* Try to update this way

* fixup! Try to update this way

* Revert "fixup! Try to update this way"

This reverts commit f4725bcb070cc8e8ebeb6e37afeb930694e96e22.

* Revert "Try to update this way"

This reverts commit af72af8a4a193b24e99931200fac18c6625a2431.

* new method to hide/show

* fixup! new method to hide/show

* fixup! new method to hide/show

* fixup! new method to hide/show

* fixup! new method to hide/show

* fixup! new method to hide/show

* omg it works?!

* run these at 2Hz pls

* UI: use comma speed limit design instead of move-fast

* fixup! UI: use comma speed limit design instead of move-fast

* fixup! UI: use comma speed limit design instead of move-fast

* fixup! UI: use comma speed limit design instead of move-fast

* UI: use comma speed limit design instead of move-fast

* fixup! UI: use comma speed limit design instead of move-fast

* fixup! UI: use comma speed limit design instead of move-fast

* fixup! UI: use comma speed limit design instead of move-fast

* garbage collection

* redundant

* gc attempt?

* Revert "garbage collection"

This reverts commit 127fc8bd9d1eaea7725cf775dc7034ac6aaf09f4.

* garbage collection

* catch exceptions

* ignore mapd if crashed

* copy dependencies after first download

* changed dir

* oops

* proper termination before exiting

* same class

* Revert "same class"

This reverts commit dda695477371bf259b89aae726210dfe9d5f913e.

* Revert "proper termination before exiting"

This reverts commit 95c039dac86a389c0be043aadf2a3e8cbd4515c8.

* don't let accelerator press to re-engage SLC when NDOG is off

* can we free them up?

* Revert "can we free them up?"

This reverts commit d7736524645376ffb43acb77678086f6ae3c4e0b.

* fixup! don't let accelerator press to re-engage SLC when NDOG is off

* introduce navInstruction speed limits into SLC

* nuke UI for now - memory test

* do this instead

* Overpass: does not exist

* Revert "nuke UI for now - memory test"

This reverts commit fd81ffde0443917580ec4ad71095c178173883fe.

* meh
2023-02-18 23:22:07 -05:00
Jason Wen
6e9ac005ed Merge branch 'master' into dev-priv/master 2023-02-18 19:36:18 -05:00
Jason Wen
34c77311de Merge branch 'master' into dev-priv/master 2023-02-18 19:10:41 -05:00
Jason Wen
8892950697 MADS: don't allow actuation if not calibrated (#37) 2023-02-18 18:46:12 -05:00
Jason Wen
c20c3c5ecc MADS: Volkswagen control logic fix (#36)
* use old method

* can't miss this
2023-02-18 17:58:56 -05:00
Jason Wen
c21bc04492 Merge branch 'master' into dev-priv/master
# Conflicts:
#	panda
2023-02-17 20:07:08 -05:00
Jason Wen
e7157d00f8 UI: Remove Enhanced SCC (ESCC) Radar Interceptor toggle 2023-02-17 18:41:05 -05:00
Jason Wen
2fc2e108be Merge branch 'master' into dev-priv/master
# Conflicts:
#	panda
#	selfdrive/car/hyundai/carcontroller.py
#	selfdrive/car/hyundai/carstate.py
#	selfdrive/car/hyundai/hyundaican.py
#	selfdrive/car/hyundai/interface.py
2023-02-17 18:39:06 -05:00
Jason Wen
36461f1885 MADS: don't forget about Volkswagen 2023-02-17 16:13:14 -05:00
Jason Wen
72026aec5f Merge branch 'master' into dev-priv/master
# Conflicts:
#	panda
2023-02-17 15:58:32 -05:00
Jason Wen
249c823541 Remove third_party/mapd/ from release build 2023-02-17 13:44:41 -05:00
Jason Wen
cc9a8e7d2c Merge branch 'master' into dev-priv/master
# Conflicts:
#	selfdrive/car/car_helpers.py
2023-02-17 01:28:52 -05:00
Jason Wen
c533f185ae Release branch build scripts and files (#35)
* Release branch build scripts and files

* Change author!
2023-02-16 23:10:40 -05:00
Jason Wen
3cab2a57f7 Longitudinal: Distance button to toggle experimental mode (#34)
* Distance button on steering wheel to toggle experimental mode

* HKG and Honda

* Longitudinal: parse distance button from steering wheel

* missing gm signal

* GM, VW (MQB & PQ), Toyota

* try this logic out
2023-02-16 21:17:05 -05:00
Jason Wen
c0893c47fe Merge branch 'master' into dev-priv/master
# Conflicts:
#	selfdrive/car/interfaces.py
2023-02-16 20:59:04 -05:00
Jason Wen
32e2e463a8 Merge branch 'master' into dev-priv/master 2023-02-15 00:34:01 -05:00
Jason Wen
8a99b9256a MADS: V_CRUISE_INITIAL -> V_CRUISE_UNSET (#33) 2023-02-14 23:12:32 -05:00
Jason Wen
f78cd8a754 bump panda 2023-02-14 20:45:04 -05:00
Jason Wen
ef32bcd0b1 Merge branch 'master' into dev-priv/master
# Conflicts:
#	selfdrive/car/chrysler/interface.py
#	selfdrive/car/hyundai/carcontroller.py
2023-02-14 20:44:48 -05:00
Jason Wen
ca0a986caa Merge branch 'master' into dev-priv/master 2023-02-13 19:59:50 -05:00
Jason Wen
6aff55d6c9 Merge branch 'master' into dev-priv/master 2023-02-13 18:19:54 -05:00
Jason Wen
a2ef3609a3 SLC: adjustable speed limit offset - init 2023-02-13 18:19:43 -05:00
Jason Wen
5feb4fa001 Merge branch 'master' into dev-priv/master
# Conflicts:
#	selfdrive/controls/lib/longitudinal_planner.py
#	selfdrive/controls/plannerd.py
#	selfdrive/ui/ui.cc
2023-02-13 11:41:38 -05:00
Jason Wen
fbb8176df6 Merge branch 'master' into dev-priv/master 2023-02-13 02:11:52 -05:00
Jason Wen
92f16cbbac Merge branch 'master' into dev-priv/master
# Conflicts:
#	selfdrive/controls/controlsd.py
2023-02-11 02:28:54 -05:00
Jason Wen
a42d9e238d DLP: don't delay on checking status (#31) 2023-02-11 01:31:20 -05:00
Jason Wen
4d65697c07 Merge branch 'master' into dev-priv/master
# Conflicts:
#	selfdrive/car/hyundai/carcontroller.py
#	selfdrive/car/nissan/carcontroller.py
#	selfdrive/controls/controlsd.py
2023-02-11 01:26:08 -05:00
Jason Wen
5851892123 DLP: use path side edges to show lateral planner status (#30)
* try this out

* he might have gotten it!

* Hmmmm

* white edges!

* wrong

* wider!

* Try to match stock opacity

* too bright

* fix

* dimmer

* Revert to upstream color schemes and show borders

* put them together

* sharper
2023-02-10 05:00:59 -05:00
Jason Wen
d2d0f90d73 UI: reset the Stand Still Timer properly (#29) 2023-02-09 21:21:45 -05:00
Jason Wen
c19c38309e UI: better logic for Stand Still Timer (#28) 2023-02-09 10:40:20 -05:00
Jason Wen
37e07b8362 Merge branch 'master' into dev-priv/master
# Conflicts:
#	panda
#	selfdrive/car/chrysler/interface.py
#	selfdrive/car/hyundai/values.py
#	selfdrive/ui/qt/onroad.cc
#	selfdrive/ui/qt/onroad.h
2023-02-09 02:13:08 -05:00
Jason Wen
1af1c408ce UI: Stand Still Timer (#26) 2023-02-09 01:40:48 -05:00
Jason Wen
c988b934ed Count up vEgo (#27) 2023-02-09 01:10:54 -05:00
Jason Wen
935bf6bd91 Tmux error viewer 2023-02-09 00:11:30 -05:00
Jason Wen
b08431888b UI: display barrier when blind spot is active (#25) 2023-02-08 22:28:48 -05:00
Jason Wen
6322b99040 UI: Rocket Fuel (#24) 2023-02-08 22:01:53 -05:00
Jason Wen
025e97f229 Merge branch 'master' into dev-priv/master 2023-02-08 20:14:42 -05:00
Jason Wen
d8c5a8f1dc Merge branch 'master' into dev-priv/master 2023-02-08 14:24:10 -05:00
Jason Wen
6b6fa663bc fixup! UI: check params every 5 seconds 2023-02-08 00:35:01 -05:00
Jason Wen
4eda9103bc UI: check params every 5 seconds 2023-02-07 15:47:36 -05:00
Jason Wen
9b5b61551c UI: Screen Recorder (#22)
* UI: screen recorder ;)

* oops

* try out new look

* dep

* Try this

* bruh

* Hmm

* and this

* or this?

* how's this?

* this is fine

* move it move it

* finalize

* small

* bigger

* smaller

* pinpoint this

* Missed this

* and this

* gone?

* press down state

* no sound for now
2023-02-07 03:34:59 -05:00
Jason Wen
a93c936e4b Log e2e x factor 2023-02-06 19:07:43 -05:00
Jason Wen
ecd3e902ad Toyota: Enforce stock longitudinal control 2023-02-06 19:04:54 -05:00
Jason Wen
31483d18fd FCR: Support all cars (except Ford and Tesla) (#21)
* FCR: init

* Sync car list with upstream

* less I/O?
2023-02-06 18:19:53 -05:00
Jason Wen
2fa7a4cf7f UI: initialize settings (#20)
* sunnypilot ui init

* ui controls init

* comment out for now

* use ListWidget instead moving forward

* wrap for translation

* quick test

* need this

* good to go, no need for now

* start with some

* some html

* that didn't work

* fill up General first

* add mads options

* add mads options 2

* add mads options 3

* add mads options 4

* add mads options 5

* add mads options 6

* add mads options 7

* add mads options 8

* add mads options 9

* add mads options 10

* add mads options 11

* add mads options 12

* add mads options 13

* add mads options 14

* add mads options 15

* add mads options 16

* add mads options 17

* add mads options 18

* add mads options 19

* add mads options 20

* add mads options 21

* add mads options 22

* add mads options 22

* add dlp

* add dlp

* add dlp

* finish up controls panel

* QWidget has no refresh()

* fix this tr() later

* flipped and redundant deleted

* missing icons

* Bolding

* Revert "Revert "Don't delete params""

This reverts commit 7adfc172d599da0e450669a203f5cdb17a32a9d6.

* Revert "Revert "Revert "Don't delete params"""

This reverts commit 33f28677f1a69fb18c7d1a08c5f02a497005dfbe.

* Revert "Revert "don't forget this""

This reverts commit f4485920ed5318e4662e4955a699febb9ba27159.

* Revert "Revert "fill up sp - vehicles""

This reverts commit dfab593833ca5a9cb26fb89f36bf7ac19f7432bf.

* Revert "Revert "missed this""

This reverts commit bf4ac0289b164ca59cb49c355fa8a5303c66b016.

* Revert "Revert "missed that""

This reverts commit da81b7f9eb4e7bbafced4a7a31cb4b7a078d2277.

* Revert "Revert "missed these""

This reverts commit 742908dcf5220a93da57a54836b2b890bbbd519a.

* Revert "Revert "nicer info?""

This reverts commit e0d6c1c05da394774ad0a7ee0b5c5e5c7f55c08a.

* Revert "Revert "fill up sp visuals""

This reverts commit 35759838e0ba4a36f36a12ff1001846b32ddd0c7.

* Revert "Revert "don't miss these""

This reverts commit 7f093380b470a7c195d1f6795b76393b72d4e2f7.

* Revert "Revert "Revert "ui controls init"""

This reverts commit 67c531487e9501ca5658297a20061b88f91c10cc.

* Revert "Revert "move stuff around""

This reverts commit 03b72af6d01772b18c506f590e92b6dbc95c2bfc.

* change to sunnypilot

* update texts

* fix

* does this work?

* Revert "does this work?"

This reverts commit 7b3caf3677593550065efe553334d0797dc5ea00.

* try this out

* add some back

* arrange around

* maybe less I/O

* missing a space

* Translate these too

* unfinished translations

* try this out

* easier translation

* refresh unfinished translations

* update menu texts with Chinese S and T!

* missed this translation

* more unfinished translations
2023-02-06 18:11:22 -05:00
Jason Wen
bb6bee5925 Merge branch 'master' into dev-priv/master
# Conflicts:
#	system/version.py
2023-02-06 00:33:31 -05:00
Jason Wen
048fd58243 Braking status UI: reuse compound operator 2023-02-06 00:22:17 -05:00
Jason Wen
c0e0dbb642 Braking status UI: don't use compound operator 2023-02-06 00:19:57 -05:00
Jason Wen
7b22a2b4ad Onroad Screen Off Brightness + Timer + Global Brightness (#19)
* Onroad Screen Off Brightness + Timer + Global Brightness

* need to add the object

* missed this
2023-02-05 23:55:14 -05:00
Jason Wen
1fb8a891fc Merge branch 'master' into dev-priv/master 2023-02-05 22:06:04 -05:00
Jason Wen
01461c013c UI: don't forget the toggle for Braking Status 2023-02-05 22:01:41 -05:00
Jason Wen
ca4cbccb70 Braking status UI (#18)
* Braking status UI

* add brake

* wrong things to check
2023-02-05 21:50:25 -05:00
Jason Wen
b193992299 Merge branch 'master' into dev-priv/master 2023-02-05 20:57:15 -05:00
Jason Wen
0ca23636d4 Merge branch 'master' into dev-priv/master 2023-02-05 15:16:42 -05:00
Jason Wen
ff1eebcc47 Quiet Drive (#17) 2023-02-05 14:08:29 -05:00
Jason Wen
6ec1b029b9 DLP: preserves lanelines (#16)
* Revert "Remove lane planning code (#25651)"

* DLP: preserves lanelines

* MADS: cruiseEngageBlocked event

* change path now!

* Revert "change path now!"

This reverts commit 7db2af33378aa02288b6222ed722d705ca6e92ec.

* Revert "Revert "change path now!""

This reverts commit 19f50a19e98721f7b8b9018b2e788629df45137f.

* c string

* atoi instead

* does this work?

* move it move it

* move there

* Try this one

* dotted line

* looks horrible

* how about this?

* Nah let's keep it simple

* track these with cereals

* send button!

* add more

* don't need this

* and this too

* make sure it shows first

* more

* to right for now

* stock size

* different color

* move some logic around

* don't miss

* don't miss this

* check somewhere else

* oops

* not liking it

* bring back current button

* don't need to be constant

* take it out for now

* wrap for translation
2023-02-05 13:46:58 -05:00
Jason Wen
5bd3c0fc31 Merge branch 'master' into dev-priv/master 2023-02-05 02:22:33 -05:00
Jason Wen
85ff332e01 UI: don't affect opacity on other icons 2023-02-04 22:24:43 -05:00
Jason Wen
294d856331 UI: onroad button press init 2023-02-04 21:49:10 -05:00
Jason Wen
d44b408b9b Merge branch 'dev-pub/master' into dev-priv/master 2023-02-04 19:48:10 -05:00
Jason Wen
9b18d61111 Merge branch 'dev-pub/master' into dev-priv/master 2023-02-04 14:29:08 -05:00
Jason Wen
c55771feaf Merge branch 'dev-pub/master' into dev-priv/master 2023-02-04 12:11:19 -05:00
Jason Wen
7cb3e29e47 Merge branch 'dev-pub/master' into dev-priv/master
# Conflicts:
#	selfdrive/manager/manager.py
2023-02-04 04:20:01 -05:00
Jason Wen
c747b80706 MADS: onroad UI remove unused vars (#15) 2023-02-04 03:54:47 -05:00
Jason Wen
d0743e6b42 Merge branch 'dev-pub/master' into dev-priv/master
# Conflicts:
#	selfdrive/car/chrysler/interface.py
#	selfdrive/car/hyundai/carcontroller.py
#	selfdrive/controls/controlsd.py
#	selfdrive/ui/qt/onroad.cc
2023-02-04 00:43:41 -05:00
Jason Wen
990a789786 MADS: onroad UI (#14)
* MADS: Lane path and lane line status

* can't do that

* what is purple

* brighter purple?

* purple looks fine
2023-02-04 00:29:51 -05:00
Jason Wen
e292b502e6 Merge branch 'dev-pub/master' into dev-priv/master 2023-02-03 23:49:34 -05:00
Jason Wen
7bc1bbfc3b MADS: better brake state handling - part 7 2023-02-03 23:07:55 -05:00
Jason Wen
54905e3505 MADS: ->
better brake state handling - part 6

MADS button event handling
2023-02-03 21:36:10 -05:00
Jason Wen
ecf3f2f770 MADS: better brake state handling - part 5 2023-02-03 18:06:12 -05:00
Jason Wen
926e750cee MADS: better brake state handling - part 4 2023-02-03 02:18:28 -05:00
Jason Wen
bb0fad232b MADS: better brake state handling - part 3 2023-02-01 17:26:52 -05:00
Jason Wen
4f35b842d2 MADS: better brake state handling - part 2 2023-02-01 06:39:47 -05:00
Jason Wen
79ad1395c0 Merge branch 'dev-pub/master' into dev-priv/master 2023-01-31 18:10:04 -05:00
Jason Wen
d8d643fe43 MADS: block cruise engage event 2023-01-31 17:58:46 -05:00
Jason Wen
46a2f603ea Merge branch 'dev-pub/master' into dev-priv/master
# Conflicts:
#	common/params.cc
2023-01-31 01:06:02 -05:00
Jason Wen
d97e6df31a Merge branch 'dev-pub/master' into dev-priv/master 2023-01-31 00:41:14 -05:00
Jason Wen
b963b8edee MADS: show event when attempt to engage cruise while braking 2023-01-31 00:39:53 -05:00
Jason Wen
07205a5849 Merge branch 'new-logging' into dev-priv/master 2023-01-29 22:01:29 -05:00
Jason Wen
ffa46a747b General: Sentry logging 2023-01-29 21:59:55 -05:00
Jason Wen
6a30c535b1 MADS: better brake state handling 2023-01-29 18:50:28 -05:00
Jason Wen
e84a0326da MADS: Support all cars (#13)
* sunnypilot: MADS - Base + HKG

* fix upstream conflicts

* Don't miss this

* Missed it

* Don't initiate lane change when braking

* HKG: better cluster state

* HKG: only blink when disengaging lateral

* HKG: Optima's icons

* HKG: update vars and blink for CAN-FD

* HKG: don't get stuck

* obsolete

* remove this for now

* border color should sync

* change border color

* simplify things

* HKG: update events

* Honda: MADS

* HKG: cleanup

* Toyota: MADS

* Revert "remove this for now"

This reverts commit 76ddd435084e051ced9a343372900ced96180989.

* Revert "HKG: cleanup"

This reverts commit e1ab96c6f7634508b5f3820868d22f4694361622.

* Toyota: use the working one

* same colors

* block resume press if no previous set speed

* HKG: handle events better

* Honda: handle events better

* Toyota: handle events better

* Volkswagen MQB & PQ: MADS

* Subaru: MADS

* FCA: MADS

* add another argument for per port specifics

* GM: MADS

* Toyota: missed this

* Mazda: MADS

* Nissan: MADS

* have to use this

* pass events to the next

* move it around

* move some stuff around

* cleanup

* simplify and check if cruise is initialized with non PCM

* don't think we need this anymore

* Volkswagen: These 2 buttons don't get used

* check resume available differently

* check better

* simplify

* Mazda: missed one update check

* HKG: Move carstate logic to interface

* check from ret instead

* cruise state enabled spam bug

* check pcm

* set it earlier

* own cruise initialize check

* fixup! own cruise initialize check

* more inclusive

* HKG: redundant

* Honda: Move carstate logic to interface

* only check cruise speed when not PCM

* Toyota: Move carstate logic to interface

* fixup! HKG: Move carstate logic to interface

* fixup! Honda: Move carstate logic to interface

* fixup! Honda: Move carstate logic to interface

* Volkswagen: Move carstate logic to interface

* check if cruise has ever been enabled in state machine

* already exists

* just one more

* do not allow steering in certain situations

* Subaru: Move carstate logic to interface

* FCA: Move carstate logic to interface

* GM: Move carstate logic to interface

* Mazda: Move carstate logic to interface

* Nissan: Move carstate logic to interface

* HKG: move init

* declare at once

* cleanup variables

* prevent stuck engaged

* initialize for all cars

* slimmer

* no entry for brake press engage

* Revert "no entry for brake press engage"

This reverts commit 9e6e1ca5000c213017091765a0e50d2d794cebe9.

* Toyota: Change the logic

* Nissan: Cleanup carstate

* HKG: only disengage when cruise intially not available

* Revert "HKG: only disengage when cruise intially not available"

This reverts commit 123cce1818ea7285cbd433524c4f0e80e7c99cb4.

* allow press anytime

* cancel cruise when control wants to cancel

* remove some stuff

* wrong one

* can't do that

* would this fix it?
2023-01-29 15:27:49 -05:00
Jason Wen
f874bf9cff Merge branch 'dev-pub/master' into dev-priv/master 2023-01-28 21:06:09 -05:00
Jason Wen
71a8b68d57 Merge branch 'dev-pub/master' into dev-priv/master
# Conflicts:
#	panda
2023-01-28 20:53:34 -05:00
Jason Wen
b2707d5923 bump panda 2023-01-22 13:23:25 -05:00
Jason Wen
6c5d96c761 Merge branch 'dev-pub/master' into dev-priv/master 2023-01-22 13:22:40 -05:00
Jason Wen
de74cc4103 Merge branch 'dev-pub/master' into dev-priv/master
# Conflicts:
#	panda
2023-01-15 04:15:01 -05:00
Jason Wen
1cd919dcd4 bump panda 2023-01-12 19:58:19 -05:00
Jason Wen
8d416d1ccb Merge branch 'dev-pub/master' into dev-priv/master 2023-01-12 19:58:00 -05:00
Jason Wen
d0dc650f7d Update submodules 2023-01-12 19:57:09 -05:00
Jason Wen
6b4342f2d6 Merge branch 'master-public' into master-priv 2023-01-02 20:10:19 -05:00
646 changed files with 40833 additions and 2975 deletions

97
.github/workflows/codeql.yml vendored Normal file
View File

@@ -0,0 +1,97 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
branches: [ "master", "*-c3", "master*" ]
pull_request:
branches: [ "master", "*-c3", "master*" ]
schedule:
- cron: '39 7 * * 2'
jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
# only required for workflows in private repositories
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: c-cpp
build-mode: autobuild
- language: javascript-typescript
build-mode: none
- language: python
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

55
.github/workflows/mirror_to_gitlab.yaml vendored Normal file
View File

@@ -0,0 +1,55 @@
name: Mirror to GitLab
on:
push:
delete:
workflow_dispatch: # This enables manual triggering
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Wait for other instances of this workflow to conclude
uses: softprops/turnstyle@8db075d65b19bf94e6e8687b504db69938dc3c65
with:
same-branch-only: 'true'
abort-after-seconds: 300
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout Repository
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
fetch-depth: 0 # Fetch full history
- name: Set up Git
run: |
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
- name: Set up SSH
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Add GitLab public keys
run: |
ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts
- name: Sync and commit changes
id: sync-and-commit
run: |
git lfs pull
# Add GitLab remote
git remote add gitlab git@gitlab.com:sunnypilot/sunnyhaibin/sunnypilot-github-mirror.git
# Fetch from GitLab and check if the branch exists
if git fetch gitlab ${{ github.ref }}; then
# Merge changes from GitLab if the branch exists
git merge gitlab/${{ github.ref_name }} --allow-unrelated-histories --strategy-option=theirs
else
echo "Branch does not exist on GitLab, skipping merge."
fi
git push -u gitlab ${{ github.ref }} # If you have issues with "push rejected missing LFS" or something. Make sure you disabled LFS on the GITLAB repo if you intend to use a different LFS repo other than the target repo

View File

@@ -145,6 +145,7 @@ jobs:
timeout-minutes: 15
run: |
${{ env.RUN }} "source selfdrive/test/setup_xvfb.sh && \
export MAPBOX_TOKEN='pk.eyJ1Ijoiam5ld2IiLCJhIjoiY2xxNW8zZXprMGw1ZzJwbzZneHd2NHljbSJ9.gV7VPRfbXFetD-1OVF0XZg' && \
$PYTEST --timeout 60 -m 'not slow' && \
./selfdrive/ui/tests/create_test_translations.sh && \
QT_QPA_PLATFORM=offscreen ./selfdrive/ui/tests/test_translations && \
@@ -322,6 +323,7 @@ jobs:
run: >
${{ env.RUN }} "PYTHONWARNINGS=ignore &&
source selfdrive/test/setup_xvfb.sh &&
export MAPBOX_TOKEN='pk.eyJ1Ijoiam5ld2IiLCJhIjoiY2xxNW8zZXprMGw1ZzJwbzZneHd2NHljbSJ9.gV7VPRfbXFetD-1OVF0XZg' &&
python selfdrive/ui/tests/test_ui/run.py"
- name: Upload Test Report
uses: actions/upload-artifact@v4

View File

@@ -39,7 +39,8 @@ jobs:
${{ env.RUN }} "scons -j$(nproc)"
- name: Run bridge test
run: |
${{ env.RUN }} "source selfdrive/test/setup_xvfb.sh && \
${{ env.RUN }} "export MAPBOX_TOKEN='pk.eyJ1Ijoiam5ld2IiLCJhIjoiY2xxNW8zZXprMGw1ZzJwbzZneHd2NHljbSJ9.gV7VPRfbXFetD-1OVF0XZg' && \
source selfdrive/test/setup_xvfb.sh && \
source selfdrive/test/setup_vsound.sh && \
CI=1 pytest tools/sim/tests/test_metadrive_bridge.py"

1
.gitignore vendored
View File

@@ -54,6 +54,7 @@ selfdrive/car/tests/cars_dump
system/camerad/camerad
system/camerad/test/ae_gray_test
selfdrive/modeld/_modeld
selfdrive/modeld/_navmodeld
selfdrive/modeld/_dmonitoringmodeld
/src/

244
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,244 @@
variables:
BUILD_DIR: "/data/openpilot"
OUTPUT_DIR: "${CI_PROJECT_DIR}/output"
CI_DIR: "${CI_PROJECT_DIR}/release/ci"
VERSION: 'echo $(date "+%Y.%m.%d")'
GIT_SUBMODULE_STRATEGY: recursive
GIT_DISCOVERY_ACROSS_FILESYSTEM: 1
DEV_C3_SOURCE_BRANCH: "master-dev-c3"
GIT_CONFIG_USER_EMAIL: "gitlab@pipeline.com"
GIT_CONFIG_USER_NAME: "Gitlab Pipeline"
PUBLIC_REPO_URL: "https://github.com/sunnyhaibin/sunnypilot"
BASE_BUILD_NUMER: 3000
EXTRA_VERSION_IDENTIFIER: "${CI_PIPELINE_IID}"
NEW_BRANCH: ${CI_COMMIT_REF_NAME}-prebuilt
stages:
- build
- sanity
- publish
- notify
default:
retry: 2
tags:
- sunnypilot
- x86
.default_before_script: &default_before_script
- 'if [ "$EXTRA_VERSION_IDENTIFIER" = "$CI_PIPELINE_IID" ]; then export EXTRA_VERSION_IDENTIFIER=$((CI_PIPELINE_IID + BASE_BUILD_NUMER)); fi'
- 'export VERSION=$(eval $VERSION)-${EXTRA_VERSION_IDENTIFIER}'
- 'mkdir -p "${BUILD_DIR}/"'
- 'git config --global user.email "${GIT_CONFIG_USER_EMAIL}"'
- 'git config --global user.name "${GIT_CONFIG_USER_NAME}"'
workflow: # If running on any branch other than main.
rules:
# We are an MR, but it's a draft, we won't proceed with anything.
- if: '$CI_MERGE_REQUEST_TITLE =~ /^wip:/i || $CI_MERGE_REQUEST_TITLE =~ /^draft:/i'
when: never
# Below are the rules when a commit is done (code has been added to the branch)
# Commit to master-dev-c3
- if: $CI_COMMIT_REF_NAME == $DEV_C3_SOURCE_BRANCH
variables:
EXTRA_VERSION_IDENTIFIER: "${CI_PIPELINE_IID}"
NEW_BRANCH: "dev-c3"
AUTO_BUILD: true
when: always
#commit made to main (master)
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
variables:
NEW_BRANCH: "staging-c3"
VERSION: 'cat common/version.h | grep COMMA_VERSION | sed -e "s/[^0-9|.]//g"'
EXTRA_VERSION_IDENTIFIER: "staging"
AUTO_PUBLISH: true
AUTO_BUILD: true
when: always
# if tag
- if: $CI_COMMIT_TAG
variables:
NEW_BRANCH: "release-c3"
VERSION: 'cat common/version.h | grep COMMA_VERSION | sed -e "s/[^0-9|.]//g"'
EXTRA_VERSION_IDENTIFIER: "release"
AUTO_BUILD: true
- when: always
build:
stage: build
cache:
key: "${CI_COMMIT_REF_SLUG}"
paths:
- "${CI_DIR}/scons_cache"
before_script:
- find $BUILD_DIR/ -mindepth 1 -delete
- *default_before_script
- "echo Starting build stage..."
- "echo BUILD_DIR: ${BUILD_DIR}"
- "echo CI_DIR: ${CI_DIR}"
- "echo VERSION: ${VERSION}"
- "echo CI_COMMIT_REF_NAME: ${CI_COMMIT_REF_NAME}"
- git config --global --add safe.directory ${CI_PROJECT_DIR}
script:
- export PYTHONPATH="$BUILD_DIR"
- "echo Building Panda..."
- scons -j$(nproc) cache_dir=${CI_DIR}/scons_cache ${CI_PROJECT_DIR}/panda
- mkdir -p ${BUILD_DIR}
- ls -la ${BUILD_DIR}
- "echo Building Rest..."
- ./release/release_files.py | sort | uniq | rsync -vrRl --files-from=- . $BUILD_DIR/
- cp .lfsconfig-prebuilts $BUILD_DIR/.lfsconfig
- cp .gitattributes $BUILD_DIR/.gitattributes
- echo "selfdrive/**/* filter=lfs diff=lfs merge=lfs -text" >> $BUILD_DIR/.gitattributes
- echo "selfdrive/**/*.py -filter -diff -merge" >> $BUILD_DIR/.gitattributes
# - cp -pR --parents $(cat release/files_common release/files_tici | sort | uniq) $BUILD_DIR/ 2> >(grep -v 'warning:' >&2)
- cd $BUILD_DIR
- sed -i '/from .board.jungle import PandaJungle, PandaJungleDFU/s/^/#/' panda/__init__.py # comment panda jungle when prebuilt
- scons -j$(nproc) cache_dir=${CI_DIR}/scons_cache --minimal
- touch ${BUILD_DIR}/prebuilt
- sudo rm -rf ${OUTPUT_DIR}
- mkdir -p ${OUTPUT_DIR}
# We first include the paths we want to keep, even if we later will be excluding the other things on those paths
- rsync -avm
--include='**/panda/board/'
--include='**/panda/board/obj'
--include='**/panda/board/obj/panda.bin.signed'
--include='**/panda/board/obj/panda_h7.bin.signed'
--include='**/panda/board/obj/bootstub.panda.bin'
--include='**/panda/board/obj/bootstub.panda_h7.bin'
--exclude='.sconsign.dblite'
--exclude='*.a'
--exclude='*.A'
--exclude='*.o'
--exclude='*.O'
--exclude='*.os'
--exclude='*.OS'
--exclude='*.pyc'
--exclude='*.PYC'
--exclude='moc_*'
--exclude='MOC_*'
--exclude='*.cc'
--exclude='*.CC'
--exclude='Jenkinsfile'
--exclude='supercombo.onnx'
--exclude='**/panda/board/*'
--exclude='**/panda/board/obj/**'
--exclude='**/panda/certs/'
--exclude='**/panda/crypto/'
--exclude='**/release/'
--exclude='**/.github/'
--exclude='**/selfdrive/ui/replay/'
--exclude='**/__pycache__/'
--exclude='**/selfdrive/ui/*.h'
--exclude='**/selfdrive/ui/**/*.h'
--exclude='**/selfdrive/ui/qt/offroad/sunnypilot/'
--exclude='**/.git/'
--exclude='**/SConstruct'
--exclude='**/SConscript'
--delete-excluded
--chown=comma:comma
${BUILD_DIR}/ ${OUTPUT_DIR}/
after_script:
# cleanup build dir after doing work
- find $BUILD_DIR/ -mindepth 1 -delete
artifacts:
paths:
- ${OUTPUT_DIR}/
tags: [ 'sunnypilot', 'tici' ]
rules:
- if: $AUTO_BUILD
when: always
- when: manual
.publish_base: &publish_base
image: alpine
variables:
GIT_SUBMODULE_STRATEGY: normal
stage: publish
needs:
- job: build
artifacts: true
before_script:
- 'apk update && apk upgrade'
- 'apk add git bash openssh git-lfs'
- 'eval $(ssh-agent -s)'
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- 'mkdir -p ~/.ssh/'
- 'chmod 700 ~/.ssh'
- export HOST=$(echo ${GIT_ORIGIN} | cut -d'@' -f2 | cut -d':' -f1)
- echo fetching ssh pub keys for ${HOST}
- 'ssh-keyscan -H ${HOST} >> ~/.ssh/known_hosts' # Adding gitlab to trusted
- 'chmod 644 ~/.ssh/known_hosts'
- *default_before_script
script:
- echo "${GIT_ORIGIN}"
- echo "Calling to publish [${CI_DIR}/publish.sh ${CI_PROJECT_DIR} ${OUTPUT_DIR} ${NEW_BRANCH} ${VERSION} ${GIT_ORIGIN}]"
- git config --global --add safe.directory ${OUTPUT_DIR}
- $CI_DIR/publish.sh "${CI_PROJECT_DIR}" "${OUTPUT_DIR}" "${NEW_BRANCH}" "${VERSION}" "${GIT_ORIGIN}" "-${EXTRA_VERSION_IDENTIFIER}"
allow_failure: false
publish to private gitlab prebuilt:
extends: ".publish_base"
variables:
GIT_ORIGIN: git@gitlab.com:sunnypilot/public/sunnypilot-prebuilts.git
rules:
- if: $AUTO_BUILD
when: on_success
- if: $CI_MERGE_REQUEST_IID
when: on_success
- when: manual
publish to public github prebuilt:
extends: ".publish_base"
variables:
GIT_ORIGIN: git@github.com:sunnyhaibin/sunnypilot.git
GIT_CONFIG_USER_EMAIL: "jason.wen@sunnypilot.ai"
GIT_CONFIG_USER_NAME: "Jason Wen"
rules:
- if: $AUTO_PUBLISH
when: on_success
- when: manual
.notify_discord: &notify_discord
image: alpine
stage: notify
needs: ["build"]
variables:
DISCORD_HOOK: "${DISCORD_MANUAL_BUILD_WEBHOOK_URL}" # Default hook if not overriden by children
before_script:
- 'apk add curl jq envsubst'
script:
- echo using [${TEMPLATE}]
- cat release/ci/${TEMPLATE} | envsubst | tee payload.json
- 'curl -X POST -H "Content-Type: application/json" -d "$(cat payload.json)" ${DISCORD_HOOK} | jq .'
rules:
- if: $NEW_BRANCH
when: on_success
- when: never
allow_failure: true
notify pending action:
extends: ".notify_discord"
variables:
TEMPLATE: "discord_template_notify_dev_private.json"
before_script:
- !reference [".notify_discord", "before_script"]
- export AVATAR_URL=$(curl -s -X GET "https://gitlab.com/api/v4/avatar?email=${GITLAB_USER_EMAIL}" | jq -r '.avatar_url')
notify new dev build:
extends: ".notify_discord"
stage: notify
needs: ["publish to public github prebuilt"] # This notify shall only happen after a publish to github public
variables:
TEMPLATE: "discord_template_notify_dev_public.json"
before_script:
- !reference [".notify_discord", "before_script"]
- export EXTRA_VERSION_IDENTIFIER=$((CI_PIPELINE_IID + BASE_BUILD_NUMER))
rules:
- if: $NEW_BRANCH == "dev-c3"
variables:
DISCORD_HOOK: "${DISCORD_NEW_BUILD_WEBHOOK_URL}" # Overriding hook because we know we are dev-c3
- !reference [".notify_discord", "rules"]

12
.gitmodules vendored
View File

@@ -1,21 +1,21 @@
[submodule "panda"]
path = panda
url = ../../sunnyhaibin/panda.git
url = https://github.com/sunnyhaibin/panda.git
[submodule "opendbc"]
path = opendbc
url = ../../sunnyhaibin/opendbc.git
url = https://github.com/sunnyhaibin/opendbc.git
[submodule "msgq"]
path = msgq_repo
url = ../../commaai/msgq.git
url = https://github.com/commaai/msgq.git
[submodule "rednose_repo"]
path = rednose_repo
url = ../../commaai/rednose.git
url = https://github.com/commaai/rednose.git
[submodule "body"]
path = body
url = ../../commaai/body.git
url = https://github.com/commaai/body.git
[submodule "teleoprtc_repo"]
path = teleoprtc_repo
url = ../../commaai/teleoprtc
url = https://github.com/commaai/teleoprtc
[submodule "tinygrad"]
path = tinygrad_repo
url = https://github.com/geohot/tinygrad.git

25
.idea/customTargets.xml generated Normal file
View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CLionExternalBuildManager">
<target id="a62f99e8-5ec4-434c-8122-49efed5af108" name="Poetry SCons Build Debug" defaultType="TOOL">
<configuration id="b93ec964-16e5-4962-a12e-3ed360ce8f02" name="Poetry SCons Build Debug">
<build type="TOOL">
<tool actionId="Tool_External Tools_Poetry SCons Build Debug" />
</build>
<clean type="TOOL">
<tool actionId="Tool_External Tools_Poetry SCons Clean" />
</clean>
</configuration>
</target>
<target id="edd8ad9d-183b-467c-a355-0d9a0ecab026" name="Poetry SCons Build Release" defaultType="TOOL">
<configuration id="09523339-5ce3-4223-ab9e-904f38ad7752" name="Poetry SCons Build Release">
<build type="TOOL">
<tool actionId="Tool_External Tools_Poetry SCons Build Release" />
</build>
<clean type="TOOL">
<tool actionId="Tool_External Tools_Poetry SCons Clean" />
</clean>
</configuration>
</target>
</component>
</project>

23
.idea/tools/External Tools.xml generated Normal file
View File

@@ -0,0 +1,23 @@
<toolSet name="External Tools">
<tool name="Poetry SCons Build Debug" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="bash" />
<option name="PARAMETERS" value="-c &quot;source .venv/bin/activate &amp;&amp; scons -u -j$(nproc) --compile_db --ccflags=\&quot;-fno-inline\&quot;&quot;" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
</tool>
<tool name="Poetry SCons Clean" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="bash" />
<option name="PARAMETERS" value="-c &quot;source .venv/bin/activate &amp;&amp; scons -c&quot; " />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
</tool>
<tool name="Poetry SCons Build Release" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="bash" />
<option name="PARAMETERS" value="-c &quot;source .venv/bin/activate &amp;&amp; scons -u -j$(nproc) --compile_db&quot; " />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
</tool>
</toolSet>

4
.lfsconfig-prebuilts Normal file
View File

@@ -0,0 +1,4 @@
[lfs]
url = https://gitlab.com/sunnypilot/public/sunnypilot-prebuilt-lfs.git/info/lfs
pushurl = ssh://git@gitlab.com/sunnypilot/public/sunnypilot-prebuilt-lfs.git
locksverify = false

10
.run/Build Debug.run.xml Normal file
View File

@@ -0,0 +1,10 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Build Debug" type="CLionExternalRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" WORKING_DIR="file://$ProjectFileDir$/selfdrive/ui" PASS_PARENT_ENVS_2="true" PROJECT_NAME="openpilot-special" TARGET_NAME="Poetry SCons Build Debug" CONFIG_NAME="Poetry SCons Build Debug" RUN_PATH="ui">
<envs>
<env name="QT_DBL_CLICK_DIST" value="150" />
</envs>
<method v="2">
<option name="CLION.EXTERNAL.BUILD" enabled="true" />
</method>
</configuration>
</component>

View File

@@ -0,0 +1,10 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Build Release" type="CLionExternalRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" WORKING_DIR="file://$ProjectFileDir$/selfdrive/ui" PASS_PARENT_ENVS_2="true" PROJECT_NAME="openpilot-special" TARGET_NAME="Poetry SCons Build Release" CONFIG_NAME="Poetry SCons Build Release" RUN_PATH="ui">
<envs>
<env name="QT_DBL_CLICK_DIST" value="150" />
</envs>
<method v="2">
<option name="CLION.EXTERNAL.BUILD" enabled="true" />
</method>
</configuration>
</component>

1
.vscode/launch.json vendored
View File

@@ -7,6 +7,7 @@
"description": "Select the process to debug",
"options": [
"selfdrive/controls/controlsd.py",
"selfdrive/navd/navd.py",
"system/timed/timed.py",
"tools/sim/run_bridge.py"
]

View File

@@ -1,6 +1,48 @@
sunnypilot - 0.9.8.0 (2024-xx-xx)
========================
* Always on driver monitoring toggle
************************
* UPDATED: Synced with commaai's openpilot
* master commit 4ef757c (July 06, 2024)
* NEW❗: Default Driving Model: Notre Dame (July 01, 2024)
* NEW❗: Longitudinal: Acceleration Personality thanks to kegman, rav4kumar, and arne1282!
* Select from three distinct acceleration personalities: Eco, Normal, and Sport
* Acceleration personalities are integrated directly into the model's acceleration matrix and can be activated in real-time!
* NEW❗: Longitudinal: Dynamic Personality thanks to rav4kumar!
* Dynamically adjusts following distance and reaction based on your "Driving Personality" setting
* Personalities adapt in real-time to your speed and the distance to the lead car
* Provides a more responsive and tailored driving experience compared to predefined settings
* UPDATED: Driving Personality: Updated mode names
* Aggressive, Moderate, Standard, Relaxed
* NEW❗: Toyota - Enhanced Blind Spot Monitor (BSM) thanks to arne182, rav4kumar, and eFiniLan!
* Enables Blind Spot Monitor (BSM) signals parsing in sunnypilot using the factory Blind Spot Monitor (BSM)
* sunnypilot will use debugging CAN messages to receive unfiltered BSM signals, allowing detection of more objects
* Supported platforms
* RAV4 TSS1, equipped with factory Blind Spot Monitoring (BSM)
* Lexus LSS1, equipped with factory Blind Spot Monitoring (BSM)
* Toyota TSS1/1.5, equipped with factory Blind Spot Monitoring (BSM)
* Prius TSS2, equipped with factory Blind Spot Monitoring (BSM)
* NOTE: Only enable this feature if your Toyota/Lexus vehicle has factory Blind Spot Monitor equipped, and mentioned in the supported platforms list
* UPDATED: Toyota: TSS2 longitudinal: Custom Tuning
* Re-tuned and tested by the community (July 1, 2024)
* UPDATED: Driving Model Selector v5
* NEW❗: Driving Model additions
* Notre Dame (July 01, 2024) - NDv3
* UPDATED: Toyota: Continued support for Smart DSU (SDSU) and Radar CAN Filter
* In response to the official deprecation of support for Smart DSU (SDSU) and Radar CAN Filter in the upstream ([commaai/openpilot#32777](https://github.com/commaai/openpilot/pull/32777)), sunnypilot will continue maintaining software support for Smart DSU (SDSU) and Radar CAN Filter
* UPDATED: Continued support for Mapbox navigation
* In response to the official temporary deprecation of support for Mapbox navigation in the upstream ([commaai/openpilot#32773](https://github.com/commaai/openpilot/pull/32773)), sunnypilot will continue maintaining software support for Mapbox navigation
* NEW❗: Toyota - Automatic Door Locking and Unlocking thanks to AlexandreSato, cydia2020, and dragonpilot-community!
* Auto Lock by Speed: All doors are automatically locked when vehicle speed is approximately 6 mph (10 km/h) or higher
* Auto Unlock by Shift to P: All doors are automatically unlocked when shifting the shift lever to P
* FIXED: Driving Personality:
* Maniac mode now correctly enforced when selected
* UI Updates
* Display Metrics Below Chevron
* NEW❗: Time to Lead Car
* Displays the time to reach the position previously occupied by the lead car
* NEW❗: Display Distance, Speed, and Time to Lead Car simultaneously
* Kia Ceed Plug-in Hybrid Non-SCC 2022 support thanks to TerminatorNL!
sunnypilot - 0.9.7.1 (2024-06-13)
========================

77
HOW-TOS.md Normal file
View File

@@ -0,0 +1,77 @@
# How Tos
This page is a repository of useful how-tos as a supplement for additional information.
Table of Contents
=======================
* [Radar Tracks](#Radar-Tracks)
* [Enable Radar Tracks](#-Enable-Radar-Tracks)
* [Enable Mapbox Navigation](#-Enable-Mapbox-Navigation)
---
<details><summary><h3>📡 Radar Tracks</h3></summary>
Radar tracks can now be enabled manually on applicable cars through SSH thanks to [@greghogan](https://github.com/greghogan) and [@pd0wm](https://github.com/pd0wm).
Some Hyundai radars can be reconfigured to output (debug) radar points on bus 1.
Reconfiguration is done over UDS by reading/writing to 0x0142 using the Read/Write Data By Identifier
endpoints (0x22 & 0x2E). This script checks your radar firmware version against a list of known
firmware versions. If you want to try on a new radar, make sure to note the default config value
in case it is different from the other radars and you need to revert the changes.
After changing the config the car should not show any faults when openpilot is not running.
These config changes are persistent across car reboots. You need to run this script again
to go back to the default values.
**USE AT YOUR OWN RISK!** Stock system safety features, like AEB and FCW, might be affected by these changes.
**How radar points can be used along with vision:**
* Current OP long policy is identify with vision first, if vision sees a vehicle match it to a radar point. If vision sees nothing you get a false negative and no lead car detection. (Source: [Hubblesphere#7894 from comma.ai community Discord](https://discord.com/channels/469524606043160576/872899198738104330/872913890793635872))
### 🚨 Enable Radar Tracks
***(EXPERIMENTAL, as of January 1st, 2022)***
***(Only applicable to some Hyundai, Kia, and Genesis cars, as of January 1st, 2022)***
*(Base on version 0.8.12 [`devel`](https://github.com/commaai/openpilot/tree/devel))*
**USE AT YOUR OWN RISK!** Stock system safety features, like AEB and FCW, might be affected by these changes.
1. Ensure the car is at the `OFF` ignition position.
2. Connect your compatible comma device (EON, C2, C3) to the car. comma device power should be ON.
3. Use a laptop or applicable device to connect to your comma device via SSH. (Tips: Instructions to SSH in [HERE](https://github.com/commaai/openpilot/wiki/SSH))
4. In the SSH terminal after successfully connected to your comma device, execute the following commands:
1. `pkill -f openpilot`
2. `python /data/openpilot/selfdrive/debug/hyundai_enable_radar_points.py`
3. Follow the instructions in the script:
* `Power on the vehicle keeping the engine off (press start button twice) then type OK to continue`.
* If successful, the following message should appear: `[DONE]. Restart your vehicle and ensure there are no faults`.
* If the script did not run successfully, reach out to the community in [Sunnyhaibin's Openpilot Discord Server](https://discord.gg/wRW3meAgtx) or `#hyundai-kia-genesis channel` on [commaai community Discord Server](https://discord.comma.ai) for assistance.
4. Reboot your comma device:
1. C3: `sudo reboot`
2. C2 or EON: `reboot`
5. Once your comma device is rebooted, start your car with engine on (with or without comma device connected). Ensure that there are no faults from the car. If there are faults, reach out to the community in [Sunnyhaibin's Openpilot Discord Server](https://discord.gg/wRW3meAgtx) or `#hyundai-kia-genesis channel` on [commaai community Discord Server](https://discord.comma.ai) for assistance.
6. Go for a quick drive and drive behind a lead car with varied follow distance. Then, come back and allow the drive to upload its `rlogs` in [comma Connect](https://connect.comma.ai).
7. With all `rlogs` uploaded, open the drive in Cabana from [comma Connect](https://connect.comma.ai). Load DBC -> `hyundai_kia_mando_front_radar.dbc`, then search `RADAR_TRACK_50x` (`x` could be anything), open any of them, and look at `LONG_DIST`.
8. If the radar tracks data is relevant with the lead car you drove behind, you are done! Your car now have radar tracks enabled.
</details>
<details><summary><h3>🗺 Enable Mapbox Navigation</h3></summary>
1) Create a free mapbox account. Account will ask for a credit card for verification. You will not be charged for the free tier.
2) On the Dashboard, you will see a section called Access Tokens. Click `Create a Token`. Name it whatever you like. Set the scopes to allow everything for both Public and Secret. Copy both of these keys. **YOU WON'T BE ABLE TO ACCESS THE SECRET KEY AFTER THIS WINDOW.**
3) Once rebooted, connect your C3 to a network with internet access and find the C3s IP address.
4) In a browser, navigate to that IP with **port 8082** (i.e 192.168.1.69:8082). You should be greeted with the Comma logo and a public key input field.
5) Paste your Public token (pk.xx), click enter, paste your Secret key (sk.xx), click enter. You can now search for places. This page will be available at your devicess IP address/port 8082 to search for destinations.
6) To set Home and Work addresses, search for a place, select Home/Work from the dropdown and click Navigate. For non-Home/Work destinations, select Recent Places.<br>*At this time, it is not possible to search directly on the C3.*
**TIPS:**
- If your C3 is showing a black screen that says “Map Loading”, performing a reboot via the UI should fix it.
- If your phone can create a Hotspot, you are able to connect the C3 to your phone hotspot and use your phone browser to search for places.
- In the Navigation panel on the C3, you can select Home, Work, and from a list of Recent Places you have navigated to without needing a browser (assuming the C3 is connected to the internet.)
**IMPORTANT NOTE:** Your C3 will require an active internet connection to download map data, generate driving directions, and ETA. Once map data and directions are downloaded, it *is* possible to use it offline, however nothing will update (such as new driving direction after a missed turn, updated ETA, map data further into your drive etc.)
***NAVIGATION NOTE:** At this time, mapbox does not support alphanumeric addresses (i.e W123N1234 Main St). There is currently no known workaround for this.*
</details>

3
Jenkinsfile vendored
View File

@@ -26,6 +26,7 @@ export SOURCE_DIR=${env.SOURCE_DIR}
export GIT_BRANCH=${env.GIT_BRANCH}
export GIT_COMMIT=${env.GIT_COMMIT}
export AZURE_TOKEN='${env.AZURE_TOKEN}'
export MAPBOX_TOKEN='${env.MAPBOX_TOKEN}'
# only use 1 thread for tici tests since most require HIL
export PYTEST_ADDOPTS="-n 0"
@@ -134,8 +135,10 @@ def pcStage(String stageName, Closure body) {
def setupCredentials() {
withCredentials([
string(credentialsId: 'azure_token', variable: 'AZURE_TOKEN'),
string(credentialsId: 'mapbox_token', variable: 'MAPBOX_TOKEN')
]) {
env.AZURE_TOKEN = "${AZURE_TOKEN}"
env.MAPBOX_TOKEN = "${MAPBOX_TOKEN}"
}
}

21
LICENSE.md Normal file
View File

@@ -0,0 +1,21 @@
# Custom MIT License
Copyright (c) 2024, Haibin Wen, SUNNYPILOT LLC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to view and modify the Software, subject to the following conditions:
1. **Permission Required**: Permission Required for Commercial, For-Profit, or Closed Source Use: Use of the Software, in whole or in part, for any commercial purposes, for-profit projects, or in closed source projects requires explicit written permission from the original author(s).
2. **Redistribution**: Any redistribution of the Software, modified or unmodified, must retain this license notice and the following acknowledgment:
"This software is licensed under a custom license requiring permission for use."
3. **Visibility**: Any project that uses the Software must visibly mention the following acknowledgment:
"This project uses software from Haibin Wen and SUNNYPILOT LLC and is licensed under a custom license requiring permission for use."
4. **No Warranty**: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Contact sunnypilot Support <support@sunnypilot.ai> for permission requests.
---
Haibin Wen, SUNNYPILOT LLC

View File

@@ -48,7 +48,6 @@ Join the official sunnypilot Discord server to stay up to date with all the late
To use sunnypilot in a car, you need the following:
* A supported device to run this software
* a [comma three](https://comma.ai/shop/products/three), or
* a comma two (only with older versions below 0.8.13)
* This software
* One of [the 250+ supported cars](https://github.com/commaai/openpilot/blob/master/docs/CARS.md). We support Honda, Toyota, Hyundai, Nissan, Kia, Chrysler, Lexus, Acura, Audi, VW, Ford and more. If your car is not supported but has adaptive cruise control and lane-keeping assist, it's likely able to run sunnypilot.
* A [car harness](https://comma.ai/shop/products/car-harness) to connect to your car
@@ -115,40 +114,12 @@ Please refer to [Recommended Branches](#-recommended-branches) to find your pref
Requires further assistance with software installation? Join the [sunnypilot Discord server](https://discord.sunnypilot.com) and message us in the `#installation-help` channel.
comma two
------
1. [Factory reset/uninstall](https://github.com/commaai/openpilot/wiki/FAQ#how-can-i-reset-the-device) the previous software if you have another software/fork installed.
2. After factory reset/uninstall and upon reboot, select `Custom Software` when given the option.
3. Input the installation URL per [Recommended Branches](#-recommended-branches). Example: ```https://smiskol.com/fork/sunnyhaibin/0.8.12-4-prod```
4. Complete the rest of the installation following the onscreen instructions.
Requires further assistance with software installation? Join the [sunnypilot Discord server](https://discord.sunnypilot.com) and message us in the `#installation-help` channel.
</details>
<details>
<summary>SSH (More Versatile)</summary>
<br>
Prerequisites: [How to SSH](https://github.com/commaai/openpilot/wiki/SSH)
If you are looking to install sunnypilot via SSH, run the following command in an SSH terminal after connecting to your device:
comma three:
------
* [`release-c3`](https://github.com/sunnyhaibin/openpilot/tree/release-c3):
```
cd /data; rm -rf ./openpilot; git clone -b release-c3 --recurse-submodules https://github.com/sunnyhaibin/sunnypilot.git openpilot; cd openpilot; sudo reboot
```
comma two:
------
* [`0.8.12-prod-personal-hkg`](https://github.com/sunnyhaibin/openpilot/tree/0.8.12-prod-personal-hkg):
```
cd /data; rm -rf ./openpilot; git clone -b 0.8.12-prod-personal-hkg --recurse-submodules https://github.com/sunnyhaibin/sunnypilot.git openpilot; cd openpilot; sudo reboot
cd /data && rm -rf ./openpilot && git clone -b release-c3 --recurse-submodules https://github.com/sunnyhaibin/sunnypilot.git openpilot && cd openpilot && sudo reboot
```
After running the command to install the desired branch, your comma device should reboot.
@@ -170,16 +141,16 @@ After running the command to install the desired branch, your comma device shoul
* Speed Limit Control (SLC) - Set speed limit based on map data or car interface (if applicable)
* HKG only: Highway Driving Assist (HDA) status integration - Use cars native speed sign detection to set desired speed (on applicable HKG cars only)
- [**Gap Adjust Cruise (GAC)**](#gap-adjust-cruise) - Allow `GAP`/`INTERVAL`/`DISTANCE` button on the steering wheel or on-screen button to adjust the follow distance from the lead car. See table below for options
- [**Quiet Drive 🤫**](#-quiet-drive) - Toggle to mute all notification sounds (excluding driver safety warnings)
- [**Auto Lane Change Timer**](#Auto-Lane-Change-Timer) - Set a timer to delay the auto lane change operation when the blinker is used. No nudge on the steering wheel is required to auto lane change if a timer is set
- [**Force Car Recognition (FCR)**](#Force-Car-Recognition-) - Use a selector to force your car to be recognized by sunnypilot
- [**Fix sunnypilot No Offroad**](#Fix-sunnypilot-No-Offroad) - Enforce sunnypilot to go offroad and turns off after shutting down the car. This feature fixes non-official devices running sunnypilot without comma power
- [**Enable ACC+MADS with RES+/SET-**](#Enable-ACC+MADS-with-RES+/SET-) - Engage both ACC and MADS with a single press of RES+ or SET- button
- [**Offline OSM Maps**](#Offline-OSM-Maps) - OSM database can now be downloaded locally for offline use[^2]. This enables offline SLC, V-TSC and M-TSC. Currently available for US South, US West, US Northeast, Florida, Taiwan, South Africa and New Zealand
- [**Various Live Tuning**](#Various-Live-Tuning) - Ability to tailor your driving experience on the fly:
* Enforce Torque Lateral Control - Use the newest [torque controller](https://blog.comma.ai/0815release/#torque-controller) for all vehicles.
* Torque Lateral Control Live Tune - Ability to adjust the torque controllers `FRICTION` and `LAT_ACCEL_FACTOR` values to suit your vehicle.
* Torque Lateral Controller Self-Tune - Enable automatic turning for the Torque controller.
- [**Quiet Drive 🤫**](#-quiet-drive) - Toggle to mute all notification sounds (excluding driver safety warnings)
- [**Auto Lane Change Timer**](#Auto-Lane-Change-Timer) - Set a timer to delay the auto lane change operation when the blinker is used. No nudge on the steering wheel is required to auto lane change if a timer is set
- [**Force Car Recognition (FCR)**](#Force-Car-Recognition-) - Use a selector to force your car to be recognized by sunnypilot
- [**Fix sunnypilot No Offroad**](#Fix-sunnypilot-No-Offroad) - Enforce sunnypilot to go offroad and turns off after shutting down the car. This feature fixes non-official devices running sunnypilot without comma power
- [**Enable ACC+MADS with RES+/SET-**](#Enable-ACC+MADS-with-RES+/SET-) - Engage both ACC and MADS with a single press of RES+ or SET- button
- [**Offline OSM Maps**](#Offline-OSM-Maps) - OSM database can now be downloaded locally for offline use[^2]. This enables offline SLC, V-TSC and M-TSC. Currently available for US South, US West, US Northeast, Florida, Taiwan, South Africa and New Zealand
- [**Various Live Tuning**](#Various-Live-Tuning) - Ability to tailor your driving experience on the fly:
* Enforce Torque Lateral Control - Use the newest [torque controller](https://blog.comma.ai/0815release/#torque-controller) for all vehicles.
* Torque Lateral Control Live Tune - Ability to adjust the torque controllers `FRICTION` and `LAT_ACCEL_FACTOR` values to suit your vehicle.
* Torque Lateral Controller Self-Tune - Enable automatic turning for the Torque controller.
### Visual Enhancements
* **M.A.D.S Status Icon** - Dedicated icon to display M.A.D.S. engagement status
@@ -355,7 +326,7 @@ Example:
---
How-To instructions can be found in [HOW-TOS.md](https://github.com/sunnyhaibin/openpilot/blob/(!)README/HOW-TOS.md).
How-To instructions can be found in [HOW-TOS.md](HOW-TOS.md).
</details>

View File

@@ -14,6 +14,8 @@ SCons.Warnings.warningAsException(True)
TICI = os.path.isfile('/TICI')
AGNOS = TICI
UBUNTU_FOCAL = int(subprocess.check_output('[ -f /etc/os-release ] && . /etc/os-release && [ "$ID" = "ubuntu" ] && [ "$VERSION_ID" = "20.04" ] && echo 1 || echo 0', shell=True, encoding='utf-8').rstrip())
Export('UBUNTU_FOCAL')
Decider('MD5-timestamp')
@@ -70,6 +72,12 @@ AddOption('--minimal',
default=os.path.exists(File('#.lfsconfig').abspath), # minimal by default on release branch (where there's no LFS)
help='the minimum build to run openpilot. no tests, tools, etc.')
AddOption('--stock-ui',
action='store_true',
dest='stock_ui',
default=False,
help='Build stock UI instead of sunnypilot UI')
## Architecture name breakdown (arch)
## - larch64: linux tici aarch64
## - aarch64: linux pc aarch64
@@ -173,6 +181,10 @@ if arch != "Darwin":
cflags += ['-DSWAGLOG="\\"common/swaglog.h\\""']
cxxflags += ['-DSWAGLOG="\\"common/swaglog.h\\""']
if not GetOption('stock_ui'):
cflags += ["-DSUNNYPILOT"]
cxxflags += ["-DSUNNYPILOT"]
ccflags_option = GetOption('ccflags')
if ccflags_option:
ccflags += ccflags_option.split(' ')
@@ -211,6 +223,8 @@ env = Environment(
"#cereal",
"#msgq",
"#opendbc/can",
"#third_party/maplibre-native-qt/include",
f"#third_party/maplibre-native-qt/{arch}/include"
],
CC='clang',
@@ -244,7 +258,8 @@ if GetOption('compile_db'):
env.CompilationDatabase('compile_commands.json')
# Setup cache dir
cache_dir = '/data/scons_cache' if AGNOS else '/tmp/scons_cache'
default_cache_dir = '/data/scons_cache' if AGNOS else '/tmp/scons_cache'
cache_dir = ARGUMENTS.get('cache_dir', default_cache_dir)
CacheDir(cache_dir)
Clean(["."], cache_dir)
@@ -275,7 +290,7 @@ Export('envCython')
# Qt build environment
qt_env = env.Clone()
qt_modules = ["Widgets", "Gui", "Core", "Network", "Concurrent", "Multimedia", "Quick", "Qml", "QuickWidgets", "DBus", "Xml"]
qt_modules = ["Widgets", "Gui", "Core", "Network", "Concurrent", "Multimedia", "Quick", "Qml", "QuickWidgets", "Location", "Positioning", "DBus", "Xml"]
qt_libs = []
if arch == "Darwin":
@@ -328,7 +343,8 @@ qt_flags = [
"-DQT_MESSAGELOGCONTEXT",
]
qt_env['CXXFLAGS'] += qt_flags
qt_env['LIBPATH'] += ['#selfdrive/ui', ]
qt_env['LIBPATH'] += ['#selfdrive/ui', f"#third_party/maplibre-native-qt/{arch}/lib"]
qt_env['RPATH'] += [Dir(f"#third_party/maplibre-native-qt/{arch}/lib").srcnode().abspath]
qt_env['LIBS'] = qt_libs
if GetOption("clazy"):

View File

@@ -18,9 +18,27 @@ enum LongitudinalPersonalitySP {
relaxed @3;
}
enum AccelerationPersonality {
sport @0;
normal @1;
eco @2;
stock @3;
}
enum ModelGeneration {
default @0;
one @1;
two @2;
three @3;
four @4;
five @5;
}
struct ControlsStateSP @0x81c2f05a394cf4af {
lateralState @0 :Text;
personality @8 :LongitudinalPersonalitySP;
dynamicPersonality @9 :Bool;
accelPersonality @10 :AccelerationPersonality;
lateralControlState :union {
indiState @1 :LateralINDIState;
@@ -180,6 +198,9 @@ struct E2eLongStateSP @0xa5cd762cd951a455 {
struct ModelDataV2SP @0xf98d843bfd7004a3 {
laneChangePrev @0 :Bool;
laneChangeEdgeBlock @1 :Bool;
customModel @2 :Bool;
modelGeneration @3 :ModelGeneration;
modelCapabilities @4 :UInt32;
}
struct CustomReserved7 @0xb86e6369214c01c8 {

View File

@@ -1,46 +1,27 @@
import jwt
import os
import requests
from datetime import datetime, timedelta, UTC
from openpilot.system.hardware.hw import Paths
from openpilot.system.version import get_version
from .comma_connect import CommaConnectApi
from .sunnylink import SunnylinkApi
API_HOST = os.getenv('API_HOST', 'https://api.commadotai.com')
class Api:
def __init__(self, dongle_id):
self.dongle_id = dongle_id
with open(Paths.persist_root()+'/comma/id_rsa') as f:
self.private_key = f.read()
def __init__(self, dongle_id, use_sunnylink=False):
if use_sunnylink:
self.service = SunnylinkApi(dongle_id)
else:
self.service = CommaConnectApi(dongle_id)
def request(self, method, endpoint, **params):
return self.service.request(method, endpoint, **params)
def get(self, *args, **kwargs):
return self.request('GET', *args, **kwargs)
return self.service.get(*args, **kwargs)
def post(self, *args, **kwargs):
return self.request('POST', *args, **kwargs)
def request(self, method, endpoint, timeout=None, access_token=None, **params):
return api_get(endpoint, method=method, timeout=timeout, access_token=access_token, **params)
return self.service.post(*args, **kwargs)
def get_token(self, expiry_hours=1):
now = datetime.now(UTC).replace(tzinfo=None)
payload = {
'identity': self.dongle_id,
'nbf': now,
'iat': now,
'exp': now + timedelta(hours=expiry_hours)
}
token = jwt.encode(payload, self.private_key, algorithm='RS256')
if isinstance(token, bytes):
token = token.decode('utf8')
return token
return self.service.get_token(expiry_hours)
def api_get(endpoint, method='GET', timeout=None, access_token=None, **params):
headers = {}
if access_token is not None:
headers['Authorization'] = "JWT " + access_token
headers['User-Agent'] = "openpilot-" + get_version()
return requests.request(method, API_HOST + "/" + endpoint, timeout=timeout, headers=headers, params=params)
def api_get(endpoint, method='GET', timeout=None, access_token=None, use_sunnylink=False, **params):
return CommaConnectApi(None).api_get(endpoint, method, timeout, access_token, **params) if not use_sunnylink else \
SunnylinkApi(None).api_get(endpoint, method, timeout, access_token, **params)

56
common/api/base.py Normal file
View File

@@ -0,0 +1,56 @@
import jwt
import requests
import unicodedata
from datetime import datetime, timedelta, UTC
from openpilot.system.hardware.hw import Paths
from openpilot.system.version import get_version
class BaseApi:
def __init__(self, dongle_id, api_host, user_agent="openpilot-"):
self.dongle_id = dongle_id
self.api_host = api_host
self.user_agent = user_agent
with open(Paths.persist_root()+'/comma/id_rsa') as f:
self.private_key = f.read()
def get(self, *args, **kwargs):
return self.request('GET', *args, **kwargs)
def post(self, *args, **kwargs):
return self.request('POST', *args, **kwargs)
def request(self, method, endpoint, timeout=None, access_token=None, **params):
return self.api_get(endpoint, method=method, timeout=timeout, access_token=access_token, **params)
def _get_token(self, expiry_hours=1, **extra_payload):
now = datetime.now(UTC).replace(tzinfo=None)
payload = {
'identity': self.dongle_id,
'nbf': now,
'iat': now,
'exp': now + timedelta(hours=expiry_hours),
**extra_payload
}
token = jwt.encode(payload, self.private_key, algorithm='RS256')
if isinstance(token, bytes):
token = token.decode('utf8')
return token
def get_token(self, expiry_hours=1):
return self._get_token(expiry_hours)
def remove_non_ascii_chars(self, text):
normalized_text = unicodedata.normalize('NFD', text)
ascii_encoded_text = normalized_text.encode('ascii', 'ignore')
return ascii_encoded_text.decode()
def api_get(self, endpoint, method='GET', timeout=None, access_token=None, **params):
headers = {}
if access_token is not None:
headers['Authorization'] = "JWT " + access_token
version = self.remove_non_ascii_chars(get_version())
headers['User-Agent'] = self.user_agent + version
return requests.request(method, self.api_host + "/" + endpoint, timeout=timeout, headers=headers, params=params)

View File

@@ -0,0 +1,11 @@
import os
from openpilot.common.api.base import BaseApi
API_HOST = os.getenv('API_HOST', 'https://api.commadotai.com')
class CommaConnectApi(BaseApi):
def __init__(self, dongle_id):
super().__init__(dongle_id, API_HOST)
self.user_agent = "openpilot-"

155
common/api/sunnylink.py Normal file
View File

@@ -0,0 +1,155 @@
import os
import time
import jwt
import json
from pathlib import Path
from datetime import datetime, timedelta
from openpilot.common.params import Params
from openpilot.system.hardware import HARDWARE
from openpilot.system.hardware.hw import Paths
from openpilot.common.api.base import BaseApi
API_HOST = os.getenv('SUNNYLINK_API_HOST', 'https://stg.api.sunnypilot.ai')
UNREGISTERED_SUNNYLINK_DONGLE_ID = "UnregisteredDevice"
MAX_RETRIES = 6
CRASH_LOG_DIR = '/data/community/crashes'
class SunnylinkApi(BaseApi):
def __init__(self, dongle_id):
super().__init__(dongle_id, API_HOST)
self.user_agent = "sunnypilot-"
self.spinner = None
self.params = Params()
def api_get(self, endpoint, method='GET', timeout=10, access_token=None, **kwargs):
if not self.params.get_bool("SunnylinkEnabled"):
return None
return super().api_get(endpoint, method, timeout, access_token, **kwargs)
def resume_queued(self, timeout=10, **kwargs):
sunnylinkId, commaId = self._resolve_dongle_ids()
return self.api_get(f"ws/{sunnylinkId}/resume_queued", "POST", timeout, access_token=self.get_token(), **kwargs)
def get_token(self, expiry_hours=1):
# Add your additional data here
additional_data = {}
return super()._get_token(expiry_hours, **additional_data)
def _status_update(self, message):
print(message)
if self.spinner:
self.spinner.update(message)
time.sleep(0.5)
def _resolve_dongle_ids(self):
sunnylink_dongle_id = self.params.get("SunnylinkDongleId", encoding='utf-8')
comma_dongle_id = self.dongle_id or self.params.get("DongleId", encoding='utf-8')
return sunnylink_dongle_id, comma_dongle_id
def _resolve_imeis(self):
imei1, imei2 = None, None
imei_try = 0
while imei1 is None and imei2 is None and imei_try < MAX_RETRIES:
try:
imei1, imei2 = self.params.get("IMEI", encoding='utf8') or HARDWARE.get_imei(0), HARDWARE.get_imei(1)
except Exception:
self._status_update(f"Error getting imei, trying again... [{imei_try+1}/{MAX_RETRIES}]")
time.sleep(1)
imei_try += 1
return imei1, imei2
def _resolve_serial(self):
serial = self.params.get("HardwareSerial", encoding='utf8') or HARDWARE.get_serial()
return serial
def register_device(self, spinner=None, timeout=60, verbose=False):
self.spinner = spinner
sunnylink_dongle_id, comma_dongle_id = self._resolve_dongle_ids()
if comma_dongle_id is None:
self._status_update("Comma dongle ID not found, deferring sunnylink's registration to comma's registration process.")
return None
imei1, imei2 = self._resolve_imeis()
serial = self._resolve_serial()
if sunnylink_dongle_id not in (None, UNREGISTERED_SUNNYLINK_DONGLE_ID):
return sunnylink_dongle_id
privkey_path = Path(Paths.persist_root()+"/comma/id_rsa")
pubkey_path = Path(Paths.persist_root()+"/comma/id_rsa.pub")
start_time = time.monotonic()
successful_registration = False
if not pubkey_path.is_file():
sunnylink_dongle_id = UNREGISTERED_SUNNYLINK_DONGLE_ID
self._status_update("Public key not found, setting dongle ID to unregistered.")
else:
Params().put("LastSunnylinkPingTime", "0") # Reset the last ping time to 0 if we are trying to register
with pubkey_path.open() as f1, privkey_path.open() as f2:
public_key = f1.read()
private_key = f2.read()
backoff = 1
while True:
register_token = jwt.encode({'register': True, 'exp': datetime.utcnow() + timedelta(hours=1)}, private_key, algorithm='RS256')
try:
if verbose or time.monotonic() - start_time < timeout / 2:
self._status_update("Registering device to sunnylink...")
elif time.monotonic() - start_time >= timeout / 2:
self._status_update("Still registering device to sunnylink...")
resp = self.api_get("v2/pilotauth/", method='POST', timeout=15, imei=imei1, imei2=imei2, serial=serial, comma_dongle_id=comma_dongle_id, public_key=public_key, register_token=register_token)
if resp is None:
raise Exception("Unable to register device, request was None")
if resp.status_code in (409, 412):
timeout = time.monotonic() - start_time # Don't retry if the public key is already in use
key_in_use = "Public key is already in use, is your key unique? Contact your vendor for a new key."
unsafe_key = "Public key is known to not be unique and it's unsafe. Contact your vendor for a new key."
error_message = key_in_use if resp.status_code == 409 else unsafe_key
raise Exception(error_message)
if resp.status_code != 200:
raise Exception(f"Failed to register with sunnylink. Status code: {resp.status_code}\nData\n:{resp.text}")
dongleauth = json.loads(resp.text)
sunnylink_dongle_id = dongleauth["device_id"]
if sunnylink_dongle_id:
self._status_update("Device registered successfully.")
successful_registration = True
break
except Exception as e:
if verbose:
self._status_update(f"Waiting {backoff}s before retry, Exception occurred during registration: [{str(e)}]")
if not os.path.exists(CRASH_LOG_DIR):
os.makedirs(CRASH_LOG_DIR)
with open(f'{CRASH_LOG_DIR}/error.txt', 'a') as f:
f.write(f"[{datetime.now()}] sunnylink: {str(e)}\n")
backoff = min(backoff * 2, 60)
time.sleep(backoff)
if time.monotonic() - start_time > timeout:
self._status_update(f"Giving up on sunnylink's registration after {timeout}s. Will retry on next boot.")
time.sleep(3)
break
self.params.put("SunnylinkDongleId", sunnylink_dongle_id or UNREGISTERED_SUNNYLINK_DONGLE_ID)
# Set the last ping time to the current time since we were just talking to the API
last_ping = int(time.monotonic() * 1e9) if successful_registration else start_time
Params().put("LastSunnylinkPingTime", str(last_ping))
# Disable sunnylink if registration was not successful
if not successful_registration:
Params().put_bool("SunnylinkEnabled", False)
self.spinner = None
return sunnylink_dongle_id

1
common/model.h Normal file
View File

@@ -0,0 +1 @@
#define CURRENT_MODEL "Notre Dame (July 1, 2024)"

View File

@@ -91,6 +91,7 @@ std::unordered_map<std::string, uint32_t> keys = {
{"AccessToken", CLEAR_ON_MANAGER_START | DONT_LOG},
{"AlwaysOnDM", PERSISTENT},
{"ApiCache_Device", PERSISTENT},
{"ApiCache_NavDestinations", PERSISTENT},
{"AssistNowToken", PERSISTENT},
{"AthenadPid", PERSISTENT},
{"AthenadUploadQueue", PERSISTENT},
@@ -110,45 +111,46 @@ std::unordered_map<std::string, uint32_t> keys = {
{"CurrentBootlog", PERSISTENT},
{"CurrentRoute", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"DisableLogging", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"DisablePowerDown", PERSISTENT},
{"DisableUpdates", PERSISTENT},
{"DisengageOnAccelerator", PERSISTENT},
{"DisablePowerDown", PERSISTENT | BACKUP},
{"DisableUpdates", PERSISTENT | BACKUP},
{"DisengageOnAccelerator", PERSISTENT | BACKUP},
{"DmModelInitialized", CLEAR_ON_ONROAD_TRANSITION},
{"DongleId", PERSISTENT},
{"DoReboot", CLEAR_ON_MANAGER_START},
{"DoShutdown", CLEAR_ON_MANAGER_START},
{"DoUninstall", CLEAR_ON_MANAGER_START},
{"ExperimentalLongitudinalEnabled", PERSISTENT | DEVELOPMENT_ONLY},
{"ExperimentalMode", PERSISTENT},
{"ExperimentalModeConfirmed", PERSISTENT},
{"ExperimentalLongitudinalEnabled", PERSISTENT | DEVELOPMENT_ONLY | BACKUP},
{"ExperimentalMode", PERSISTENT | BACKUP},
{"ExperimentalModeConfirmed", PERSISTENT | BACKUP},
{"FirmwareQueryDone", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"ForcePowerDown", PERSISTENT},
{"GitBranch", PERSISTENT},
{"GitCommit", PERSISTENT},
{"GitCommitDate", PERSISTENT},
{"GitDiff", PERSISTENT},
{"GithubSshKeys", PERSISTENT},
{"GithubUsername", PERSISTENT},
{"GithubSshKeys", PERSISTENT | BACKUP},
{"GithubUsername", PERSISTENT | BACKUP},
{"GitRemote", PERSISTENT},
{"GsmApn", PERSISTENT},
{"GsmMetered", PERSISTENT},
{"GsmRoaming", PERSISTENT},
{"GsmApn", PERSISTENT | BACKUP},
{"GsmMetered", PERSISTENT | BACKUP},
{"GsmRoaming", PERSISTENT | BACKUP},
{"HardwareSerial", PERSISTENT},
{"HasAcceptedTerms", PERSISTENT},
{"IMEI", PERSISTENT},
{"InstallDate", PERSISTENT},
{"IsDriverViewEnabled", CLEAR_ON_MANAGER_START},
{"IsEngaged", PERSISTENT},
{"IsLdwEnabled", PERSISTENT},
{"IsMetric", PERSISTENT},
{"IsLdwEnabled", PERSISTENT | BACKUP},
{"IsMetric", PERSISTENT | BACKUP},
{"IsOffroad", CLEAR_ON_MANAGER_START},
{"IsOnroad", PERSISTENT},
{"IsRhdDetected", PERSISTENT},
{"IsReleaseBranch", CLEAR_ON_MANAGER_START},
{"IsReleaseSPBranch", CLEAR_ON_MANAGER_START},
{"IsTakingSnapshot", CLEAR_ON_MANAGER_START},
{"IsTestedBranch", CLEAR_ON_MANAGER_START},
{"JoystickDebugMode", CLEAR_ON_MANAGER_START | CLEAR_ON_OFFROAD_TRANSITION},
{"LanguageSetting", PERSISTENT},
{"LanguageSetting", PERSISTENT | BACKUP},
{"LastAthenaPingTime", CLEAR_ON_MANAGER_START},
{"LastGPSPosition", PERSISTENT},
{"LastManagerExitReason", CLEAR_ON_MANAGER_START},
@@ -158,7 +160,12 @@ std::unordered_map<std::string, uint32_t> keys = {
{"LastUpdateTime", PERSISTENT},
{"LiveParameters", PERSISTENT},
{"LiveTorqueParameters", PERSISTENT | DONT_LOG},
{"LongitudinalPersonality", PERSISTENT},
{"LongitudinalPersonality", PERSISTENT | BACKUP},
{"NavDestination", CLEAR_ON_MANAGER_START | CLEAR_ON_OFFROAD_TRANSITION},
{"NavDestinationWaypoints", CLEAR_ON_MANAGER_START | CLEAR_ON_OFFROAD_TRANSITION},
{"NavPastDestinations", PERSISTENT},
{"NavSettingLeftSide", PERSISTENT | BACKUP},
{"NavSettingTime24h", PERSISTENT | BACKUP},
{"NetworkMetered", PERSISTENT},
{"ObdMultiplexingChanged", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"ObdMultiplexingEnabled", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
@@ -174,17 +181,18 @@ std::unordered_map<std::string, uint32_t> keys = {
{"Offroad_TemperatureTooHigh", CLEAR_ON_MANAGER_START},
{"Offroad_UnofficialHardware", CLEAR_ON_MANAGER_START},
{"Offroad_UpdateFailed", CLEAR_ON_MANAGER_START},
{"OpenpilotEnabledToggle", PERSISTENT},
{"Offroad_OSMUpdateRequired", CLEAR_ON_MANAGER_START},
{"OpenpilotEnabledToggle", PERSISTENT | BACKUP},
{"PandaHeartbeatLost", CLEAR_ON_MANAGER_START | CLEAR_ON_OFFROAD_TRANSITION},
{"PandaSomResetTriggered", CLEAR_ON_MANAGER_START | CLEAR_ON_OFFROAD_TRANSITION},
{"PandaSignatures", CLEAR_ON_MANAGER_START},
{"PrimeType", PERSISTENT},
{"RecordFront", PERSISTENT},
{"RecordFront", PERSISTENT | BACKUP},
{"RecordFrontLock", PERSISTENT}, // for the internal fleet
{"ReplayControlsState", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"RouteCount", PERSISTENT},
{"SnoozeUpdate", CLEAR_ON_MANAGER_START | CLEAR_ON_OFFROAD_TRANSITION},
{"SshEnabled", PERSISTENT},
{"SshEnabled", PERSISTENT | BACKUP},
{"TermsVersion", PERSISTENT},
{"TrainingVersion", PERSISTENT},
{"UbloxAvailable", PERSISTENT},
@@ -201,99 +209,149 @@ std::unordered_map<std::string, uint32_t> keys = {
{"UpdaterLastFetchTime", PERSISTENT},
{"Version", PERSISTENT},
{"AccMadsCombo", PERSISTENT},
{"AmapKey1", PERSISTENT},
{"AmapKey2", PERSISTENT},
{"AutoLaneChangeTimer", PERSISTENT},
{"AutoLaneChangeBsmDelay", PERSISTENT},
{"BelowSpeedPause", PERSISTENT},
{"BrakeLights", PERSISTENT},
{"BrightnessControl", PERSISTENT},
{"ButtonAutoHide", PERSISTENT},
{"CameraControl", PERSISTENT},
{"CameraControlToggle", PERSISTENT},
{"CameraOffset", PERSISTENT},
{"CarModel", PERSISTENT},
{"CarModelText", PERSISTENT},
{"ChevronInfo", PERSISTENT},
{"CustomBootScreen", PERSISTENT},
{"CustomMapboxTokenPk", PERSISTENT},
{"CustomMapboxTokenSk", PERSISTENT},
{"CustomOffsets", PERSISTENT},
{"CustomStockLong", PERSISTENT},
{"CustomTorqueLateral", PERSISTENT},
{"DevUI", PERSISTENT},
{"DevUIInfo", PERSISTENT},
{"DisableOnroadUploads", PERSISTENT},
{"DisengageLateralOnBrake", PERSISTENT},
{"DynamicExperimentalControl", PERSISTENT},
{"DynamicExperimentalControlToggle", PERSISTENT},
{"DynamicLaneProfile", PERSISTENT},
{"DynamicLaneProfileToggle", PERSISTENT},
{"EnableAmap", PERSISTENT},
{"EnableDebugSnapshot", PERSISTENT},
{"EnableGmap", PERSISTENT},
{"EnableMads", PERSISTENT},
{"EndToEndLongAlertLead", PERSISTENT},
{"EndToEndLongAlertLight", PERSISTENT},
{"EndToEndLongAlertUI", PERSISTENT},
{"EndToEndLongToggle", PERSISTENT},
{"EnforceTorqueLateral", PERSISTENT},
{"EnhancedScc", PERSISTENT},
{"AccelPersonality", PERSISTENT | BACKUP},
{"AccMadsCombo", PERSISTENT | BACKUP},
{"AmapKey1", PERSISTENT | BACKUP},
{"AmapKey2", PERSISTENT | BACKUP},
{"ApiCache_DriveStats", PERSISTENT | BACKUP},
{"AutoLaneChangeTimer", PERSISTENT | BACKUP},
{"AutoLaneChangeBsmDelay", PERSISTENT | BACKUP},
{"BelowSpeedPause", PERSISTENT | BACKUP},
{"BrakeLights", PERSISTENT | BACKUP},
{"BrightnessControl", PERSISTENT | BACKUP},
{"ButtonAutoHide", PERSISTENT | BACKUP},
{"CameraControl", PERSISTENT | BACKUP},
{"CameraControlToggle", PERSISTENT | BACKUP},
{"CameraOffset", PERSISTENT | BACKUP},
{"CarModel", PERSISTENT | BACKUP},
{"CarModelText", PERSISTENT | BACKUP},
{"ChevronInfo", PERSISTENT | BACKUP},
{"CustomBootScreen", PERSISTENT | BACKUP},
{"CustomDrivingModel", PERSISTENT},
{"CustomMapboxTokenPk", PERSISTENT | BACKUP},
{"CustomMapboxTokenSk", PERSISTENT | BACKUP},
{"CustomOffsets", PERSISTENT | BACKUP},
{"CustomStockLong", PERSISTENT | BACKUP},
{"CustomTorqueLateral", PERSISTENT | BACKUP},
{"DevUIInfo", PERSISTENT | BACKUP},
{"DisableOnroadUploads", PERSISTENT | BACKUP},
{"DisengageLateralOnBrake", PERSISTENT | BACKUP},
{"DrivingModelGeneration", PERSISTENT},
{"DrivingModelMetadataText", PERSISTENT},
{"DrivingModelName", PERSISTENT},
{"DrivingModelText", PERSISTENT},
{"DrivingModelUrl", PERSISTENT},
{"DynamicExperimentalControl", PERSISTENT | BACKUP},
{"DynamicLaneProfile", PERSISTENT | BACKUP},
{"DynamicPersonality", PERSISTENT | BACKUP},
{"EnableAmap", PERSISTENT | BACKUP},
{"EnableGmap", PERSISTENT | BACKUP},
{"EnableMads", PERSISTENT | BACKUP},
{"EnableSlc", PERSISTENT | BACKUP},
{"EndToEndLongAlertLead", PERSISTENT | BACKUP},
{"EndToEndLongAlertLight", PERSISTENT | BACKUP},
{"EndToEndLongAlertUI", PERSISTENT | BACKUP},
{"EndToEndLongToggle", PERSISTENT | BACKUP},
{"EnforceTorqueLateral", PERSISTENT | BACKUP},
{"EnhancedScc", PERSISTENT | BACKUP},
{"FeatureStatus", PERSISTENT | BACKUP},
{"FleetManagerPin", PERSISTENT},
{"GapAdjustCruise", PERSISTENT},
{"GapAdjustCruiseMax", PERSISTENT},
{"GapAdjustCruiseMin", PERSISTENT},
{"GapAdjustCruiseMode", PERSISTENT},
{"GapAdjustCruiseTr", PERSISTENT},
{"GmapKey", PERSISTENT},
{"HandsOnWheelMonitoring", PERSISTENT},
{"HideVEgoUi", PERSISTENT},
{"HkgSmoothStop", PERSISTENT},
{"ForceOffroad", CLEAR_ON_MANAGER_START},
{"GmapKey", PERSISTENT | BACKUP},
{"HandsOnWheelMonitoring", PERSISTENT | BACKUP},
{"HasAcceptedTermsSP", PERSISTENT},
{"HideVEgoUi", PERSISTENT | BACKUP},
{"HkgSmoothStop", PERSISTENT | BACKUP},
{"HotspotOnBoot", PERSISTENT},
{"LastCarModel", PERSISTENT},
{"HotspotOnBootConfirmed", PERSISTENT},
{"LastCarModel", PERSISTENT | BACKUP},
{"LastSpeedLimitSignTap", PERSISTENT},
{"LiveTorque", PERSISTENT},
{"LkasToggle", PERSISTENT},
{"MadsCruiseMain", PERSISTENT},
{"MadsIconToggle", PERSISTENT},
{"MapboxFullScreen", PERSISTENT},
{"MaxTimeOffroad", PERSISTENT},
{"OnroadScreenOff", PERSISTENT},
{"OnroadScreenOffBrightness", PERSISTENT},
{"OnroadScreenOffEvent", PERSISTENT},
{"OsmDbUpdatesCheck", PERSISTENT},
{"LastSunnylinkPingTime", CLEAR_ON_MANAGER_START},
{"LiveTorque", PERSISTENT | BACKUP},
{"LiveTorqueRelaxed", PERSISTENT | BACKUP},
{"LkasToggle", PERSISTENT | BACKUP},
{"MadsCruiseMain", PERSISTENT | BACKUP},
{"MadsIconToggle", PERSISTENT | BACKUP},
{"MapboxFullScreen", PERSISTENT | BACKUP},
{"MapTargetVelocities", PERSISTENT},
{"Map3DBuildings", PERSISTENT | BACKUP},
{"MaxTimeOffroad", PERSISTENT | BACKUP},
{"NavModelText", PERSISTENT | BACKUP},
{"NavModelUrl", PERSISTENT | BACKUP},
{"NNFF", PERSISTENT | BACKUP},
{"NNFFCarModel", PERSISTENT | BACKUP},
{"OnroadScreenOff", PERSISTENT | BACKUP},
{"OnroadScreenOffBrightness", PERSISTENT | BACKUP},
{"OnroadScreenOffEvent", PERSISTENT | BACKUP},
{"OnroadSettings", PERSISTENT | BACKUP},
{"OsmLocal", PERSISTENT},
{"OsmLocalDb", PERSISTENT},
{"OsmLocationName", PERSISTENT},
{"OsmLocationTitle", PERSISTENT},
{"OsmLocationUrl", PERSISTENT},
{"OsmWayTest", PERSISTENT},
{"PathOffset", PERSISTENT},
{"QuietDrive", PERSISTENT},
{"RoadEdge", PERSISTENT},
{"ReverseAccChange", PERSISTENT},
{"ReverseDmCam", PERSISTENT},
{"ScreenRecorder", PERSISTENT},
{"ShowDebugUI", PERSISTENT},
{"SidebarTemperature", PERSISTENT},
{"SidebarTemperatureOptions", PERSISTENT},
{"SpeedLimitControl", PERSISTENT},
{"SpeedLimitPercOffset", PERSISTENT},
{"SpeedLimitValueOffset", PERSISTENT},
{"SpeedLimitOffsetType", PERSISTENT},
{"StandStillTimer", PERSISTENT},
{"StockLongToyota", PERSISTENT},
{"TorqueDeadzoneDeg", PERSISTENT},
{"TorqueFriction", PERSISTENT},
{"TorqueMaxLatAccel", PERSISTENT},
{"ToyotaTSS2Long", PERSISTENT},
{"TrueVEgoUi", PERSISTENT},
{"TurnSpeedControl", PERSISTENT},
{"TurnVisionControl", PERSISTENT},
{"VisionCurveLaneless", PERSISTENT},
{"VwAccType", PERSISTENT},
{"OsmDownloadedDate", PERSISTENT},
{"PathOffset", PERSISTENT | BACKUP},
{"PauseLateralSpeed", PERSISTENT | BACKUP},
{"QuietDrive", PERSISTENT | BACKUP},
{"RoadEdge", PERSISTENT | BACKUP},
{"ReverseAccChange", PERSISTENT | BACKUP},
{"ReverseDmCam", PERSISTENT | BACKUP},
{"ScreenRecorder", PERSISTENT | BACKUP},
{"ShowDebugUI", PERSISTENT | BACKUP},
{"SidebarTemperatureOptions", PERSISTENT | BACKUP},
{"SpeedLimitControlPolicy", PERSISTENT | BACKUP},
{"SpeedLimitEngageType", PERSISTENT | BACKUP},
{"SpeedLimitValueOffset", PERSISTENT | BACKUP},
{"SpeedLimitOffsetType", PERSISTENT | BACKUP},
{"SpeedLimitWarningFlash", PERSISTENT | BACKUP},
{"SpeedLimitWarningType", PERSISTENT | BACKUP},
{"SpeedLimitWarningValueOffset", PERSISTENT | BACKUP},
{"SpeedLimitWarningOffsetType", PERSISTENT | BACKUP},
{"StandStillTimer", PERSISTENT | BACKUP},
{"StockLongToyota", PERSISTENT | BACKUP},
{"SubaruManualParkingBrakeSng", PERSISTENT | BACKUP},
{"SunnylinkDongleId", PERSISTENT},
{"SunnylinkEnabled", PERSISTENT},
{"SunnylinkdPid", PERSISTENT},
{"TermsVersionSunnypilot", PERSISTENT},
{"TorqueDeadzoneDeg", PERSISTENT | BACKUP},
{"TorqueFriction", PERSISTENT | BACKUP},
{"TorqueMaxLatAccel", PERSISTENT | BACKUP},
{"TorquedOverride", PERSISTENT | BACKUP},
{"ToyotaAutoLockBySpeed", PERSISTENT | BACKUP},
{"ToyotaAutoUnlockByShifter", PERSISTENT | BACKUP},
{"ToyotaEnhancedBsm", PERSISTENT | BACKUP},
{"ToyotaSnG", PERSISTENT | BACKUP},
{"ToyotaTSS2Long", PERSISTENT | BACKUP},
{"TrueVEgoUi", PERSISTENT | BACKUP},
{"TurnSpeedControl", PERSISTENT | BACKUP},
{"TurnVisionControl", PERSISTENT | BACKUP},
{"DriverCameraHardwareMissing", PERSISTENT},
{"VisionCurveLaneless", PERSISTENT | BACKUP},
{"VwAccType", PERSISTENT | BACKUP},
{"VwCCOnly", PERSISTENT | BACKUP},
{"Offroad_ForceStatus", CLEAR_ON_MANAGER_START},
{"Offroad_SupersededUpdate", PERSISTENT},
{"SunnylinkCache_Users", PERSISTENT},
{"SunnylinkCache_Roles", PERSISTENT},
{"EnableGitlabRunner", PERSISTENT | BACKUP},
{"EnableSunnylinkUploader", PERSISTENT | BACKUP},
// PFEIFER - MAPD {{
{"MapdVersion", PERSISTENT},
{"RoadName", CLEAR_ON_ONROAD_TRANSITION},
{"MapSpeedLimit", CLEAR_ON_ONROAD_TRANSITION},
{"MapAdvisorySpeedLimit", CLEAR_ON_ONROAD_TRANSITION},
{"NextMapSpeedLimit", CLEAR_ON_ONROAD_TRANSITION},
{"OSMDownloadBounds", PERSISTENT},
{"OSMDownloadLocations", PERSISTENT},
{"OsmDownloadedDate", PERSISTENT},
{"OsmStateTitle", PERSISTENT},
{"OsmStateName", PERSISTENT},
{"OSMDownloadProgress", CLEAR_ON_MANAGER_START},
{"OsmDbUpdatesCheck", CLEAR_ON_MANAGER_START}, // mapd database update happens with device ON, reset on boot
// }} PFEIFER - MAPD
};
} // namespace

View File

@@ -16,6 +16,7 @@ enum ParamKeyType {
CLEAR_ON_OFFROAD_TRANSITION = 0x10,
DONT_LOG = 0x20,
DEVELOPMENT_ONLY = 0x40,
BACKUP = 0x80,
ALL = 0xFFFFFFFF
};

View File

@@ -3,6 +3,7 @@
from libcpp cimport bool
from libcpp.string cimport string
from libcpp.vector cimport vector
from libcpp.map cimport map
cdef extern from "common/params.h":
cpdef enum ParamKeyType:
@@ -11,6 +12,7 @@ cdef extern from "common/params.h":
CLEAR_ON_ONROAD_TRANSITION
CLEAR_ON_OFFROAD_TRANSITION
DEVELOPMENT_ONLY
BACKUP
ALL
cdef cppclass c_Params "Params":
@@ -26,6 +28,7 @@ cdef extern from "common/params.h":
string getParamPath(string) nogil
void clearAll(ParamKeyType)
vector[string] allKeys()
map[string, string] readAll()
def ensure_bytes(v):
@@ -116,3 +119,6 @@ cdef class Params:
def all_keys(self):
return self.p.allKeys()
def read_all(self):
return self.p.readAll()

View File

@@ -2,6 +2,8 @@
import gc
import os
import time
import threading
import psutil
from collections import deque
from openpilot.common.threadname import getthreadname
@@ -44,6 +46,14 @@ def config_realtime_process(cores: int | list[int], priority: int) -> None:
set_core_affinity(c)
def set_thread_affinity(thread: threading.Thread, cores: list[int]) -> None:
try:
process = psutil.Process(thread.ident)
process.cpu_affinity(cores)
except Exception as e:
print(f"Error setting thread affinity: {e}")
class Ratekeeper:
def __init__(self, rate: float, print_delay_threshold: float | None = 0.0) -> None:
"""Rate in Hz for ratekeeping. print_delay_threshold must be nonnegative."""

View File

@@ -86,7 +86,8 @@ function launch {
if [ ! -f $DIR/prebuilt ]; then
./build.py
fi
./manager.py
./mapd_installer.py; ./manager.py
# if broken, keep on screen error
while true; do sleep 1; done

2
panda

Submodule panda updated: 6e117a24aa...5d92bdc6de

128
release/build_dev.sh Executable file
View File

@@ -0,0 +1,128 @@
#!/usr/bin/bash -e
# git diff --name-status origin/release3-staging | grep "^A" | less
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR
BUILD_DIR=/data/openpilot
SOURCE_DIR="$(git rev-parse --show-toplevel)"
FILES_SRC="release/files_tici"
DEV_BRANCH="dev-c3"
# set git identity
source $DIR/identity.sh
export GIT_SSH_COMMAND="ssh -i /data/gitkey"
echo "[-] Setting up repo T=$SECONDS"
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR
cd $BUILD_DIR
git init
# set git username/password
source /data/identity.sh
git remote add origin https://github.com/sunnyhaibin/sunnypilot.git
git fetch origin $DEV_BRANCH
# do the files copy
echo "[-] copying files T=$SECONDS"
cd $SOURCE_DIR
cp -pR --parents $(cat release/files_common) $BUILD_DIR/
cp -pR --parents $(cat $FILES_SRC) $BUILD_DIR/
# in the directory
cd $BUILD_DIR
rm -f panda/board/obj/panda.bin.signed
rm -f panda/board/obj/panda_h7.bin.signed
rm -f panda/board/obj/bootstub.panda.bin
rm -f panda/board/obj/bootstub.panda_h7.bin
VERSION=$(date '+%Y.%m.%d')
echo "#define COMMA_VERSION \"$VERSION-dev\"" > common/version.h
echo "[-] committing version $VERSION T=$SECONDS"
git add -f .
git commit -a -m "sunnypilot v$VERSION release"
git branch --set-upstream-to=origin/$DEV_BRANCH
# Build panda firmware
pushd panda/
scons -u .
mv board/obj/panda.bin.signed /tmp/panda.bin.signed
mv board/obj/panda_h7.bin.signed /tmp/panda_h7.bin.signed
mv board/obj/bootstub.panda.bin /tmp/bootstub.panda.bin
mv board/obj/bootstub.panda_h7.bin /tmp/bootstub.panda_h7.bin
popd
# Build
export PYTHONPATH="$BUILD_DIR"
scons -j$(nproc)
# Ensure no submodules in release
if test "$(git submodule--helper list | wc -l)" -gt "0"; then
echo "submodules found:"
git submodule--helper list
exit 1
fi
git submodule status
# Cleanup
find . -name '*.a' -delete
find . -name '*.o' -delete
find . -name '*.os' -delete
find . -name '*.pyc' -delete
find . -name 'moc_*' -delete
find . -name '*.cc' -delete
find . -name '__pycache__' -delete
find selfdrive/ui/ -name '*.h' -delete
rm -rf panda/board panda/certs panda/crypto
rm -rf .sconsign.dblite Jenkinsfile release/
rm selfdrive/modeld/models/supercombo.onnx
rm -rf selfdrive/ui/replay/
# Move back signed panda fw
mkdir -p panda/board/obj
mv /tmp/panda.bin.signed panda/board/obj/panda.bin.signed
mv /tmp/panda_h7.bin.signed panda/board/obj/panda_h7.bin.signed
mv /tmp/bootstub.panda.bin panda/board/obj/bootstub.panda.bin
mv /tmp/bootstub.panda_h7.bin panda/board/obj/bootstub.panda_h7.bin
# Restore third_party
git checkout third_party/
# Mark as prebuilt release
touch prebuilt
# include source commit hash and build date in commit
GIT_HASH=$(git --git-dir=$SOURCE_DIR/.git rev-parse HEAD)
DATETIME=$(date '+%Y-%m-%dT%H:%M:%S')
SP_VERSION=$(cat $SOURCE_DIR/common/version.h | awk -F\" '{print $2}')
# Add built files to git
git add -f .
git commit --amend -m "sunnypilot v$VERSION
version: sunnypilot v$SP_VERSION release
date: $DATETIME
master commit: $GIT_HASH
"
git branch -m dev-c3
# Run tests
#TEST_FILES="tools/"
#cd $SOURCE_DIR
#cp -pR -n --parents $TEST_FILES $BUILD_DIR/
#cd $BUILD_DIR
#RELEASE=1 selfdrive/test/test_onroad.py
#selfdrive/manager/test/test_manager.py
#selfdrive/car/tests/test_car_interfaces.py
#rm -rf $TEST_FILES
if [ ! -z "$PUSH" ]; then
echo "[-] pushing T=$SECONDS"
git push -f origin $DEV_BRANCH
fi
echo "[-] done T=$SECONDS"

View File

@@ -19,14 +19,17 @@ fi
# set git identity
source $DIR/identity.sh
export GIT_SSH_COMMAND="ssh -i /data/gitkey"
echo "[-] Setting up repo T=$SECONDS"
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR
cd $BUILD_DIR
git init
git remote add origin git@github.com:commaai/openpilot.git
git checkout --orphan $RELEASE_BRANCH
# set git username/password
source /data/identity.sh
git remote add origin https://github.com/sunnyhaibin/sunnypilot.git
git fetch origin $RELEASE_BRANCH
# do the files copy
echo "[-] copying files T=$SECONDS"
@@ -38,20 +41,23 @@ cd $BUILD_DIR
rm -f panda/board/obj/panda.bin.signed
rm -f panda/board/obj/panda_h7.bin.signed
rm -f panda/board/obj/bootstub.panda.bin
rm -f panda/board/obj/bootstub.panda_h7.bin
VERSION=$(cat common/version.h | awk -F[\"-] '{print $2}')
echo "#define COMMA_VERSION \"$VERSION-release\"" > common/version.h
echo "[-] committing version $VERSION T=$SECONDS"
git add -f .
git commit -a -m "openpilot v$VERSION release"
git commit -a -m "sunnypilot v$VERSION release"
git branch --set-upstream-to=origin/$RELEASE_BRANCH
# Build
export PYTHONPATH="$BUILD_DIR"
scons -j$(nproc) --minimal
# release panda fw
CERT=/data/pandaextra/certs/release RELEASE=1 scons -j$(nproc) panda/
scons -j$(nproc) panda/
# Ensure no submodules in release
if test "$(git submodule--helper list | wc -l)" -gt "0"; then
@@ -67,9 +73,12 @@ find . -name '*.o' -delete
find . -name '*.os' -delete
find . -name '*.pyc' -delete
find . -name 'moc_*' -delete
find . -name '*.cc' -delete
find . -name '__pycache__' -delete
find selfdrive/ui/ -name '*.h' -delete
rm -rf .sconsign.dblite Jenkinsfile release/
rm selfdrive/modeld/models/supercombo.onnx
rm -rf selfdrive/ui/replay/
find third_party/ -name '*x86*' -exec rm -r {} +
find third_party/ -name '*Darwin*' -exec rm -r {} +
@@ -81,19 +90,25 @@ git checkout third_party/
# Mark as prebuilt release
touch prebuilt
# include source commit hash and build date in commit
GIT_HASH=$(git --git-dir=$SOURCE_DIR/.git rev-parse HEAD)
DATETIME=$(date '+%Y-%m-%dT%H:%M:%S')
SP_VERSION=$(cat $SOURCE_DIR/common/version.h | awk -F\" '{print $2}')
# Add built files to git
git add -f .
git commit --amend -m "openpilot v$VERSION"
git commit --amend -m "sunnypilot v$VERSION"
git branch -m release-c3
# Run tests
TEST_FILES="tools/"
cd $SOURCE_DIR
cp -pR -n --parents $TEST_FILES $BUILD_DIR/
cd $BUILD_DIR
RELEASE=1 pytest -n0 -s selfdrive/test/test_onroad.py
#TEST_FILES="tools/"
#cd $SOURCE_DIR
#cp -pR -n --parents $TEST_FILES $BUILD_DIR/
#cd $BUILD_DIR
#RELEASE=1 pytest -n0 -s selfdrive/test/test_onroad.py
#system/manager/test/test_manager.py
pytest selfdrive/car/tests/test_car_interfaces.py
rm -rf $TEST_FILES
#pytest selfdrive/car/tests/test_car_interfaces.py
#rm -rf $TEST_FILES
if [ ! -z "$RELEASE_BRANCH" ]; then
echo "[-] pushing release T=$SECONDS"

125
release/build_staging.sh Executable file
View File

@@ -0,0 +1,125 @@
#!/usr/bin/bash -e
# git diff --name-status origin/release3-staging | grep "^A" | less
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR
BUILD_DIR=/data/openpilot
SOURCE_DIR="$(git rev-parse --show-toplevel)"
FILES_SRC="release/files_tici"
STAGING_BRANCH="staging-c3"
# set git identity
source $DIR/identity.sh
export GIT_SSH_COMMAND="ssh -i /data/gitkey"
echo "[-] Setting up repo T=$SECONDS"
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR
cd $BUILD_DIR
git init
# set git username/password
source /data/identity.sh
git remote add origin https://github.com/sunnyhaibin/sunnypilot.git
git fetch origin $STAGING_BRANCH
# do the files copy
echo "[-] copying files T=$SECONDS"
cd $SOURCE_DIR
cp -pR --parents $(cat release/files_common) $BUILD_DIR/
cp -pR --parents $(cat $FILES_SRC) $BUILD_DIR/
# in the directory
cd $BUILD_DIR
rm -f panda/board/obj/panda.bin.signed
rm -f panda/board/obj/panda_h7.bin.signed
rm -f panda/board/obj/bootstub.panda.bin
rm -f panda/board/obj/bootstub.panda_h7.bin
VERSION=$(cat common/version.h | awk -F[\"-] '{print $2}')
echo "#define COMMA_VERSION \"$VERSION-staging\"" > common/version.h
echo "[-] committing version $VERSION T=$SECONDS"
git add -f .
git commit -a -m "sunnypilot v$VERSION release"
git branch --set-upstream-to=origin/$STAGING_BRANCH
# Build panda firmware
pushd panda/
scons -u .
mv board/obj/panda.bin.signed /tmp/panda.bin.signed
mv board/obj/panda_h7.bin.signed /tmp/panda_h7.bin.signed
mv board/obj/bootstub.panda.bin /tmp/bootstub.panda.bin
mv board/obj/bootstub.panda_h7.bin /tmp/bootstub.panda_h7.bin
popd
# Build
export PYTHONPATH="$BUILD_DIR"
scons -j$(nproc)
# Ensure no submodules in release
if test "$(git submodule--helper list | wc -l)" -gt "0"; then
echo "submodules found:"
git submodule--helper list
exit 1
fi
git submodule status
# Cleanup
find . -name '*.a' -delete
find . -name '*.o' -delete
find . -name '*.os' -delete
find . -name '*.pyc' -delete
find . -name 'moc_*' -delete
find . -name '*.cc' -delete
find . -name '__pycache__' -delete
find selfdrive/ui/ -name '*.h' -delete
rm -rf panda/board panda/certs panda/crypto
rm -rf .sconsign.dblite Jenkinsfile release/
rm selfdrive/modeld/models/supercombo.onnx
#rm models/supercombo_badweights.thneed
rm -rf selfdrive/ui/replay/
# Move back signed panda fw
mkdir -p panda/board/obj
mv /tmp/panda.bin.signed panda/board/obj/panda.bin.signed
mv /tmp/panda_h7.bin.signed panda/board/obj/panda_h7.bin.signed
mv /tmp/bootstub.panda.bin panda/board/obj/bootstub.panda.bin
mv /tmp/bootstub.panda_h7.bin panda/board/obj/bootstub.panda_h7.bin
# Restore third_party
git checkout third_party/
# Mark as prebuilt release
touch prebuilt
# include source commit hash and build date in commit
GIT_HASH=$(git --git-dir=$SOURCE_DIR/.git rev-parse HEAD)
DATETIME=$(date '+%Y-%m-%dT%H:%M:%S')
SP_VERSION=$(cat $SOURCE_DIR/common/version.h | awk -F\" '{print $2}')
# Add built files to git
git add -f .
git commit --amend -m "sunnypilot v$VERSION"
git branch -m staging-c3
# Run tests
#TEST_FILES="tools/"
#cd $SOURCE_DIR
#cp -pR -n --parents $TEST_FILES $BUILD_DIR/
#cd $BUILD_DIR
#RELEASE=1 selfdrive/test/test_onroad.py
#selfdrive/manager/test/test_manager.py
#selfdrive/car/tests/test_car_interfaces.py
#rm -rf $TEST_FILES
if [ ! -z "$PUSH" ]; then
echo "[-] pushing T=$SECONDS"
git push -f origin $STAGING_BRANCH
fi
echo "[-] done T=$SECONDS"

45
release/ci/build.sh Executable file
View File

@@ -0,0 +1,45 @@
# UNUSED YET BUT I WANT TO KEEP IT BECAUSE I INTEND TO USE IT SOON
#!/usr/bin/env bash
# set -e
# DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
# cd $DIR
# # Take parameters as arguments
# SOURCE_DIR=$1
# OUTPUT_DIR=$2
# # Check parameters
# if [ -z "$SOURCE_DIR" ] || [ -z "$OUTPUT_DIR" ]; then
# echo "Error: No source or output directory provided."
# exit 1
# fi
# if [ -z "$TARGETPLATFORM" ]; then
# # Detect the platform (e.g., x86_64, aarch64, etc.)
# platform=$(uname -m)
# # Map to Docker's platform syntax
# if [ "$platform" = "x86_64" ]; then
# TARGETPLATFORM="linux/amd64"
# elif [ "$platform" = "aarch64" ]; then
# TARGETPLATFORM="linux/arm64"
# # Add here more elif statements for other architectures if needed.
# else
# echo "Unknown platform: $platform"
# exit 1
# fi
# export TARGETPLATFORM
# fi
# echo "TARGETPLATFORM IS: [${TARGETPLATFORM}]"
# # Let's bring the submodules!
# git submodule update --init --recursive
# # Build
# docker compose -f ${SOURCE_DIR}/docker-compose.yml build
# docker compose -f ${SOURCE_DIR}/docker-compose.yml up

27
release/ci/build_and_publish.sh Executable file
View File

@@ -0,0 +1,27 @@
# UNUSED YET BUT I WANT TO KEEP IT BECAUSE I INTEND TO USE IT SOON
# #!/usr/bin/env bash
# DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
# cd $DIR
# DEV_BRANCH=$1
# GIT_ORIGIN=$2
# if [ -z "$DEV_BRANCH" ]; then
# DEV_BRANCH="dev-c3-test"
# fi
# if [ -z "$GIT_ORIGIN" ]; then
# GIT_ORIGIN="git@github.com:devtekve/openpilot-og.git" #This is a default that should be changed
# echo "No GIT_ORIGIN provided, we will use the default [${GIT_ORIGIN}]"
# fi
# VERSION=$(date '+%Y.%m.%d')
# SOURCE_DIR="$(git rev-parse --show-toplevel)"
# OUTPUT_DIR=${SOURCE_DIR}/output
# echo "Calling to build [${DIR}/build.sh ${SOURCE_DIR} ${OUTPUT_DIR} ${VERSION}]"
# $DIR/build.sh "${SOURCE_DIR}" "${OUTPUT_DIR}" "${VERSION}"
# echo "Calling to publish [${DIR}/publish.sh ${SOURCE_DIR} ${OUTPUT_DIR} ${DEV_BRANCH} ${VERSION} ${GIT_ORIGIN}]"
# $DIR/publish.sh "${SOURCE_DIR}" "${OUTPUT_DIR}" "${DEV_BRANCH}" "${VERSION}" "${GIT_ORIGIN}"

View File

@@ -0,0 +1,13 @@
{
"embeds": [
{
"title": "❗️ Action Required for `${CI_COMMIT_REF_NAME}` ❗️",
"description": "[${CI_PROJECT_NAME}](${CI_PROJECT_URL}): Pipeline [#${CI_PIPELINE_ID}](${CI_PROJECT_URL}/-/pipelines/${CI_PIPELINE_ID}) of branch [${CI_COMMIT_REF_NAME}](${CI_PROJECT_URL}/-/commits/${CI_COMMIT_REF_NAME}) by ${GITLAB_USER_NAME} (${GITLAB_USER_LOGIN}) is ready to publish manually as [${NEW_BRANCH}](${PUBLIC_REPO_URL}/tree/${NEW_BRANCH})",
"color": 16763904,
"author": {
"name": "${GITLAB_USER_LOGIN}",
"icon_url": "${AVATAR_URL}"
}
}
]
}

View File

@@ -0,0 +1,9 @@
{
"embeds": [
{
"title": "🎉 sunnypilot `${NEW_BRANCH}` New Update 🎉",
"description": "[sunnypilot](${PUBLIC_REPO_URL}): Build #${EXTRA_VERSION_IDENTIFIER} of branch [${NEW_BRANCH}](${PUBLIC_REPO_URL}/tree/${NEW_BRANCH}) has been published.\n\nDrive safe! 🚗💨",
"color": 4321431
}
]
}

View File

@@ -0,0 +1,107 @@
#!/bin/bash
set -e
# Check if script arguments are present, if not exit the script
if [ $# -eq 0 ]; then
echo "No arguments provided. A GitLab token is required to run this script."
exit 1
fi
# Constants
GITLAB_RUNNER_DOWNLOAD_URL="https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-arm64"
GITLAB_RUNNER_USER_NAME="gitlab-runner"
USER_GROUPS="comma,gpu,gpio,sudo"
GITLAB_BASE_DIR="/data/gitlab"
GITLAB_BIN_DIR="${GITLAB_BASE_DIR}/bin"
GITLAB_BUILDS_DIR="${GITLAB_BASE_DIR}/builds"
GITLAB_LOGS_DIR="${GITLAB_BASE_DIR}/logs"
GITLAB_CACHE_DIR="${GITLAB_BASE_DIR}/cache"
GITLAB_OPENPILOT_DIR="${GITLAB_BASE_DIR}/openpilot"
SERVICE_NAME="gitlab-runner"
create_gitlab_runner_directories() {
sudo mkdir -p "$GITLAB_BIN_DIR" "$GITLAB_BUILDS_DIR" "$GITLAB_LOGS_DIR" "$GITLAB_CACHE_DIR" "$GITLAB_OPENPILOT_DIR"
mkdir -p "/data/openpilot"
sudo chown -R comma:comma "/data/openpilot"
}
download_and_setup_gitlab_runner() {
sudo curl -L --output "$GITLAB_BIN_DIR/gitlab-runner" "$GITLAB_RUNNER_DOWNLOAD_URL"
sudo chmod +x "$GITLAB_BIN_DIR/gitlab-runner"
}
setup_gitlab_runner_user() {
sudo useradd --comment 'GitLab Runner' --create-home --home-dir ${GITLAB_BASE_DIR} ${GITLAB_RUNNER_USER_NAME} --shell /bin/bash -G ${USER_GROUPS} || sudo usermod -aG ${USER_GROUPS} ${GITLAB_RUNNER_USER_NAME}
export GITLAB_BASE_DIR # Export it to make it available to sub-processes
sudo -u ${GITLAB_RUNNER_USER_NAME} bash -c "truncate -s 0 '${GITLAB_BASE_DIR}/.bash_logout'"
}
create_sudoers_entry() {
sudo grep -qxF "${GITLAB_RUNNER_USER_NAME} ALL=(ALL) NOPASSWD: ALL" /etc/sudoers || echo "${GITLAB_RUNNER_USER_NAME} ALL=(ALL) NOPASSWD: ALL" | sudo tee -a /etc/sudoers
}
generate_gitlab_config_file() {
cat <<EOL | sudo tee "$GITLAB_BASE_DIR/config.toml"
[[runners]]
name = "tici"
url = "https://gitlab.com/"
token = "$1"
executor = "shell"
builds_dir = "$GITLAB_BUILDS_DIR"
[runners.custom_build_dir]
[runners.docker]
volumes = ["$GITLAB_CACHE_DIR:/cache"]
[runners.cache]
MaxUploadedArchiveSize = 0
[runners.custom]
config_exec = "$GITLAB_LOGS_DIR"
EOL
}
set_gitlab_directory_permissions() {
sudo chown -R ${GITLAB_RUNNER_USER_NAME}:comma "$GITLAB_BASE_DIR"
sudo chmod g+rwx "$GITLAB_BASE_DIR"
sudo chmod g+s "$GITLAB_BASE_DIR"
}
# Please note that when the gitlab runner is started, linux implicitly executes "source /etc/profile" for every logged shell. This will make scons available
create_gitlab_runner_service() {
cat <<EOL | sudo tee /etc/systemd/system/${SERVICE_NAME}.service
[Unit]
Description=GitLab Runner
After=syslog.target network.target
ConditionFileIsExecutable=$GITLAB_BIN_DIR/gitlab-runner
[Service]
StartLimitInterval=5
StartLimitBurst=10
ExecStart=/usr/bin/unshare -m -- sh -c 'mount --bind $GITLAB_OPENPILOT_DIR /data/openpilot && exec $GITLAB_BIN_DIR/gitlab-runner "run" "--working-directory" "$GITLAB_BUILDS_DIR" "--config" "$GITLAB_BASE_DIR/config.toml" "--service" "gitlab-runner" "--syslog" "--user" "${GITLAB_RUNNER_USER_NAME}"'
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.target
EOL
}
start_gitlab_runner_service() {
sudo systemctl daemon-reload
sudo systemctl disable gitlab-runner # Intentionally making sure the service is NOT enabled on boot.
sudo systemctl start gitlab-runner
}
# Make the filesystem writable
sudo mount -o remount,rw /
# Ensure filesystem is remounted as read-only on script exit
trap "sudo mount -o remount,ro /" EXIT
# Call functions
setup_gitlab_runner_user
create_sudoers_entry
create_gitlab_runner_directories
download_and_setup_gitlab_runner
generate_gitlab_config_file "$1"
set_gitlab_directory_permissions
create_gitlab_runner_service
start_gitlab_runner_service
# End of install script

79
release/ci/publish.sh Executable file
View File

@@ -0,0 +1,79 @@
#!/usr/bin/env bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR
# Take parameters as arguments
SOURCE_DIR=$1
OUTPUT_DIR=$2
DEV_BRANCH=$3
VERSION=$4
GIT_ORIGIN=$5
EXTRA_VERSION_IDENTIFIER=$6
# Check parameters
if [ -z "$SOURCE_DIR" ] || [ -z "$OUTPUT_DIR" ]; then
echo "Error: No source or output directory provided."
exit 1
fi
if [ -z "$DEV_BRANCH" ] || [ -z "$VERSION" ]; then
echo "Error: No dev branch or version provided."
exit 1
fi
if [ -z "$GIT_ORIGIN" ]; then
echo "Error: No GIT_ORIGIN provided"
exit 1
fi
# "Tagging"
echo "#define COMMA_VERSION \"$VERSION\"" > ${OUTPUT_DIR}/common/version.h
## set git identity
#source $DIR/identity.sh
#export GIT_SSH_COMMAND="ssh -i /data/gitkey"
echo "[-] Setting up repo T=$SECONDS"
cd $OUTPUT_DIR
git init
# set git username/password
#source /data/identity.sh
git rm -rf $OUTPUT_DIR/.git || true # Doing cleanup, but it might fail if the .git doesn't exist or not allowed to delete
git remote remove origin || true # ensure cleanup
git remote add origin $GIT_ORIGIN
#git push origin -d $DEV_BRANCH || true # Ensuring we delete the remote branch if it exists as we are wiping it out
git fetch origin $DEV_BRANCH || (git checkout -b $DEV_BRANCH && git commit --allow-empty -m "sunnypilot v$VERSION release" && git push -u origin $DEV_BRANCH)
git lfs install
echo "[-] committing version $VERSION T=$SECONDS"
git add -f .
git commit -a -m "sunnypilot v$VERSION release"
git branch --set-upstream-to=origin/$DEV_BRANCH
# include source commit hash and build date in commit
GIT_HASH=$(git --git-dir=$SOURCE_DIR/.git rev-parse HEAD)
DATETIME=$(date '+%Y-%m-%dT%H:%M:%S')
SP_VERSION=$(cat $SOURCE_DIR/common/version.h | awk -F\" '{print $2}')
# Add built files to git
git add -f .
if [ "$EXTRA_VERSION_IDENTIFIER" = "-release" ] || [ "$EXTRA_VERSION_IDENTIFIER" = "-staging" ]; then
export VERSION=${VERSION%"$EXTRA_VERSION_IDENTIFIER"}
git commit --amend -m "sunnypilot v$VERSION"
else
git commit --amend -m "sunnypilot v$VERSION
version: sunnypilot v$SP_VERSION release
date: $DATETIME
master commit: $GIT_HASH
"
fi
git branch -m $DEV_BRANCH
# Push!
echo "[-] pushing T=$SECONDS"
git push -f origin $DEV_BRANCH

75
release/ci/sanity_check.sh Executable file
View File

@@ -0,0 +1,75 @@
#!/usr/bin/env bash
# Check if the correct number of arguments are provided
if [ "$#" -lt 2 ]; then
echo "Error: Missing required arguments."
echo "Usage: $0 \"ext1,ext2,...\" \"dir1,dir2,...\" [expect_no_match]"
exit 1
fi
# Convert comma-separated lists of extensions and directory patterns to arrays
IFS=',' read -r -a file_extensions <<< "$1"
IFS=',' read -r -a dir_patterns <<< "$2"
# Boolean argument to determine the script's behavior when matches are found
expect_no_match=${3:-true} # Default to true if not provided
# Validate that file_extensions and dir_patterns are not empty
if [ ${#file_extensions[@]} -eq 0 ]; then
echo "Error: No file extensions provided."
exit 1
fi
if [ ${#dir_patterns[@]} -eq 0 ]; then
echo "Error: No directory patterns provided."
exit 1
fi
# Define the command and arguments as an array
find_command=(find . \( -false)
for ext in "${file_extensions[@]}"; do
find_command+=(-o -type f -name "*$ext")
done
for dir in "${dir_patterns[@]}"; do
find_command+=(-o -type d -path "$dir")
done
find_command+=(\) -print)
# Debug print
echo "Executing find_command ${find_command[@]}"
# Execute the find command
FOUND=$("${find_command[@]}")
# Function to handle found matches
handle_found() {
local count=$(echo "$FOUND" | grep -c '^')
if [ "$expect_no_match" = true ]; then
echo "Failure: Unexpected match$( [ "$count" -gt 1 ] && echo "es" ) found ($count):"
echo "$FOUND"
exit 1
else
echo "Success: Expected match$( [ "$count" -gt 1 ] && echo "es" ) found ($count):"
echo "$FOUND"
exit 0
fi
}
# Function to handle no matches found
handle_not_found() {
if [ "$expect_no_match" = false ]; then
echo "Failure: Expected matches not found."
exit 1
else
echo "Success: No matches found as expected."
exit 0
fi
}
# Check if any files or directories are found and handle accordingly
if [ -n "$FOUND" ]; then
handle_found
else
handle_not_found
fi

7
release/ci/sync-lfs.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
mv .lfsconfig .lfsconfig.bak
mv .lfsconfig-comma .lfsconfig
git lfs fetch --all; git lfs pull
mv .lfsconfig .lfsconfig-comma
mv .lfsconfig.bak .lfsconfig
git lfs fetch --all; git lfs push origin main

View File

@@ -0,0 +1,58 @@
#!/bin/bash
# Define directories and user
GITLAB_BASE_DIR="/data/gitlab"
BIN_DIR="$GITLAB_BASE_DIR/bin"
BUILDS_DIR="$GITLAB_BASE_DIR/builds"
OPENPILOT_DIR="$GITLAB_BASE_DIR/openpilot"
LOGS_DIR="$GITLAB_BASE_DIR/logs"
CACHE_DIR="$GITLAB_BASE_DIR/cache"
RUNNER_USERNAME="gitlab-runner"
# Define the systemd service name
SERVICE_NAME="gitlab-runner"
USER_GROUPS="comma,gpu,gpio,sudo"
# Function to stop and disable the systemd service
stop_service() {
sudo systemctl stop ${SERVICE_NAME}
sudo systemctl disable ${SERVICE_NAME}
}
# Function to remove the systemd service file
remove_service_file() {
sudo rm /etc/systemd/system/${SERVICE_NAME}.service
sudo systemctl daemon-reload
}
# Function to delete the GitLab Runner directories
delete_directories() {
sudo rm -rf "$BIN_DIR/gitlab-runner"
sudo rm -rf "$GITLAB_BASE_DIR" "$BIN_DIR" "$BUILDS_DIR" "$LOGS_DIR" "$CACHE_DIR" "$OPENPILOT_DIR"
}
# Function to remove the GitLab Runner user
delete_user() {
for group in ${USER_GROUPS//,/ }
do
sudo gpasswd -d ${RUNNER_USERNAME} ${group}
done
sudo userdel -r ${RUNNER_USERNAME}
}
# Function to remove sudoers entry
remove_sudoers_entry() {
sudo sed -i.bak "/${RUNNER_USERNAME} ALL=(ALL) NOPASSWD: ALL/d" /etc/sudoers
}
# Make filesystem writable
sudo mount -o remount rw /
# Ensure filesystem is remounted as read-only on script exit
trap "sudo mount -o remount ro /" EXIT
# Call functions
stop_service
remove_service_file
delete_directories
delete_user
remove_sudoers_entry
# End of uninstall script

View File

@@ -1,4 +1,4 @@
export GIT_COMMITTER_NAME="Vehicle Researcher"
export GIT_COMMITTER_EMAIL="user@comma.ai"
export GIT_AUTHOR_NAME="Vehicle Researcher"
export GIT_AUTHOR_EMAIL="user@comma.ai"
export GIT_COMMITTER_NAME="Jason Wen"
export GIT_COMMITTER_EMAIL="haibin.wen3@gmail.com"
export GIT_AUTHOR_NAME="Jason Wen"
export GIT_AUTHOR_EMAIL="haibin.wen3@gmail.com"

View File

@@ -37,7 +37,7 @@ blacklist = [
".github/",
".devcontainer/",
"Darwin/",
".vscode",
".vscode/",
# common things
"LICENSE",
@@ -51,10 +51,52 @@ blacklist = [
".gitmodules",
]
# Sunnypilot blacklist
sunnypilot_blacklist = [
"system/loggerd/sunnylink_uploader.py", # Temporarily, until we are ready to roll it out widely
"system/manager/gitlab_runner.sh",
".idea/",
".run/",
".run/",
".*__pycache__/.*",
".*\.pyc",
"tinygrad/*",
"teleoprtc/*",
"third_party/snpe/x86_64/*",
"body/board/canloader.py",
"body/board/flash_base.sh",
"body/board/flash_knee.sh",
"body/board/recover.sh",
".*/test/",
".*/tests/",
".*tinygrad_repo/tinygrad/renderer/",
"README.md",
".*internal/",
"docs/.*",
".sconsign.dblite",
"release/ci/scons_cache/",
".gitlab-ci.yml",
".clang-tidy",
".dockerignore",
".editorconfig",
".gitmodules",
".pre-commit-config.yaml",
".python-version",
"Dockerfile",
"dockerfile",
"SECURITY.md",
"codecov.yml",
"conftest.py",
"poetry.lock",
]
# Merge the blacklists
blacklist += sunnypilot_blacklist
# gets you through the blacklist
whitelist = [
"tools/lib/",
"tools/bodyteleop/",
"^tools/lib/(?!.*__pycache__).*$",
"tools/bodyteleop/(?!.*__pycache__).*$",
"tinygrad_repo/openpilot/compile2.py",
"tinygrad_repo/extra/onnx.py",
@@ -127,6 +169,47 @@ whitelist = [
"opendbc/tesla_powertrain.dbc",
]
# Sunnypilot whitelist
sunnypilot_whitelist = [
"^README.md",
".*selfdrive/test/fuzzy_generation.py",
".*selfdrive/test/helpers.py",
".*selfdrive/test/__init__.py",
".*selfdrive/test/setup_device_ci.sh",
".*selfdrive/test/test_time_to_onroad.py",
".*selfdrive/test/test_onroad.py",
".*system/manager/test/test_manager.py",
".*system/manager/test/__init__.py",
".*system/qcomgpsd/tests/test_qcomgpsd.py",
".*system/updated/casync/tests/test_casync.py",
".*system/updated/tests/test_git.py",
".*system/updated/tests/test_base.py",
".*tools/lib/tests/test_route_library.py",
".*tools/lib/tests/test_caching.py",
".*tools/lib/tests/test_logreader.py",
".*tools/lib/tests/test_readers.py",
".*tools/lib/tests/__init__.py",
".*tools/lib/tests/test_comma_car_segments.py",
".*selfdrive/ui/tests/test_translations.py",
".*selfdrive/car/tests/__init__.py",
".*selfdrive/car/tests/test_car_interfaces.py",
".*selfdrive/navd/tests/test_navd.py",
".*selfdrive/navd/tests/test_map_renderer.py",
".*selfdrive/boardd/tests/test_boardd_loopback.py",
".*tinygrad_repo/tinygrad/renderer/opencl.py",
".*tinygrad_repo/tinygrad/renderer/cstyle.py",
".*INTEGRATION.md",
".*HOW-TOS.md",
".*CARS.md",
".*LIMITATIONS.md",
".*CONTRIBUTING.md",
".*sunnyhaibin0850_qrcode_paypal.me.png",
"opendbc/.*.dbc",
]
# Merge the whitelists
whitelist += sunnypilot_whitelist
if __name__ == "__main__":
for f in Path(ROOT).rglob("**/*"):

View File

@@ -0,0 +1,130 @@
#!/usr/bin/bash -e
# git diff --name-status origin/release3-staging | grep "^A" | less
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR
BUILD_DIR=/data/media/openpilot-dev
SOURCE_DIR="$(git rev-parse --show-toplevel)"
FILES_SRC="release/files_tici"
DEV_BRANCH="dev-c3"
BUILD_PANDA_DIR=/data/media/panda/openpilot-dev
# set git identity
source $DIR/identity.sh
export GIT_SSH_COMMAND="ssh -i /data/gitkey"
echo "[-] Setting up repo T=$SECONDS"
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR
cd $BUILD_DIR
git init
# set git username/password
source /data/identity.sh
git remote add origin https://github.com/sunnyhaibin/sunnypilot.git
git fetch origin $DEV_BRANCH
# do the files copy
echo "[-] copying files T=$SECONDS"
cd $SOURCE_DIR
cp -pR --parents $(cat release/files_common) $BUILD_DIR/
cp -pR --parents $(cat $FILES_SRC) $BUILD_DIR/
# in the directory
cd $BUILD_DIR
rm -f panda/board/obj/panda.bin.signed
rm -f panda/board/obj/panda_h7.bin.signed
rm -f panda/board/obj/bootstub.panda.bin
rm -f panda/board/obj/bootstub.panda_h7.bin
VERSION=$(date '+%Y.%m.%d')
echo "#define COMMA_VERSION \"$VERSION-dev\"" > common/version.h
echo "[-] committing version $VERSION T=$SECONDS"
git add -f .
git commit -a -m "sunnypilot v$VERSION release"
git branch --set-upstream-to=origin/$DEV_BRANCH
# Build panda firmware
pushd panda/
scons -u .
mv board/obj/panda.bin.signed $BUILD_PANDA_DIR/panda.bin.signed
mv board/obj/panda_h7.bin.signed $BUILD_PANDA_DIR/panda_h7.bin.signed
mv board/obj/bootstub.panda.bin $BUILD_PANDA_DIR/bootstub.panda.bin
mv board/obj/bootstub.panda_h7.bin $BUILD_PANDA_DIR/bootstub.panda_h7.bin
popd
# Build
export PYTHONPATH="$BUILD_DIR"
scons -j$(nproc)
# Ensure no submodules in release
if test "$(git submodule--helper list | wc -l)" -gt "0"; then
echo "submodules found:"
git submodule--helper list
exit 1
fi
git submodule status
# Cleanup
find . -name '*.a' -delete
find . -name '*.o' -delete
find . -name '*.os' -delete
find . -name '*.pyc' -delete
find . -name 'moc_*' -delete
find . -name '*.cc' -delete
find . -name '__pycache__' -delete
find selfdrive/ui/ -name '*.h' -delete
rm -rf panda/board panda/certs panda/crypto
rm -rf .sconsign.dblite Jenkinsfile release/
rm selfdrive/modeld/models/supercombo.onnx
rm -rf selfdrive/ui/replay/
# Move back signed panda fw
mkdir -p panda/board/obj
mv $BUILD_PANDA_DIR/panda.bin.signed panda/board/obj/panda.bin.signed
mv $BUILD_PANDA_DIR/panda_h7.bin.signed panda/board/obj/panda_h7.bin.signed
mv $BUILD_PANDA_DIR/bootstub.panda.bin panda/board/obj/bootstub.panda.bin
mv $BUILD_PANDA_DIR/bootstub.panda_h7.bin panda/board/obj/bootstub.panda_h7.bin
# Restore third_party
git checkout third_party/
# Mark as prebuilt release
touch prebuilt
# include source commit hash and build date in commit
GIT_HASH=$(git --git-dir=$SOURCE_DIR/.git rev-parse HEAD)
DATETIME=$(date '+%Y-%m-%dT%H:%M:%S')
SP_VERSION=$(cat $SOURCE_DIR/common/version.h | awk -F\" '{print $2}')
# Add built files to git
git add -f .
git commit --amend -m "sunnypilot v$VERSION
version: sunnypilot v$SP_VERSION release
date: $DATETIME
master commit: $GIT_HASH
"
git branch -m dev-c3
# Run tests
#TEST_FILES="tools/"
#cd $SOURCE_DIR
#cp -pR -n --parents $TEST_FILES $BUILD_DIR/
#cd $BUILD_DIR
#RELEASE=1 selfdrive/test/test_onroad.py
#selfdrive/manager/test/test_manager.py
#selfdrive/car/tests/test_car_interfaces.py
#rm -rf $TEST_FILES
if [ ! -z "$PUSH" ]; then
echo "[-] pushing T=$SECONDS"
git push -f origin $DEV_BRANCH
fi
echo "[-] done T=$SECONDS"

View File

@@ -0,0 +1,127 @@
#!/usr/bin/bash -e
# git diff --name-status origin/release3-staging | grep "^A" | less
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR
BUILD_DIR=/data/media/openpilot-release
SOURCE_DIR="$(git rev-parse --show-toplevel)"
FILES_SRC="release/files_tici"
RELEASE_BRANCH="release-c3"
BUILD_PANDA_DIR=/data/media/panda/openpilot-release
# set git identity
source $DIR/identity.sh
export GIT_SSH_COMMAND="ssh -i /data/gitkey"
echo "[-] Setting up repo T=$SECONDS"
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR
cd $BUILD_DIR
git init
# set git username/password
source /data/identity.sh
git remote add origin https://github.com/sunnyhaibin/sunnypilot.git
git fetch origin $RELEASE_BRANCH
# do the files copy
echo "[-] copying files T=$SECONDS"
cd $SOURCE_DIR
cp -pR --parents $(cat release/files_common) $BUILD_DIR/
cp -pR --parents $(cat $FILES_SRC) $BUILD_DIR/
# in the directory
cd $BUILD_DIR
rm -f panda/board/obj/panda.bin.signed
rm -f panda/board/obj/panda_h7.bin.signed
rm -f panda/board/obj/bootstub.panda.bin
rm -f panda/board/obj/bootstub.panda_h7.bin
VERSION=$(cat common/version.h | awk -F[\"-] '{print $2}')
echo "#define COMMA_VERSION \"$VERSION-release\"" > common/version.h
echo "[-] committing version $VERSION T=$SECONDS"
git add -f .
git commit -a -m "sunnypilot v$VERSION release"
git branch --set-upstream-to=origin/$RELEASE_BRANCH
# Build panda firmware
pushd panda/
scons -u .
mv board/obj/panda.bin.signed $BUILD_PANDA_DIR/panda.bin.signed
mv board/obj/panda_h7.bin.signed $BUILD_PANDA_DIR/panda_h7.bin.signed
mv board/obj/bootstub.panda.bin $BUILD_PANDA_DIR/bootstub.panda.bin
mv board/obj/bootstub.panda_h7.bin $BUILD_PANDA_DIR/bootstub.panda_h7.bin
popd
# Build
export PYTHONPATH="$BUILD_DIR"
scons -j$(nproc)
# Ensure no submodules in release
if test "$(git submodule--helper list | wc -l)" -gt "0"; then
echo "submodules found:"
git submodule--helper list
exit 1
fi
git submodule status
# Cleanup
find . -name '*.a' -delete
find . -name '*.o' -delete
find . -name '*.os' -delete
find . -name '*.pyc' -delete
find . -name 'moc_*' -delete
find . -name '*.cc' -delete
find . -name '__pycache__' -delete
find selfdrive/ui/ -name '*.h' -delete
rm -rf panda/board panda/certs panda/crypto
rm -rf .sconsign.dblite Jenkinsfile release/
rm selfdrive/modeld/models/supercombo.onnx
#rm models/supercombo_badweights.thneed
rm -rf selfdrive/ui/replay/
# Move back signed panda fw
mkdir -p panda/board/obj
mv $BUILD_PANDA_DIR/panda.bin.signed panda/board/obj/panda.bin.signed
mv $BUILD_PANDA_DIR/panda_h7.bin.signed panda/board/obj/panda_h7.bin.signed
mv $BUILD_PANDA_DIR/bootstub.panda.bin panda/board/obj/bootstub.panda.bin
mv $BUILD_PANDA_DIR/bootstub.panda_h7.bin panda/board/obj/bootstub.panda_h7.bin
# Restore third_party
git checkout third_party/
# Mark as prebuilt release
touch prebuilt
# include source commit hash and build date in commit
GIT_HASH=$(git --git-dir=$SOURCE_DIR/.git rev-parse HEAD)
DATETIME=$(date '+%Y-%m-%dT%H:%M:%S')
SP_VERSION=$(cat $SOURCE_DIR/common/version.h | awk -F\" '{print $2}')
# Add built files to git
git add -f .
git commit --amend -m "sunnypilot v$VERSION"
git branch -m release-c3
# Run tests
#TEST_FILES="tools/"
#cd $SOURCE_DIR
#cp -pR -n --parents $TEST_FILES $BUILD_DIR/
#cd $BUILD_DIR
#RELEASE=1 selfdrive/test/test_onroad.py
#selfdrive/manager/test/test_manager.py
#selfdrive/car/tests/test_car_interfaces.py
#rm -rf $TEST_FILES
if [ ! -z "$PUSH" ]; then
echo "[-] pushing T=$SECONDS"
git push -f origin $RELEASE_BRANCH
fi
echo "[-] done T=$SECONDS"

View File

@@ -0,0 +1,127 @@
#!/usr/bin/bash -e
# git diff --name-status origin/release3-staging | grep "^A" | less
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR
BUILD_DIR=/data/media/openpilot-staging
SOURCE_DIR="$(git rev-parse --show-toplevel)"
FILES_SRC="release/files_tici"
STAGING_BRANCH="staging-c3"
BUILD_PANDA_DIR=/data/media/panda/openpilot-staging
# set git identity
source $DIR/identity.sh
export GIT_SSH_COMMAND="ssh -i /data/gitkey"
echo "[-] Setting up repo T=$SECONDS"
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR
cd $BUILD_DIR
git init
# set git username/password
source /data/identity.sh
git remote add origin https://github.com/sunnyhaibin/sunnypilot.git
git fetch origin $STAGING_BRANCH
# do the files copy
echo "[-] copying files T=$SECONDS"
cd $SOURCE_DIR
cp -pR --parents $(cat release/files_common) $BUILD_DIR/
cp -pR --parents $(cat $FILES_SRC) $BUILD_DIR/
# in the directory
cd $BUILD_DIR
rm -f panda/board/obj/panda.bin.signed
rm -f panda/board/obj/panda_h7.bin.signed
rm -f panda/board/obj/bootstub.panda.bin
rm -f panda/board/obj/bootstub.panda_h7.bin
VERSION=$(cat common/version.h | awk -F[\"-] '{print $2}')
echo "#define COMMA_VERSION \"$VERSION-staging\"" > common/version.h
echo "[-] committing version $VERSION T=$SECONDS"
git add -f .
git commit -a -m "sunnypilot v$VERSION release"
git branch --set-upstream-to=origin/$STAGING_BRANCH
# Build panda firmware
pushd panda/
scons -u .
mv board/obj/panda.bin.signed $BUILD_PANDA_DIR/panda.bin.signed
mv board/obj/panda_h7.bin.signed $BUILD_PANDA_DIR/panda_h7.bin.signed
mv board/obj/bootstub.panda.bin $BUILD_PANDA_DIR/bootstub.panda.bin
mv board/obj/bootstub.panda_h7.bin $BUILD_PANDA_DIR/bootstub.panda_h7.bin
popd
# Build
export PYTHONPATH="$BUILD_DIR"
scons -j$(nproc)
# Ensure no submodules in release
if test "$(git submodule--helper list | wc -l)" -gt "0"; then
echo "submodules found:"
git submodule--helper list
exit 1
fi
git submodule status
# Cleanup
find . -name '*.a' -delete
find . -name '*.o' -delete
find . -name '*.os' -delete
find . -name '*.pyc' -delete
find . -name 'moc_*' -delete
find . -name '*.cc' -delete
find . -name '__pycache__' -delete
find selfdrive/ui/ -name '*.h' -delete
rm -rf panda/board panda/certs panda/crypto
rm -rf .sconsign.dblite Jenkinsfile release/
rm selfdrive/modeld/models/supercombo.onnx
#rm models/supercombo_badweights.thneed
rm -rf selfdrive/ui/replay/
# Move back signed panda fw
mkdir -p panda/board/obj
mv $BUILD_PANDA_DIR/panda.bin.signed panda/board/obj/panda.bin.signed
mv $BUILD_PANDA_DIR/panda_h7.bin.signed panda/board/obj/panda_h7.bin.signed
mv $BUILD_PANDA_DIR/bootstub.panda.bin panda/board/obj/bootstub.panda.bin
mv $BUILD_PANDA_DIR/bootstub.panda_h7.bin panda/board/obj/bootstub.panda_h7.bin
# Restore third_party
git checkout third_party/
# Mark as prebuilt release
touch prebuilt
# include source commit hash and build date in commit
GIT_HASH=$(git --git-dir=$SOURCE_DIR/.git rev-parse HEAD)
DATETIME=$(date '+%Y-%m-%dT%H:%M:%S')
SP_VERSION=$(cat $SOURCE_DIR/common/version.h | awk -F\" '{print $2}')
# Add built files to git
git add -f .
git commit --amend -m "sunnypilot v$VERSION"
git branch -m staging-c3
# Run tests
#TEST_FILES="tools/"
#cd $SOURCE_DIR
#cp -pR -n --parents $TEST_FILES $BUILD_DIR/
#cd $BUILD_DIR
#RELEASE=1 selfdrive/test/test_onroad.py
#selfdrive/manager/test/test_manager.py
#selfdrive/car/tests/test_car_interfaces.py
#rm -rf $TEST_FILES
if [ ! -z "$PUSH" ]; then
echo "[-] pushing T=$SECONDS"
git push -f origin $STAGING_BRANCH
fi
echo "[-] done T=$SECONDS"

View File

@@ -0,0 +1,4 @@
export GIT_COMMITTER_NAME="Jason Wen"
export GIT_COMMITTER_EMAIL="haibin.wen3@gmail.com"
export GIT_AUTHOR_NAME="Jason Wen"
export GIT_AUTHOR_EMAIL="haibin.wen3@gmail.com"

View File

@@ -0,0 +1,5 @@
#! usr/bin/bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." >/dev/null && pwd)"
tar -cf - -C "$DIR/third_party" mapd | xz -9zev -T0 > "$DIR/selfdrive/mapd/assets/mapd_deps.tar.xz"

View File

@@ -0,0 +1,79 @@
import json
import os
from natsort import natsorted
from typing import Any, Dict, List
from cereal import car
from common.basedir import BASEDIR
from selfdrive.car import gen_empty_fingerprint
from selfdrive.car.car_helpers import interfaces
from selfdrive.car.docs import get_all_footnotes
from openpilot.selfdrive.car.values import PLATFORMS
UNSUPPORTED_BRANDS = ["body", "tesla"]
def get_all_car_names() -> Dict[str, str]:
car_names = {}
footnotes = get_all_footnotes()
car_names["=== Not Selected ==="] = ""
for model, platform in PLATFORMS.items():
car_docs = platform.config.car_docs
CP = interfaces[model][0].get_params(platform, fingerprint=gen_empty_fingerprint(),
car_fw=[car.CarParams.CarFw(ecu="unknown")], experimental_long=True, docs=True)
if CP.dashcamOnly or not len(car_docs):
continue
if not isinstance(car_docs, list):
car_docs = (car_docs,)
for _car_docs in car_docs:
if not hasattr(_car_docs, "row"):
_car_docs.init_make(CP)
_car_docs.init(CP, footnotes)
car_names[_car_docs.name] = model
sorted_car_names = natsorted(car_names.keys(), key=lambda car: car.lower())
return {car_name: car_names[car_name] for car_name in sorted_car_names}
def get_interface_attr(attr: str, combine_brands: bool = False, ignore_none: bool = False,
exclude_brands: List[str] = None) -> Dict[str, Any]:
if exclude_brands is None:
exclude_brands = []
result = {}
for car_folder in sorted([x[0] for x in os.walk(BASEDIR + '/selfdrive/car')]):
try:
brand_name = car_folder.split('/')[-1]
if brand_name in exclude_brands:
continue
brand_values = __import__(f'selfdrive.car.{brand_name}.values', fromlist=[attr])
if hasattr(brand_values, attr) or not ignore_none:
attr_data = getattr(brand_values, attr, None)
else:
continue
if combine_brands:
if isinstance(attr_data, dict):
for f, v in attr_data.items():
result[f] = v
else:
result[brand_name] = attr_data
except (ImportError, OSError):
pass
return result
if __name__ == "__main__":
car_names_dict = get_all_car_names()
with open(BASEDIR + "/selfdrive/car/sunnypilot_carname.json", "w") as json_file:
json.dump(car_names_dict, json_file, indent=2, ensure_ascii=False)
json_file.write('\n')

65
scripts/sunnypilot/Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,65 @@
pipeline {
agent any
options {
disableConcurrentBuilds()
}
stages {
stage('Build dev-c3') {
when {
branch 'master-dev-c3'
}
steps {
script {
sshagent(['comma-three-ssh']) {
withCredentials([string(credentialsId: 'comma-three-username-ip', variable: 'username_ip')]) {
sh 'ssh -o StrictHostKeyChecking=no $username_ip "bash /data/update_dev.sh"'
sh 'ssh -o StrictHostKeyChecking=no $username_ip "bash /data/build_dev.sh"'
env.BRANCH_NAME = 'dev-c3'
}
}
}
}
}
stage('Build staging-c3') {
when {
branch 'master'
}
options {
timeout(time: 10, unit: 'MINUTES')
}
steps {
input "Build staging-c3?"
script {
sshagent(['comma-three-ssh']) {
withCredentials([string(credentialsId: 'comma-three-username-ip', variable: 'username_ip')]) {
sh 'ssh -o StrictHostKeyChecking=no $username_ip "bash /data/update_staging.sh"'
sh 'ssh -o StrictHostKeyChecking=no $username_ip "bash /data/build_staging.sh"'
env.BRANCH_NAME = 'staging-c3'
}
}
}
}
}
}
post {
always {
script {
if (env.BRANCH_NAME == 'dev-c3' || env.BRANCH_NAME == 'staging-c3') {
withCredentials([string(credentialsId: 'discord-webhook', variable: 'discord_webhook')]) {
discordSend(
webhookURL: discord_webhook,
title: 'sunnypilot Jenkins Pipeline Build',
description: 'Branch: ' + env.BRANCH_NAME,
result: currentBuild.currentResult,
footer: 'Build complete'
)
}
}
}
}
}
}

View File

@@ -0,0 +1,28 @@
import requests
import hashlib
import json
# Function to calculate SHA-256 hash of a file downloaded from a given URI
def calculate_hash(download_uri):
response = requests.get(download_uri, stream=True)
hash_sha256 = hashlib.sha256()
for chunk in response.iter_content(chunk_size=1024):
hash_sha256.update(chunk)
return hash_sha256.hexdigest()
# Download the models_v3.json file
models_v3_url = "https://docs.sunnypilot.ai/models_v3.json"
response = requests.get(models_v3_url)
models_data = response.json()
# Iterate through each model and calculate SHA-256 for its files
for model_key, model_info in models_data.items():
# Calculate and insert the SHA-256 hash for each download URI
model_info['download_uri'] = {'url': model_info['download_uri'], 'sha256': calculate_hash(model_info['download_uri'])}
model_info['download_uri_nav'] = {'url': model_info['download_uri_nav'], 'sha256': calculate_hash(model_info['download_uri_nav'])}
model_info['download_uri_metadata'] = {'url': model_info['download_uri_metadata'], 'sha256': calculate_hash(model_info['download_uri_metadata'])}
# Save the updated JSON with hashes
updated_json_file_path = 'updated_models_v3.json' # Path for the updated JSON file
with open(updated_json_file_path, 'w') as file:
json.dump(models_data, file, indent=4)

View File

@@ -2,5 +2,6 @@ SConscript(['pandad/SConscript'])
SConscript(['controls/lib/lateral_mpc_lib/SConscript'])
SConscript(['controls/lib/longitudinal_mpc_lib/SConscript'])
SConscript(['locationd/SConscript'])
SConscript(['navd/SConscript'])
SConscript(['modeld/SConscript'])
SConscript(['ui/SConscript'])

BIN
selfdrive/assets/img_map.png LFS Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More