Compare commits

...

1240 Commits

Author SHA1 Message Date
Jason Wen
28464418c2 issue/pr 2024-08-08 22:01:22 -04:00
Jason Wen
3fbe92ac4d analytics 2024-08-08 13:57:24 -04:00
Jason Wen
4814806dd6 analytics 2024-08-08 13:55:53 -04:00
Jason Wen
1956af9cf0 search 2024-08-08 13:48:58 -04:00
Jason Wen
0d9385823d enabling 2024-08-08 11:14:54 -04:00
Jason Wen
3608ef5e67 hyundai radar tracks 2024-08-08 11:13:17 -04:00
Jason Wen
cc58b81dd2 hyundai radar tracks 2024-08-08 10:54:45 -04:00
Jason Wen
4437e3cc45 format mapbox navigation 2024-08-08 10:51:02 -04:00
Jason Wen
3af82984e0 git stuff 2024-08-07 23:36:32 -04:00
Jason Wen
c627b9ac46 edit or view 2024-08-07 23:29:15 -04:00
Jason Wen
0209fad94b feature is WIP for now 2024-08-07 23:13:28 -04:00
Jason Wen
6905635f83 main 2024-08-07 23:10:54 -04:00
Jason Wen
7a88203bb8 discord link 2024-08-07 23:09:50 -04:00
Jason Wen
e580767ec5 less 2024-08-07 23:00:33 -04:00
Jason Wen
9fd4b33e0e no bold 2024-08-07 22:59:18 -04:00
Jason Wen
01014a72df docs issue 2024-08-07 22:58:11 -04:00
Jason Wen
12f8cb64b4 more bugs 2024-08-07 22:42:50 -04:00
Jason Wen
26dac9b109 report a bug 2024-08-07 21:03:39 -04:00
Jason Wen
bbebd48d46 more updates 2024-08-07 15:15:49 -04:00
Jason Wen
8ee461f1cc permalink 2024-08-05 14:33:02 -04:00
Jason Wen
53868da000 update bug reports 2024-08-05 14:28:30 -04:00
Jason Wen
cd8e38663a more 2024-08-05 02:08:55 -04:00
Jason Wen
6a7d25e2ae more branches 2024-08-04 23:56:57 -04:00
Jason Wen
36f1bf0adb definitions 2024-08-04 23:37:24 -04:00
Jason Wen
188aa8374a installation index 2024-08-04 22:40:57 -04:00
Jason Wen
c901eaa29c dlp: pictures 2024-08-04 22:32:13 -04:00
Jason Wen
2c6b477e8a index general 2024-08-04 22:11:55 -04:00
Jason Wen
933bc55fd9 dlp 2024-08-04 21:55:35 -04:00
Jason Wen
a363c86033 some changes 2024-08-04 21:05:47 -04:00
Jason Wen
bf8725619e installation 2024-08-04 20:56:19 -04:00
Jason Wen
6c1fa7d101 symlink 2024-08-04 20:44:27 -04:00
Jason Wen
a6582a9e31 more 2024-08-04 16:11:04 -04:00
Jason Wen
fc8bf86599 init 2024-08-04 14:34:17 -04:00
Jason Wen
980fd5393b remove unused 2024-08-04 11:56:13 -04:00
Jason Wen
19afa83ce1 Bump submodules 2024-08-04 07:25:09 -04:00
Jason Wen
c06a82f41b Submodules: Point back to sunnypilot 2024-08-03 21:37:45 -04:00
Jason Wen
0b7d3805ff ui: Network: Disable refresh button while scanning (#383) 2024-08-03 21:29:22 -04:00
DevTekVE
963d356173 ci: Improvements on the mirror and prebuilt flow (#386)
* Remove redundant git lfs pull command

The `git lfs pull` command in the GitHub workflow is redundant and has been removed. Additionally, the `sync-lfs.sh` script has been updated to push all LFS objects to the origin repository.

* using force push instead of trying to merge

* Bumping ssh agent to 0.9.0

* Syntax

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2024-08-03 21:29:00 -04:00
Jason Wen
03f76199f3 ParamManager: Convert missed params in cars (#390) 2024-08-03 21:26:23 -04:00
Jason Wen
9ed9d001b0 Sync: commaai/openpilot:master into sunnypilot/sunnypilot:master (#385) 2024-08-03 17:25:35 -08:00
Jason Wen
f3933df2f5 Athenad: Add TODO-SP 2024-08-03 21:24:49 -04:00
Jason Wen
d35cdb510d Sync: commaai/msgq:master into sunnypilot/msgq:master
Sync: `commaai/opendbc:master` into `sunnypilot/opendbc:master`

Sync: `commaai/panda:master` into `sunnypilot/panda:master`
2024-08-03 21:22:09 -04:00
Dean Lee
8f9b165de8 camerad: encapsulate cl_command_queue in ImgProc (#33178)
move cl queue to imgproc
2024-08-03 14:57:26 -07:00
Adeeb Shihadeh
9474523add Revert "uploader.py: simplify clear_locks by using rglob (#32974)"
This reverts commit cafca4f891.
2024-08-03 12:12:42 -07: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
Dean Lee
cafca4f891 uploader.py: simplify clear_locks by using rglob (#32974)
simplify clear_locks
2024-08-02 13:40:57 -07:00
Dean Lee
2cd9975e4f modeld: remove redundant pred_mu assignment (#33152)
remove redundant pred_mu assignment
2024-08-02 13:40:33 -07:00
Dean Lee
c40d129f70 camerad: update frame msg related variable types to uint64_t for consistency (#33113)
Update frame_msg related variable types to uint64_t for  type safety
2024-08-02 12:57:29 -07:00
Adeeb Shihadeh
19dec54f65 Update stale.yaml 2024-08-02 12:55:04 -07:00
Dean Lee
8ab587d30b camerad: move do_exit to camera_qcom2.cc (#33086)
move do_exit to camera_qcom2.cc
2024-08-02 12:18:10 -07:00
Dean Lee
ea5ee29ebd params: wrap fsync and close in HANDLE_EINTR for robustness (#33154)
Wrap fsync and close in HANDLE_EINTR for Robustness
2024-08-02 12:16:24 -07:00
Dean Lee
2189164d45 camerad: encapsulating event management within the ImgProc Class (#33119)
Encapsulating Event Management Within the ImgProc Class
2024-08-02 12:16:04 -07:00
Dean Lee
8f3fc699d4 loggerd: Initialize atomic variables to zero (#33130)
Initialize atomic variables in LoggerdState to zero
2024-08-02 12:01:56 -07: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
Adeeb Shihadeh
13511e383c remove pre-commit (explorations) (#33172)
* remove pre-commit (explorations)

* lint.sh

* remove rest

* add to release files

* no source

* 1min is all you need
2024-08-01 22:16:13 -07: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
Maxime Desroches
4b11c9e914 ci: create ui report only on PR (#33168)
only on pr
2024-08-01 16:44:10 -07:00
Hoang Bui
5b4b7a08fc CI: fix recent test_rotation skip (#33167) 2024-08-01 16:28:26 -07:00
Adeeb Shihadeh
bfa8e0b2ec disable test_rotation until it's fixed 2024-08-01 15:36:44 -07: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
Maxime Desroches
d0671bda6d op.sh: check for valid invocation (#33166)
no source
2024-08-01 13:44:57 -07: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
Shane Smiskol
7ee9d2d1b9 opendbc is a package (#33159)
* bump

* rename to opendbc_repo

add symlink

* bump

* fix cabana

fix cabana

* bump

* fix whitelist paths

bump

* bump to master

* remove trailing slash
2024-07-31 23:17:40 -07:00
Maxime Desroches
7bf912f407 op.sh: fix python version check (#33163)
fix check
2024-07-31 21:40:48 -07:00
Maxime Desroches
3e66827a85 setup.sh: work in non interactive mode (#33162)
* work without terminal

* failure message

* no if
2024-07-31 20:32:41 -07:00
Maxime Desroches
16ea2ff270 op.sh: call directly instead of sourcing (#33160)
no source
2024-07-31 19:37:06 -07:00
ZwX1616
3ccc63deec camerad: use os binning (#33161)
* all

* right sz

* what is this

* Revert "what is this"

This reverts commit 3ff771926f109452a055dfb61cee06b34e498164.

* ok

* big

* update intrs

* fl

* more specifuc

* fish

* revert

* revert

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-07-31 19:10:44 -07:00
Jason Wen
fa3a0ba747 CI: Update prebuilt repository URL (#374) 2024-07-31 19:47:34 -04:00
Shane Smiskol
7de618a5cf ensure alerts_generated.h is built (#33157)
don't build alerts_generated.h in test, and ensure scons builds it more reliably + clean up support
2024-07-31 16:12:37 -07: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
Shane Smiskol
7c112341c3 Reapply "update to new opendbc API (#32009)" (#33151)
This reverts commit ac130001cc.
2024-07-31 15:37:39 -07:00
Shane Smiskol
ebff7cab1a get_fw_versions: test the full stack (#33156)
* add the test

fix

* bump

* not sure why mypy didn't catch this
2024-07-31 14:53:13 -07:00
Maxime Desroches
1dd8bdc791 Remove hexdump package (#33155)
* remove hexdump

* uv lock

* cleanup
2024-07-31 13:34:14 -07:00
Maxime Desroches
bf003f2972 setup.sh: retry + timing (#33145)
* improve

* update readme

* stdin

* better

* allow non interactive

* specify dir
2024-07-31 10:42:08 -07: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
Shane Smiskol
ac130001cc Revert "update to new opendbc API (#32009)"
This reverts commit 0dddc97dca.
2024-07-31 02:38:44 -07:00
Dean Lee
0dddc97dca update to new opendbc API (#32009)
* use new opendbc api

* export pandad_python

* merge master

* merge master

* bump opendbc

* bump opendbc

* improve func

* keep interface unchanged

* fix test_car_interfaces

* bump opendbc

* bump opendbc

* fix test_models

* the interface now has to convert from can capnp to list, so we should include this time

* goes from ~210 to ~240 mean ms real time

* remoe busTime

* lowercase sendcan

* consistent msgtype

* bump

* bump

* not used in lat_mpc

* space

* bump to master

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-07-31 00:24:46 -07:00
Shane Smiskol
1b6ac2d876 CarController: call to super's init (#33148)
* this should be common

* super!

* bump

* and frame is common

* bump
2024-07-30 23:55:23 -07:00
Shane Smiskol
80f9278a73 Revert "bump"
This reverts commit 7824074aae.
2024-07-30 23:29:46 -07:00
Shane Smiskol
7824074aae bump 2024-07-30 23:28:49 -07:00
Shane Smiskol
42f2601416 deprecate busTime (#33146)
* deprecate busTime

* bump

* do car can + more

* forgot some

* bump opendbc

* fix that too

* bump
2024-07-30 21:26:58 -07:00
Shane Smiskol
b6d124d268 tester present msgs: use helper (#33147)
use helper
2024-07-30 18:09:22 -07:00
Shane Smiskol
661ef03a24 Ford: add long controls todo 2024-07-30 15:18:26 -07:00
Adeeb Shihadeh
76fd5b00f1 CI: increase shm size to 2G 2024-07-30 14:29:48 -07:00
Shane Smiskol
0739d79a51 cars: remove some external imports (#33133)
* ford and gm

* clean that up

* also this

* honda

* temp fix

* move into selfdrive.car

* clean up

* more
2024-07-30 14:27:27 -07:00
Shane Smiskol
0fe143e4a7 test_onroad: lower lower log size bound 2024-07-30 14:07:47 -07:00
Maxime Desroches
086dcfe715 docs: fix README.md (#33142)
* md

* Update README.md

* rename

* exclude

* Update README.md
2024-07-30 13:57:42 -07:00
Maxime Desroches
9536dd07c6 unpin numpy (#33132)
* unlock numpy

* remove old cache

* sheel

* lock

* remove temp

* depends

* export

* put this back

* use __version__

* move this

---------

Co-authored-by: quebec <quebec@quebec.attlocal.net>
2024-07-30 13:11:05 -07:00
Adeeb Shihadeh
0b29db5c3e add roadmap to readme 2024-07-30 13:03:34 -07:00
Andrei Radulescu
4e73b76a12 fix multiprocessing issue with can_replay.py on macOS (#33139)
fix multiprocessing issue with can_replay.py on mac
2024-07-30 10:34:46 -07: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
Shane Smiskol
dfd387520e process replay: use zst (#33138)
* test

* update refs to zst

* update
2024-07-30 01:46:03 -07:00
Kacper Rączy
86d8d1d996 torqued: use livePose (#33136)
* Use livePose

* Replace it in process replay

* Add liveCalibration to messages

* Update ref commit
2024-07-29 20:20:31 -07:00
Shane Smiskol
11cb2d3a0b qlog_size.py: use zstd (#33137)
qlog_size: use zstd
2024-07-29 20:13:43 -07:00
Kacper Rączy
84cff4fc03 paramsd: use livePose (#33099)
* Use livePose instead  of llk

* Update process replay sockets

* Fix import

* Fix calib

* Fix field name

* Dont store device_from_calib

* Update ref commit
2024-07-29 19:51:21 -07:00
Jason Wen
4e237e59a5 Translations: Add untranslated 2024-07-29 21:01:11 -04:00
Kacper Rączy
6e185f4eea process_replay: regenerate locationd logs (#33134)
* Filter out non-relevant services in most_messages_valid check

* Set as comprehension

* Update segments

* Update ref commit

* New check for hyundai2
2024-07-29 17:12:05 -07:00
Jason Wen
957e6666a5 License: Loosen restrictions 2024-07-29 18:27:40 -04:00
Adeeb Shihadeh
43dcddc68b qlog: remove mag and less CAN 2024-07-29 14:44:03 -07:00
Dean Lee
ade13722cd replay: add support for decompressing ZST log files (#32910)
* Add Support for Decompressing ZST Log Files

* 2 space and check magic number

* match BZ2

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-07-29 13:48:06 -07:00
Andrei Radulescu
7d6ff19dea update mac_setup.sh brew install (#33131) 2024-07-29 13:46:13 -07:00
Dean Lee
2728c95b0d uploader.py: ensure proper resource management with io.BytesIO (#33108)
* ensure proper resource management with io.BytesIO

* improve
2024-07-29 13:43:31 -07:00
Shane Smiskol
606890cba5 [bot] Fingerprints: add missing FW versions from new users (#33123)
Export fingerprints
2024-07-29 12:32:51 -07:00
Jason Wen
1f770e1bea Submodule: Point to panda on GitHub 2024-07-29 15:25:44 -04:00
Maxime Desroches
01c0756974 Remove control usage (#33103)
* manual matrix exp

* remove control
2024-07-29 11:52:33 -07:00
commaci-public
1ae3adbe13 [bot] Update Python packages and pre-commit hooks (#33122)
Update Python packages and pre-commit hooks

Co-authored-by: Vehicle Researcher <user@comma.ai>
2024-07-29 10:24:05 -07: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
Adeeb Shihadeh
5ebc65f254 docs: add concepts section 2024-07-28 16:38:41 -07:00
Adeeb Shihadeh
691b948ad0 docs: readthedocs theme (#33116)
* docs: read the docs theme

* nav depth
2024-07-28 16:07:39 -07:00
Adeeb Shihadeh
4fbac089f8 docs: fix nested structure (#33114)
* docs: fix nested structure

* test ci

* that too

* update that

* not common mark anymore
2024-07-28 15:38:38 -07:00
Maxime Desroches
583e89d3a4 remove cv2 usage (#33101)
remove cv2
2024-07-28 15:08:27 -07:00
Adeeb Shihadeh
c51f37f63e docs: start roadmap 2024-07-28 15:05:36 -07:00
Shane Smiskol
1b3b5ab758 use zstandard library (#33110)
* use zstandard

* run 10

* bye bye

* this was a little overzealous

* clean up
2024-07-28 02:03:47 -07:00
Shane Smiskol
4caecf2143 test_onroad: use zstd compression (#33100)
* use zstd in test_onroad

* debug

* now leans towards 0.4 instead of 0.5

* 5x runs

* better

* more

* Update selfdrive/test/test_onroad.py

* revert Jenkinsfile

* and this
2024-07-26 21:14:06 -07:00
Shane Smiskol
7dec7c39be uploader: compress with zstd (#32736)
* zstd uploader

* fix that

* fix name of function

* comment

* log failed

* fix comma_api_source for routes with both bz2 and zst rlogs

* TODO

* 10-14 achieves almost no benefit on qlogs in a few cases, but takes 2x the time

* these aren't written out

* regen: specify any list of sources

ooh this is pretty nice

* regen and process replay

* damn, actually we don't need all this (cool tho)

Revert "regen: specify any list of sources"

This reverts commit ceb0b4abed9ad463a9fe98d9b98a05875a52806f.

* just let it auto resolve

* fix athenad/uploader tests

* zst here too

* TODOs

* yes

* Revert "TODOs"

This reverts commit 8c7da1dbd0340c72290b5eb5563b642080ddc131.

* Revert "zst here too"

This reverts commit 23b0023ddfd22c8090be7a7caa09e7026a12aa5c.

* Revert "just let it auto resolve"

This reverts commit f296d62424227ad05facc62abc18a6f81b474e84.

* Revert "regen and process replay"

This reverts commit 0768330e96974a42616d229d159780619d049cd0.

* revert readme

* not in save_log either

* lfg

* Revert "lfg"

This reverts commit 3718559c6c4de7d1f0c80dc9f1a1d335fe679a89.
2024-07-26 19:33:35 -07:00
ugtthis
6f1ea5a1fd Docs: Added venv step (#33097) 2024-07-26 19:29:08 -07:00
Adeeb Shihadeh
c8d5a3fe25 docs: style for external links 2024-07-26 16:25:07 -07:00
Maxime Desroches
d7159cd3c7 op.sh: misc improvements (#33096)
* check for install

* venv

* build
2024-07-26 16:10:00 -07:00
Adeeb Shihadeh
db2a8e9506 docs: turning the speed blue (#33079)
* blue speed

* compile

* just blue

* cleanup
2024-07-26 15:58:00 -07:00
Maxime Desroches
eab9cd751c op.sh: check submodules (#33095)
submodules
2024-07-26 15:28:13 -07:00
Adeeb Shihadeh
6b5f88a533 cleanup macOS dependencies (#33094) 2024-07-26 15:17:14 -07:00
Adeeb Shihadeh
00d9748d9a op.sh: parallel submodule update 2024-07-26 15:08:36 -07:00
Adeeb Shihadeh
a1d2e84212 update tinygrad url to tinygrad/tinygrad (#33093) 2024-07-26 15:04:57 -07:00
Adeeb Shihadeh
d24b80fca4 remove body submodule (#33091)
* remove body submodule

* little more

* fix op
2024-07-26 14:40:14 -07:00
Maxime Desroches
a1dce6ef47 op.sh: run pytest (#33090)
test
2024-07-26 11:34:36 -07:00
Shane Smiskol
e68bb26e14 tools: keep re pattern file small (#33084)
remove bz2 from re file
2024-07-25 22:05:10 -07:00
Adeeb Shihadeh
f39c5c22e8 remove opencv-python-headless (#33082) 2024-07-25 19:30:40 -07:00
Adeeb Shihadeh
d128dbe27f setup.sh: fast git clone (#33081)
* setup.sh: filter clone

* no submodules
2024-07-25 18:59:29 -07:00
Adeeb Shihadeh
8827067eae op.sh: misc fixups (#33080)
* rm run

* little more

* lint

* one more lint

* cleanup
2024-07-25 18:21:42 -07:00
Maxime Desroches
02e30ac140 Update setup.sh 2024-07-25 16:59:42 -07:00
Maxime Desroches
3c192cbf88 op.sh: improvements (#33078)
improvements
2024-07-25 16:57:43 -07:00
Adeeb Shihadeh
e5b803f28e cleanup python dependencies (#33077)
* cleanup python dependencies

* fix ruff
2024-07-25 16:07:59 -07:00
Maxime Desroches
fb1ad1d26a fix pytools (#33076)
fix
2024-07-25 15:13:47 -07:00
Dean Lee
ccd369ee96 camerad: merge thread functions into one (#33025)
merge multiple thread functions into one
2024-07-25 15:05:14 -07:00
Maxime Desroches
1989fbd4c4 Update setup.sh 2024-07-25 14:38:47 -07:00
Maxime Desroches
173a633a75 curl pc installer (#33072)
* setup

* curl

* usable right now

* op sim

* cleanup

* show cmd
2024-07-25 14:28:41 -07:00
Adeeb Shihadeh
c8622c9553 mac's getting there 2024-07-25 14:27:29 -07:00
Adeeb Shihadeh
ed86910536 new README (#33073)
* commonmark

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* relock

* copy paste

* Update README.md

* looks better like this

* cleanup
2024-07-25 14:20:00 -07:00
eivegau
cd8a603ad0 Kia: add missing Optima EUR FW versions (#33027)
* Update fingerprints.py

* Apply suggestions from code review

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-07-25 13:47:43 -07:00
Dean Lee
313a2826c2 mcid.py: optimize FFT and A-weighting calculations (#33057)
* Precomputing weighting

* add comments back

* use cache

* spacing

spacing

* clean up

* lower by diff

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-07-25 13:36:44 -07:00
Dean Lee
2da4aef268 scons: remove redundant -DSWAGLOG Flag (#33070)
remove redundant_-DSWAGLOG Flag
2024-07-25 13:10:36 -07:00
Dean Lee
75f49f84f3 camerad: add CameraConfig struct for initializing CameraState in constructor (#33065)
* Add CameraConfig struct for initializing CameraState in constructor

* init member variables
2024-07-25 13:09:03 -07:00
Dean Lee
edd8759f39 scons: move -Ithird_party/qrcode to qt modules (#33071)
move -Ithird_party/qrcode to qt modeules
2024-07-25 10:16:59 -07:00
Maxime Desroches
6cdf2a1499 Update op.sh 2024-07-24 23:11:23 -07:00
Maxime Desroches
4ac938a578 op.sh: improvements (#33067)
* cabana

* pre-check

* cd

* change this

* fix

* fix install
2024-07-24 22:20:16 -07:00
Maxime Desroches
71ad5a8dee op.sh: general improvements (#33062)
* color

* format

* dry

* unset

* venv

* search for openpilot

* linter

* replay
2024-07-24 14:49:35 -07:00
Shane Smiskol
add958bb08 athenad: log failed upload items 2024-07-24 14:48:33 -07:00
Shane Smiskol
e38a1428aa LogReader: support multiple log extensions in route (#33066)
* support rlog.zst

* TODO
2024-07-24 14:47:33 -07:00
Adeeb Shihadeh
31036771ee rerun: link to upstream issues 2024-07-24 12:11:20 -07:00
Maxime Desroches
2221ffcf0e ci: use github env for ui preview job name (#33060)
fix this
2024-07-24 11:03:24 -07:00
Hoang Bui
3446941107 CI: remove redundant save cache step (#33052)
remove
2024-07-24 10:36:28 -07:00
Maxime Desroches
d49c5193c3 ci: fix ui preview (#33002)
* use pull_request_target

* env for name
2024-07-24 10:31:27 -07:00
Dean Lee
0fa6745a67 camerad: refactor camera_open() into separate functions for clarity (#33056)
split function
2024-07-24 10:07:10 -07:00
Dean Lee
bd8dd65ce0 ui: fix wayland requestActivate warning on device (#33054)
fix wayland requestActivate warning in fullscreen mode
2024-07-24 09:42:31 -07:00
Maxime Desroches
18c310addf Update op.sh 2024-07-23 23:04:42 -07:00
Maxime Desroches
3382002cd0 Update op.sh 2024-07-23 22:34:21 -07:00
Maxime Desroches
f60dfd4dbb op tool helper (#33053)
* op

* change this

* juggler

* options

* fix

* submodules

* typo

* venv

* clean + install
2024-07-23 21:47:07 -07:00
Maxime Desroches
1e9738131d don't lock when installing python packages (#33051)
frozen
2024-07-23 14:52:08 -07:00
Harald Schäfer
3bc1b173d2 Longcontrol: engage into stopped state when needed (#33042)
test stay stopped
2024-07-23 13:55:30 -07:00
Dean Lee
fbbd4ee692 Fix /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so.1 warnings (#33047)
fix incompatible lib warning
2024-07-23 11:53:40 -07:00
Adeeb Shihadeh
9b8c1693c9 skip push 2024-07-23 11:41:27 -07:00
Adeeb Shihadeh
29d0bfe1ab skip lfs 2024-07-23 11:32:51 -07:00
Adeeb Shihadeh
ef5d6a0466 jenkins trigger fixups 2024-07-23 11:27:56 -07:00
Adeeb Shihadeh
e7ec1b8ff1 json encoding 2024-07-23 11:14:00 -07:00
Adeeb Shihadeh
d828ac4344 CI: setup triggering jenkins for forks (#33049) 2024-07-23 11:11:31 -07:00
Joseph Wagner
93eb7ee0cc README.md: 275+ cars (#33048)
275+ cars
2024-07-23 10:35:19 -07:00
Dean Lee
fb33366144 Fix FutureWarning "Cython directive 'language_level' not set" (#33046)
fix FutureWarning
2024-07-23 09:27:10 -07:00
Shane Smiskol
bd00a9d800 [bot] Fingerprints: add missing FW versions from new users (#33039)
Export fingerprints
2024-07-22 13:36:53 -07:00
Jason Wen
a654e5bd05 espActive: IMMEDIATE_DISABLE -> SOFT_DISABLE (#33003)
* espActive: `IMMEDIATE_DISABLE` -> `SOFT_DISABLE`

* only stock long

* just soft disable for now

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-07-22 13:09:00 -07:00
Shane Smiskol
8d77cea3a5 [bot] Fingerprints: add missing FW versions from new users (#33038)
Export fingerprints
2024-07-22 13:05:57 -07:00
Hoang Bui
5e0aff92ae tools/Rerun: Add video logging features (#32810)
* working

* multiprocessing

* fix that

* print services

* all services + fix

* less verbose

* start readme

* segment range

* cleanup

* update readme + fix bug in 'all'

* cleanup + update readme

* update readme

* cleanup

* cleanup

* rm frame_iter

* cleanup

* staticmethod

* proc kill

* split files

* fix range with hevc vids

* update reamde + add prompt

* readme

* readme

* readme
2024-07-22 12:05:03 -07:00
commaci-public
1da71f5c3c [bot] Bump submodules (#33036)
bump submodules

Co-authored-by: Vehicle Researcher <user@comma.ai>
2024-07-22 11:51:39 -07:00
Maxime Desroches
dcdac84f0c ci: bring back aarch64 (#33017)
* casadi wheel

* ci

* test 312

* test with new aarch64 build

* use release wheels

* assert

* bool

* try this

* maybe

* work

* use final wheel
2024-07-22 11:45:39 -07:00
commaci-public
27faa8f82b [bot] Update Python packages and pre-commit hooks (#33037)
Update Python packages and pre-commit hooks

Co-authored-by: Vehicle Researcher <user@comma.ai>
2024-07-22 10:10:39 -07:00
Adeeb Shihadeh
cefe00c964 Revert "camerad: add CameraConfig struct for initializing CameraState in constructor (#33034)"
This reverts commit dc886e195f.
2024-07-21 20:36:45 -07:00
Dean Lee
dc886e195f camerad: add CameraConfig struct for initializing CameraState in constructor (#33034)
* Add CameraConfig struct for initializing CameraState in constructor

* Update system/camerad/cameras/camera_qcom2.h

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-07-21 19:19:34 -07:00
jamperezmondragon
1aa467cb00 Spanish Translation Update (#32995)
* Update main_es.ts

* Update main_es.ts

* Update Spanish Translation [(#32995)](https://github.com/commaai/openpilot/pull/32995)
2024-07-20 15:54:51 -07:00
Shane Smiskol
0907b30d7b ui: fix flipped experimental path acceleration (#33026)
* fix

* clean up

* better comment

* Update selfdrive/ui/qt/onroad/annotated_camera.cc
2024-07-19 15:39:44 -07:00
Maxime Desroches
07fcc4825f make pyproject.toml pep508 compliant (#33021)
pep508
2024-07-19 10:19:38 -07:00
Dean Lee
917ea5699f cereal: deprecate FrameData.frameType (#33019)
deprecate FrameData.frameType
2024-07-19 10:14:04 -07:00
Kacper Rączy
c96dbd5a0b Fix msgq context overrides (#33014)
* Fix msgq context overrides

* Remove unneccesary changes

* add reset_context helper

* Remove redundant import
2024-07-18 20:19:39 -07:00
Adeeb Shihadeh
fd5549bba1 nightly build takes longer than this 2024-07-18 19:26:22 -07:00
Adeeb Shihadeh
560e37cd83 tici: set STM_BOOT0 in reset (#33015)
* tici: reset panda boot0

* ooops
2024-07-18 18:48:54 -07:00
Shane Smiskol
f31ad97e92 qlog_size: decimate rlog option (#33011)
* decimate option

* clean up

* check exists
2024-07-17 21:57:36 -07:00
Shane Smiskol
3c48a6154b increase longitudinalPlan decimation (#33009)
change longitudinalPlan decimation
2024-07-17 20:42:12 -07:00
Kacper Rączy
7f9cdf8e43 increase cameraOdometry decimation (#33010)
reduce cameraOdometry decimation
2024-07-17 19:31:29 -07:00
Harald Schäfer
996bced674 livePose log (#32868)
* add livepose

* Formatting

* Add to sevices

* Update locationd to publish livePose

* Remove fields and increase decimation

* Fix field indices

* Remove the line

* Add livePose to pubmaster

* Fix llk decimation

* Update ref commit

* XYZ measurements instead of lists

* Update locationd

* Update ref commit

* Lower the qlog size in test_onroad

* Update lower and upper boundary

---------

Co-authored-by: Kacper Rączy <gfw.kra@gmail.com>
2024-07-17 16:17:23 -07:00
Greg Hogan
4b794773b0 use rounded constant instead of hard-coded value for incrementing set speed (#32992)
* use rounded constant instead of hard-coded value for incrementing set speed

* better comment
2024-07-16 18:24:01 -07:00
Shane Smiskol
aa8484093e [bot] Fingerprints: add missing FW versions from new users (#32996)
Export fingerprints
2024-07-15 14:40:24 -07:00
commaci-public
00af33c6ed [bot] Bump submodules (#32989)
bump submodules

Co-authored-by: Vehicle Researcher <user@comma.ai>
2024-07-15 12:05:33 -07:00
Dean Lee
c0739cd9ee selfdrive/car/ecu_addrs: prefix internal functions with underscore (#32980)
underscore prefix
2024-07-15 12:05:20 -07:00
Shane Smiskol
d684d8f0f6 Reapply "selfdrive/car: ban imports from external modules" (#32993) (#32994)
* Reapply "selfdrive/car: ban imports from external modules" (#32993)

This reverts commit 35a4a773f1.

* controls will just use controls

* also these

* ignore
2024-07-15 11:59:25 -07:00
Shane Smiskol
35a4a773f1 Revert "selfdrive/car: ban imports from external modules" (#32993)
Revert "selfdrive/car: ban imports from external modules (#32973)"

This reverts commit 83d4623590.
2024-07-15 11:14:04 -07:00
Dean Lee
83d4623590 selfdrive/car: ban imports from external modules (#32973)
* lint import

* Update selfdrive/car/__init__.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-07-15 11:12:24 -07:00
commaci-public
dd2787b7a1 [bot] Update Python packages and pre-commit hooks (#32990)
* Update Python packages and pre-commit hooks

* fix ruff

---------

Co-authored-by: Vehicle Researcher <user@comma.ai>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
2024-07-15 17:29:57 +00:00
signed-long
c759fe9002 CI: fix ui report directory (#32991)
fix report artifact name
2024-07-15 08:01:51 -07:00
Adeeb Shihadeh
cbee4421da bump panda 2024-07-14 15:56:44 -07:00
pantew869
7ed3f62f0c Bump submodules that used numpy-stubs in pre-commit config (#32983)
update submodules that used numpy-stubs in pre-commit config
2024-07-14 07:35:24 -07:00
Adeeb Shihadeh
e7388c3743 remove pygame (#32981) 2024-07-13 13:41:38 -07:00
savojovic
75b07c042f Replace ui.py with a Rerun visualizer (#32850)
* Replace ui.py with rerun

* Visualizing radarpoints

* Visualizing all points

* Code clean-up

* Merging matrices into one

* Removing pygame depndency

* Replacing ui.py with rp_visualization.py

* Minor fix, changing color names

* Update README.md
2024-07-13 13:36:21 -07:00
James
953e5667b1 Re-use "is_metric" declaration (#32948) 2024-07-12 17:07:57 -07:00
Andrei Radulescu
50f55684a2 Rewrite git history update (#32955)
Rewrite git history final touches
2024-07-12 16:44:52 -07:00
eFini
0f34e6e3b6 PC: added missing hexdump package for selfdrive/debug/dump.py (#32959)
added missing hexdump package
2024-07-12 16:44:22 -07:00
Dean Lee
32a5cfd84c cabana: update README (#32965)
improve README
2024-07-12 16:42:45 -07:00
Dean Lee
f1416f337c replay: update README (#32966)
update README
2024-07-12 16:42:10 -07:00
Andrei Radulescu
122a7f2f0f start for curl openpilot.comma.ai | bash (#32967)
* initial setup.sh for curl|bash

* --single-branch for faster pull and some final instructions

* fix git lfs pull
2024-07-12 16:32:04 -07:00
Dean Lee
2156870df9 pandad: remove return statement in constructor (#32975)
remove return
2024-07-12 16:20:49 -07:00
Dean Lee
e3e54fb28b cabana: fix wrong file path handling for recent files menu (#32969)
fix lambda
2024-07-12 10:38:07 -07:00
Jason Wen
1a8170e839 Speed Limit Control: Gate behind longitudinal 2024-07-11 23:51:17 -04:00
Shane Smiskol
71dd1e2ff6 long planner: formatting 2024-07-11 14:06:51 -07:00
Jason Wen
c1cd33dbc1 MADS: Fix extra gear check 2024-07-11 15:46:24 +00:00
Shane Smiskol
11db7b683b hardwared: don't ignore quick ignition cycles (#32938)
* check on either edge

* clean up

* clean up

* good thing I tested this first :P
2024-07-11 02:49:42 -07:00
Shane Smiskol
b247c3caaa torqued: check steer override to current time (#32963)
* lat active/steer override: check up to now

* lint

* Update ref_commit
2024-07-10 17:25:39 -07:00
Jason Young
e36ff90996 Improved PlotJuggler layout for lateral accel torque controller (#32949)
* improved PlotJuggler layout for lat accel controller

* help estimate steerActuatorDelay

* update Actuator Performance, add Vehicle Dynamics

* disable Y limits on actuator performance because sunny

* apply delay estimation feedback from harald

* gc extra custom series that PJ copied in

* label wordsmithing
2024-07-10 15:10:42 -07:00
Dean Lee
c17c34187b cabana: simplify stream management and remove problematic autosave feature (#32945)
simplify code and remove problematic code
2024-07-10 15:10:24 -07: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
Shane Smiskol
fbc53a24a3 torqued: clean up (#32958)
* formatting

* function signatures didn't match

* function signatures didn't match

* filtered and raw mean something totally different when it comes to params

filtered and raw mean something totally different when it comes to params

* cmt

* probably better for organization

* add todo

* STASH

* revert some stuff

* clean up

* oof
2024-07-09 22:26:58 -07:00
Shane Smiskol
5efdaf2026 torqued: option to keep track of all points (#32957)
* how about this

* here

* rename

* revert

* revert this too

* can do this

* ugh inside TorqueBuckets it implicitly limits steer torque to 50%!!!!!!!!

* fix

* move up
2024-07-09 22:21:50 -07:00
Shane Smiskol
0c58e35b6c format torqued.py 2024-07-09 21:16:36 -07:00
Jason Wen
ba12998986 ui: onroad: drawLead cleanup 2024-07-09 22:59:44 -04:00
Maxime Desroches
133f25eecb switch cereal to pytest (#32950)
pytest
2024-07-09 22:01:16 +00:00
Shane Smiskol
35df0a4fda torqued: rename lat_active (#32942)
* Update torqued.py

* lint

* not necessary
2024-07-08 22:53:59 -07:00
Andrei Radulescu
481e5b28bd Rewrite git history (#31562)
* bfg

* filter repo is the new shit

* down to 27M

* move big files to lfs; remove external and phonelibs

* wip - rebase devel; don't delete external and phonelibs anymore

* wip - rebase devel hacks

* wip - rebase devel updates

* wip - rebase updates; lfs updates

* cleaned unused scripts

* wip - lfs fixes

* bfg with rebase with correct dates

* bfg script with cherry-pick method

* latest git-filter-repo analysis

* latest git-filter-repo 'before' analysis

* new lfs import

* latest git-filter-repo analysis

* lfs update; renamed rebase repos

* renamed scripts

* different tmp folders for rewrite scripts; lfs update

* gitattributes after lfs import

* tag-commit-map file with old tags pointing to old commits

* new tags

* final touches

* squash setup commits; cherry-pick validation; reverted to commaai remote

* removed rebase version

* 0.9.7 tag in tag-commit-map

* removed unused openpilot-release-archive

* fixed archive of old history because of 2 GB limit

* archive of old history push master first

* fix tags being deleted

* cleaning and more logs

* rewrite other branches with master history

* Former-commit-id

* updates to previous commits

* cleanup

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
2024-07-09 05:08:38 +00:00
signed-long
6745c66352 Update ci weekly report summary (#32911)
* update ci weekly report summary

* don't add skipped jobs to report

* uncomment job condition

* use jinja template

* add run number to failure links

* add run number to failure links

* Log for run #<num>

* use list

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
2024-07-09 03:07:34 +00:00
Adeeb Shihadeh
8c6c6e435f site -> docs 2024-07-08 17:05:42 -07:00
Adeeb Shihadeh
f6189568ea mvp of new docs.comma.ai (#32926)
* ssh docs

* strict

* need an index

* push to prod
2024-07-08 16:55:16 -07:00
Hoang Bui
15d3397ec6 CI: Compile openpilot on macOS (#32909)
* working

* cache

* bring back
2024-07-08 23:42:26 +00:00
JaReal07
4014109666 Update fingerprints.py Corolla 2024 (South America) (#32864)
Add Corolla Sedan 2024 (South America), new 'engine' and 'eps' fwversion
2024-07-08 14:58:22 -07:00
dany7915
67038d5b59 Fingerprint: Kia K5 HEV 2020 (#32875)
fingerprint added
2024-07-08 14:54:11 -07:00
Dean Lee
36815cc6d5 cabana: bug fixes and improvements (#32934)
bug fixes and improvements
2024-07-08 14:50:31 -07:00
Shane Smiskol
31ff8eda9c Chrysler Pacifica Hybrid: combine 2017 and 2018 (#32937)
* Chrysler Pacifica: combine 2017 and 2018 hybrids

torque params are not accurate for either (might be ~1.5 for both checking a few dongles)

* remove duplicate fingerprints

* combine docs lines

fix
2024-07-08 14:45:01 -07:00
Shane Smiskol
fa2f7a4dd4 [bot] Fingerprints: add missing FW versions from new users (#32936)
Export fingerprints
2024-07-08 14:16:44 -07:00
Dean Lee
12d729a0a0 CarParams: set no traversal limit (#32929)
* Increase traversal_limit_in_words to Fix Traversal Limit Errors

* just use log_from_bytes

* come on pycharm

* no free lunch

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-07-08 13:50:31 -07:00
Maxime Desroches
76686e1976 docs: only push on master (#32935)
only on master
2024-07-08 19:14:32 +00:00
commaci-public
012eb07466 [bot] Update Python packages and pre-commit hooks (#32931)
Update Python packages and pre-commit hooks

Co-authored-by: Vehicle Researcher <user@comma.ai>
2024-07-08 19:10:53 +00:00
Shane Smiskol
4a696984f1 [bot] Fingerprints: add missing FW versions from CAN fingerprinting cars (#32932)
Export fingerprints
2024-07-08 10:58:08 -07:00
DevTekVE
3c74ad145e Processor definition check for __APPLE__ has a typo on replay (#32930) 2024-07-08 17:10:26 +00: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
Adeeb Shihadeh
241fb902af publish new docs (#32922)
* push new docs

* drop the new, just docs

* cleanup
2024-07-07 19:13:48 -07: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
Alexandre Nobuharu Sato
4445fa31f5 fix "telsa" typo on labeler.yaml (#32924) 2024-07-07 10:35:02 -07: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
863 changed files with 48014 additions and 8113 deletions

View File

@@ -0,0 +1 @@
{"cache_date": "2024-08-08", "page_authors": {"docs/index.md": {"last_commit_date": "2024-07-28", "authors": [{"login": "adeebshihadeh", "name": "adeebshihadeh", "url": "https://github.com/adeebshihadeh", "avatar": "https://avatars.githubusercontent.com/u/8762862?v=4"}, {"login": "tecandrew", "name": "tecandrew", "url": "https://github.com/tecandrew", "avatar": "https://avatars.githubusercontent.com/u/21319730?v=4"}, {"login": "pd0wm", "name": "pd0wm", "url": "https://github.com/pd0wm", "avatar": "https://avatars.githubusercontent.com/u/1314752?v=4"}]}, "docs/SAFETY.md": {"last_commit_date": "2023-07-25", "authors": [{"login": "haraschax", "name": "haraschax", "url": "https://github.com/haraschax", "avatar": "https://avatars.githubusercontent.com/u/6804392?v=4"}, {"login": "sshane", "name": "sshane", "url": "https://github.com/sshane", "avatar": "https://avatars.githubusercontent.com/u/25857203?v=4"}, {"login": "pd0wm", "name": "pd0wm", "url": "https://github.com/pd0wm", "avatar": "https://avatars.githubusercontent.com/u/1314752?v=4"}, {"login": "geohot", "name": "geohot", "url": "https://github.com/geohot", "avatar": "https://avatars.githubusercontent.com/u/72895?v=4"}]}, "docs/how-to/turn-the-speed-blue.md": {"last_commit_date": "2024-07-28", "authors": [{"login": "adeebshihadeh", "name": "adeebshihadeh", "url": "https://github.com/adeebshihadeh", "avatar": "https://avatars.githubusercontent.com/u/8762862?v=4"}]}}}

View File

@@ -44,7 +44,7 @@ subaru:
tesla:
- changed-files:
- any-glob-to-all-files: 'selfdrive/car/telsa/*'
- any-glob-to-all-files: 'selfdrive/car/tesla/*'
toyota:
- changed-files:

View File

@@ -7,7 +7,7 @@ on:
env:
BASE_IMAGE: openpilot-base
DOCKER_REGISTRY: ghcr.io/commaai
RUN: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache/openpilot_cache:/tmp/openpilot_cache $DOCKER_REGISTRY/$BASE_IMAGE:latest /bin/bash -c
RUN: docker run --shm-size 2G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache/openpilot_cache:/tmp/openpilot_cache $DOCKER_REGISTRY/$BASE_IMAGE:latest /bin/bash -c
jobs:
badges:

View File

@@ -10,38 +10,30 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CI_RUNS: ${{ github.event.inputs.ci_runs || '50' }}
jobs:
setup:
if: github.repository == 'commaai/openpilot'
runs-on: ubuntu-latest
outputs:
ci_runs: ${{ steps.ci_runs_setup.outputs.value }}
ci_runs: ${{ steps.ci_runs_setup.outputs.matrix }}
steps:
- id: ci_runs_setup
name: CI_RUNS=${{ env.CI_RUNS }}
run: |
CI_RUNS=${{ inputs.ci_runs || '50' }}
mylist="value=["
matrix=$(python3 -c "import json; print(json.dumps({ 'run_number' : list(range(${{ env.CI_RUNS }})) }))")
echo "matrix=$matrix" >> $GITHUB_OUTPUT
for i in $(seq 1 $CI_RUNS);
do
if [ $i != $CI_RUNS ]; then
mylist+="\"$i\", "
else
mylist+="\"$i\"]"
fi
done
echo "$mylist" >> $GITHUB_OUTPUT
echo "Number of CI runs for report: $CI_RUNS"
ci_matrix_run:
needs: [ setup ]
strategy:
fail-fast: false
matrix:
value: ${{fromJSON(needs.setup.outputs.ci_runs)}}
matrix: ${{fromJSON(needs.setup.outputs.ci_runs)}}
uses: commaai/openpilot/.github/workflows/ci_weekly_run.yaml@master
with:
run_number: ${{ matrix.value }}
run_number: ${{ matrix.run_number }}
report:
needs: [ci_matrix_run]
@@ -62,62 +54,48 @@ jobs:
})
var report = {}
jobs.slice(1, jobs.length-1).forEach(job => {
const jobName = job.name.split('/')[2].trim();
if (job.conclusion === "skipped") return;
const jobName = job.name.split(" / ")[2];
const runRegex = /\((.*?)\)/;
const run = job.name.match(runRegex)[1];
report[jobName] = report[jobName] || { successes: [], failures: [], cancelled: [] };
switch (job.conclusion) {
case "success":
report[jobName].successes.push(job.html_url); break;
report[jobName].successes.push({ "run_number": run, "link": job.html_url}); break;
case "failure":
report[jobName].failures.push(job.html_url); break;
report[jobName].failures.push({ "run_number": run, "link": job.html_url }); break;
case "cancelled":
report[jobName].cancelled.push(job.html_url); break;
report[jobName].cancelled.push({ "run_number": run, "link": job.html_url }); break;
}
});
return JSON.stringify(report);
return JSON.stringify({"jobs": report});
- name: Add job results to summary
env:
JOB_RESULTS: ${{ fromJSON(steps.get-job-results.outputs.result) }}
run: |
echo $JOB_RESULTS > job_results.json
generate_html_table() {
echo "<table>"
echo "<thead>"
echo " <tr>"
echo " <th>Job</th>"
echo " <th>Succeeded ✅</th>"
echo " <th>Failed ❌</th>"
echo " <th>Cancelled (timed out) ⏰</th>"
echo " </tr>"
echo "</thead>"
jq -r '
"<tbody>",
keys[] as $job |
"<tr>",
" <td>\($job)</td>",
" <td>",
" <details>",
" <summary>(\(.[$job].successes | length))</summary>",
" \(.[$job].successes[])<br>",
" </details>",
" </td>",
" <td>",
" <details>",
" <summary>(\(.[$job].failures | length))</summary>",
" \(.[$job].failures[])<br>",
" </details>",
" </td>",
" <td>",
" <details>",
" <summary>(\(.[$job].cancelled | length))</summary>",
" \(.[$job].cancelled[])<br>",
" </details>",
" </td>",
"</tr>"
' job_results.json
echo "</tbody>"
echo "</table>"
}
echo "# CI Job Summary" >> $GITHUB_STEP_SUMMARY
generate_html_table >> $GITHUB_STEP_SUMMARY
cat <<EOF >> template.html
<table>
<thead>
<tr>
<th></th>
<th>Job</th>
<th>✅ Passing</th>
<th>Failure Details</th>
</tr>
</thead>
<tbody>
{% for key in jobs.keys() %}<tr>
<td>{% for i in range(5) %}{% if i+1 <= (5 * jobs[key]["successes"]|length // ${{ env.CI_RUNS }}) %}🟩{% else %}🟥{% endif %}{% endfor%}</td>
<td>{{ key }}</td>
<td>{{ 100 * jobs[key]["successes"]|length // ${{ env.CI_RUNS }} }}%</td>
<td>{% if jobs[key]["failures"]|length > 0 %}<details>{% for failure in jobs[key]["failures"] %}<a href="{{ failure['link'] }}">Log for run #{{ failure['run_number'] }}</a><br>{% endfor %}</details>{% else %}{% endif %}</td>
</td>
</tr>{% endfor %}
</table>
EOF
pip install jinja2-cli
echo $JOB_RESULTS | jinja2 template.html > report.html
echo "# CI Test Report - ${{ env.CI_RUNS }} Runs" >> $GITHUB_STEP_SUMMARY
cat report.html >> $GITHUB_STEP_SUMMARY

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}}"

View File

@@ -15,31 +15,24 @@ concurrency:
group: docs-tests-ci-run-${{ inputs.run_number }}-${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.run_id || github.head_ref || github.ref }}-${{ github.workflow }}-${{ github.event_name }}
cancel-in-progress: true
env:
BASE_IMAGE: openpilot-base
BUILD: selfdrive/test/docker_build.sh base
RUN: docker run --shm-size 1G -v $GITHUB_WORKSPACE:/tmp/openpilot -w /tmp/openpilot -e FILEREADER_CACHE=1 -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/bash -c
jobs:
docs:
name: build docs
runs-on: ubuntu-latest
timeout-minutes: 45
if: false # TODO: replace this with the new docs
timeout-minutes: 1
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/workflows/setup-with-retry
- name: Build openpilot
run: |
${{ env.RUN }} "scons -j$(nproc)"
# Build
- name: Build docs
run: |
${{ env.RUN }} "apt update && apt install -y doxygen && cd docs && make -j$(nproc) html"
# TODO: can we install just the "docs" dependency group without the normal deps?
pip install mkdocs
mkdocs build
# Push to docs.comma.ai
- uses: actions/checkout@v4
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot'
with:
@@ -54,16 +47,17 @@ jobs:
source release/identity.sh
cd openpilot-docs
git checkout --orphan tmp
git rm -rf .
cp -r ../build/docs/html/ docs/
cp -r ../docs/README.md .
# copy over docs
cp -r ../docs_site/ docs/
# GitHub pages config
touch docs/.nojekyll
echo -n docs.comma.ai > docs/CNAME
git add -f .
git add -f .
git commit -m "build docs"
# docs live in different repo to not bloat openpilot's full clone size

View File

@@ -0,0 +1,45 @@
name: jenkins scan
on:
issue_comment:
types: [created, edited]
jobs:
# TODO: gc old branches in a separate job in this workflow
scan-comments:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request }}
steps:
- name: Check for trigger phrase
id: check_comment
uses: actions/github-script@v7
with:
script: |
const triggerPhrase = "trigger-jenkins";
const comment = context.payload.comment.body;
const commenter = context.payload.comment.user.login;
const { data: permissions } = await github.rest.repos.getCollaboratorPermissionLevel({
owner: context.repo.owner,
repo: context.repo.repo,
username: commenter
});
const hasWriteAccess = permissions.permission === 'write' || permissions.permission === 'admin';
return (hasWriteAccess && comment.includes(triggerPhrase));
result-encoding: json
- name: Checkout repository
if: steps.check_comment.outputs.result == 'true'
uses: actions/checkout@v4
with:
ref: refs/pull/${{ github.event.issue.number }}/head
- name: Push to tmp-jenkins branch
if: steps.check_comment.outputs.result == 'true'
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git checkout -b tmp-jenkins-${{ github.event.issue.number }}
GIT_LFS_SKIP_PUSH=1 git push -f origin tmp-jenkins-${{ github.event.issue.number }}

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

@@ -0,0 +1,46 @@
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.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Add GitLab public keys
run: |
ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts
# Note: 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.
- name: Sync and commit changes
id: sync-and-commit
run: |
# Add GitLab remote
git remote add gitlab git@gitlab.com:sunnypilot/sunnyhaibin/sunnypilot-github-mirror.git
git push -u --force gitlab ${{ github.ref }}

View File

@@ -46,17 +46,13 @@ jobs:
python3 -m ensurepip --upgrade
pip3 install uv
uv lock --upgrade
- name: pre-commit autoupdate
run: |
git config --global --add safe.directory '*'
pre-commit autoupdate
- name: Create Pull Request
uses: peter-evans/create-pull-request@9153d834b60caba6d51c9b9510b087acf9f33f83
with:
author: Vehicle Researcher <user@comma.ai>
token: ${{ secrets.ACTIONS_CREATE_PR_PAT }}
commit-message: Update Python packages and pre-commit hooks
title: '[bot] Update Python packages and pre-commit hooks'
commit-message: Update Python packages
title: '[bot] Update Python packages'
branch: auto-package-updates
base: master
delete-branch: true

View File

@@ -25,7 +25,7 @@ env:
DOCKER_LOGIN: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
BUILD: selfdrive/test/docker_build.sh base
RUN: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e CI=1 -e PRE_COMMIT_HOME=/tmp/pre-commit -e PYTHONWARNINGS=error -e FILEREADER_CACHE=1 -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v $GITHUB_WORKSPACE/.ci_cache/pre-commit:/tmp/pre-commit -v $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/bash -c
RUN: docker run --shm-size 2G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e CI=1 -e PYTHONWARNINGS=error -e FILEREADER_CACHE=1 -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/bash -c
PYTEST: pytest --continue-on-collection-errors --cov --cov-report=xml --cov-append --durations=0 --durations-min=5 --hypothesis-seed 0 -n logical
@@ -45,7 +45,6 @@ jobs:
- name: Build devel
timeout-minutes: 1
run: TARGET_DIR=$STRIPPED_DIR release/build_devel.sh
- uses: ./.github/workflows/setup-pre-commit
- uses: ./.github/workflows/setup-with-retry
- name: Check submodules
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot'
@@ -62,20 +61,22 @@ jobs:
cd $STRIPPED_DIR
${{ env.RUN }} "release/check-dirty.sh && \
MAX_EXAMPLES=5 $PYTEST -m 'not slow' selfdrive/car"
- name: pre-commit
timeout-minutes: 3
- name: static analysis
timeout-minutes: 1
run: |
cd $GITHUB_WORKSPACE
cp .pre-commit-config.yaml $STRIPPED_DIR
cp pyproject.toml $STRIPPED_DIR
cd $STRIPPED_DIR
${{ env.RUN }} "unset PYTHONWARNINGS && SKIP=check-added-large-files,check-hooks-apply,check-useless-excludes pre-commit run --all && chmod -R 777 /tmp/pre-commit"
${{ env.RUN }} "scripts/lint.sh"
build:
strategy:
matrix:
arch: ${{ fromJson('["x86_64"]') }} # TODO: Re-add build test for aarch64 once we switched to ubuntu-2404
runs-on: ubuntu-latest
arch: ${{ fromJson(
((github.repository == 'commaai/openpilot') &&
((github.event_name != 'pull_request') ||
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && '["x86_64", "aarch64"]' || '["x86_64"]' ) }}
runs-on: ${{ (matrix.arch == 'aarch64') && 'namespace-profile-arm64-2x8' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
with:
@@ -84,7 +85,7 @@ jobs:
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot'
run: |
echo "PUSH_IMAGE=true" >> "$GITHUB_ENV"
: # (TODO: Re-add this once we test other archs) echo "TARGET_ARCHITECTURE=${{ matrix.arch }}" >> "$GITHUB_ENV"
echo "TARGET_ARCHITECTURE=${{ matrix.arch }}" >> "$GITHUB_ENV"
$DOCKER_LOGIN
- uses: ./.github/workflows/setup-with-retry
with:
@@ -93,7 +94,7 @@ jobs:
timeout-minutes: ${{ ((steps.restore-scons-cache.outputs.cache-hit == 'true') && 15 || 30) }} # allow more time when we missed the scons cache
build_mac:
name: build macos
name: build macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
@@ -103,11 +104,36 @@ jobs:
- name: Install dependencies
run: ./tools/mac_setup.sh
env:
SKIP_PROMPT: 1
# package install has DeprecationWarnings
PYTHONWARNINGS: default
- name: Test openpilot environment
run: . .venv/bin/activate && scons -h
- run: echo "CACHE_COMMIT_DATE=$(git log -1 --pretty='format:%cd' --date=format:'%Y-%m-%d-%H:%M')" >> $GITHUB_ENV
- name: Getting scons cache
uses: 'actions/cache@v4'
with:
path: /tmp/scons_cache
key: scons-${{ runner.arch }}-macos-${{ env.CACHE_COMMIT_DATE }}-${{ github.sha }}
restore-keys: |
scons-${{ runner.arch }}-macos-${{ env.CACHE_COMMIT_DATE }}
scons-${{ runner.arch }}-macos
- name: Building openpilot
run: . .venv/bin/activate && scons -j$(nproc)
docker_push_multiarch:
name: docker push multiarch tag
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot'
needs: [build]
steps:
- uses: actions/checkout@v4
with:
submodules: false
- name: Setup docker
run: |
$DOCKER_LOGIN
- name: Merge x64 and arm64 tags
run: |
export PUSH_IMAGE=true
scripts/retry.sh selfdrive/test/docker_tag_multiarch.sh base x86_64 aarch64
static_analysis:
name: static analysis
@@ -118,13 +144,12 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/workflows/setup-pre-commit
- uses: ./.github/workflows/setup-with-retry
- name: Build openpilot
run: ${{ env.RUN }} "scons -j$(nproc)"
- name: pre-commit
timeout-minutes: 4
run: ${{ env.RUN }} "unset PYTHONWARNINGS && pre-commit run --all && chmod -R 777 /tmp/pre-commit"
- name: static analysis
timeout-minutes: 1
run: ${{ env.RUN }} "scripts/lint.sh"
unit_tests:
name: unit tests
@@ -145,6 +170,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 && \
@@ -309,8 +335,10 @@ jobs:
})
create_ui_report:
# This job name needs to be the same as UI_JOB_NAME in ui_preview.yaml
name: Create UI Report
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
with:
@@ -322,59 +350,10 @@ 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
with:
name: report-${{ inputs.run_number }}
path: selfdrive/ui/tests/test_ui/report_${{ inputs.run_number }}
- name: Get changes to selfdrive/ui
if: ${{ github.event_name == 'pull_request' }}
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: |
selfdrive/ui/**
- name: Checkout ci-artifacts
if: ${{ github.event_name == 'pull_request' && steps.changed-files.outputs.any_changed == 'true' }}
uses: actions/checkout@v4
with:
repository: commaai/ci-artifacts
ssh-key: ${{ secrets.CI_ARTIFACTS_DEPLOY_KEY }}
path: ${{ github.workspace }}/ci-artifacts
ref: master
- name: Push Screenshots
if: ${{ github.event_name == 'pull_request' && steps.changed-files.outputs.any_changed == 'true' }}
working-directory: ${{ github.workspace }}/ci-artifacts
run: |
git checkout -b openpilot/pr-${{ github.event.pull_request.number }}
git config user.name "GitHub Actions Bot"
git config user.email "<>"
sudo mv ${{ github.workspace }}/selfdrive/ui/tests/test_ui/report/screenshots/* .
git add .
git commit -m "screenshots for PR #${{ github.event.pull_request.number }}"
git push origin openpilot/pr-${{ github.event.pull_request.number }} --force
- name: Comment Screenshots on PR
if: ${{ github.event_name == 'pull_request' && steps.changed-files.outputs.any_changed == 'true' }}
uses: thollander/actions-comment-pull-request@v2
with:
message: |
<!-- _(run_id_screenshots **${{ github.run_id }}**)_ -->
## UI Screenshots
<table>
<tr>
<td><img src="https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot/pr-${{ github.event.pull_request.number }}/homescreen.png"></td>
<td><img src="https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot/pr-${{ github.event.pull_request.number }}/onroad.png"></td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot/pr-${{ github.event.pull_request.number }}/onroad_map.png"></td>
<td><img src="https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot/pr-${{ github.event.pull_request.number }}/onroad_sidebar.png"></td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot/pr-${{ github.event.pull_request.number }}/settings_network.png"></td>
<td><img src="https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot/pr-${{ github.event.pull_request.number }}/settings_device.png"></td>
</tr>
</table>
comment_tag: run_id_screenshots
pr_number: ${{ github.event.pull_request.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: report-${{ github.event.number }}
path: selfdrive/ui/tests/test_ui/report_1/screenshots

View File

@@ -1,12 +0,0 @@
name: 'set up pre-commit environment'
runs:
using: "composite"
steps:
- uses: ./.github/workflows/auto-cache
with:
path: .ci_cache/pre-commit
key: pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }}
restore-keys: |
pre-commit-
save: ${{ github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot' }}

View File

@@ -5,8 +5,8 @@ on:
workflow_dispatch:
env:
DAYS_BEFORE_PR_CLOSE: 3
DAYS_BEFORE_PR_STALE: 14
DAYS_BEFORE_PR_CLOSE: 2
DAYS_BEFORE_PR_STALE: 9
jobs:
stale:

View File

@@ -21,7 +21,7 @@ env:
BUILD: selfdrive/test/docker_build.sh base
RUN: docker run --shm-size 1G -v $GITHUB_WORKSPACE:/tmp/openpilot -w /tmp/openpilot -e FILEREADER_CACHE=1 -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/bash -c
RUN: docker run --shm-size 2G -v $GITHUB_WORKSPACE:/tmp/openpilot -w /tmp/openpilot -e FILEREADER_CACHE=1 -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/bash -c
jobs:
@@ -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"
@@ -73,12 +74,6 @@ jobs:
scons-${{ runner.arch }}-ubuntu2004
- name: Building openpilot
run: uv run scons -u -j$(nproc)
- name: Saving scons cache
uses: actions/cache/save@v4
if: github.ref == 'refs/heads/master'
with:
path: /tmp/scons_cache
key: scons-${{ runner.arch }}-ubuntu2004-${{ env.CACHE_COMMIT_DATE }}-${{ github.sha }}
devcontainer:
name: devcontainer

91
.github/workflows/ui_preview.yaml vendored Normal file
View File

@@ -0,0 +1,91 @@
name: "ui preview"
on:
pull_request_target:
types: [assigned, opened, synchronize, reopened, edited]
branches:
- 'master'
paths:
- 'selfdrive/ui/**'
env:
UI_JOB_NAME: "Create UI Report"
jobs:
preview:
if: github.repository == 'commaai/openpilot'
name: preview
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
pull-requests: write
actions: read
steps:
- name: Waiting for ui test to start
run: sleep 30
- name: Wait for ui report
uses: lewagon/wait-on-check-action@v1.3.4
with:
ref: ${{ github.event.pull_request.head.sha }}
check-name: ${{ env.UI_JOB_NAME }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
allowed-conclusions: success
wait-interval: 20
- name: Get workflow run ID
id: get_run_id
run: |
echo "run_id=$(curl https://api.github.com/repos/${{ github.repository }}/commits/${{ github.event.pull_request.head.sha }}/check-runs | jq -r '.check_runs[] | select(.name == "${{ env.UI_JOB_NAME }}") | .html_url | capture("(?<number>[0-9]+)") | .number')" >> $GITHUB_OUTPUT
- name: Checkout ci-artifacts
uses: actions/checkout@v4
with:
repository: commaai/ci-artifacts
ssh-key: ${{ secrets.CI_ARTIFACTS_DEPLOY_KEY }}
path: ${{ github.workspace }}/ci-artifacts
ref: master
- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
run_id: ${{ steps.get_run_id.outputs.run_id }}
search_artifacts: true
name: report-${{ github.event.number }}
path: ${{ github.workspace }}/ci-artifacts
- name: Push Screenshots
working-directory: ${{ github.workspace }}/ci-artifacts
run: |
git checkout -b openpilot/pr-${{ github.event.number }}
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git add ${{ github.workspace }}/ci-artifacts/*
git commit -m "screenshots for PR #${{ github.event.number }}"
git push origin openpilot/pr-${{ github.event.number }} --force
- name: Comment Screenshots on PR
uses: thollander/actions-comment-pull-request@v2
with:
message: |
<!-- _(run_id_screenshots **${{ github.run_id }}**)_ -->
## UI Screenshots
<table>
<tr>
<td><img src="https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot/pr-${{ github.event.number }}/homescreen.png"></td>
<td><img src="https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot/pr-${{ github.event.number }}/onroad.png"></td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot/pr-${{ github.event.number }}/onroad_map.png"></td>
<td><img src="https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot/pr-${{ github.event.number }}/onroad_sidebar.png"></td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot/pr-${{ github.event.number }}/settings_network.png"></td>
<td><img src="https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot/pr-${{ github.event.number }}/settings_device.png"></td>
</tr>
</table>
comment_tag: run_id_screenshots
pr_number: ${{ github.event.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

6
.gitignore vendored
View File

@@ -14,6 +14,9 @@ model2.png
a.out
.hypothesis
/docs_site/
/docs_sp_site/
*.dylib
*.DSYM
*.d
@@ -54,6 +57,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/
@@ -102,4 +106,4 @@ Pipfile
### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide
.ionide

240
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,240 @@
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 -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'
- '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"]

17
.gitmodules vendored
View File

@@ -1,21 +1,18 @@
[submodule "panda"]
path = panda
url = ../../sunnyhaibin/panda.git
url = https://github.com/sunnyhaibin/panda.git
[submodule "opendbc"]
path = opendbc
url = ../../sunnyhaibin/opendbc.git
path = opendbc_repo
url = https://github.com/sunnypilot/opendbc.git
[submodule "msgq"]
path = msgq_repo
url = ../../commaai/msgq.git
url = https://github.com/sunnypilot/msgq.git
[submodule "rednose_repo"]
path = rednose_repo
url = ../../commaai/rednose.git
[submodule "body"]
path = body
url = ../../commaai/body.git
url = https://github.com/commaai/rednose.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
url = https://github.com/tinygrad/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>

41
.importlinter Normal file
View File

@@ -0,0 +1,41 @@
[importlinter]
root_packages =
openpilot
[importlinter:contract:1]
name = Forbid imports from openpilot.selfdrive.car to openpilot.system
type = forbidden
source_modules =
openpilot.selfdrive.car
forbidden_modules =
openpilot.system
openpilot.body
openpilot.docs
openpilot.msgq
openpilot.panda
openpilot.rednose
openpilot.release
openpilot.teleoprtc
openpilot.tinygrad
ignore_imports =
openpilot.selfdrive.car.card -> openpilot.common.realtime
openpilot.selfdrive.car.card -> openpilot.selfdrive.controls.lib.events
openpilot.selfdrive.car.interfaces -> openpilot.selfdrive.controls.lib.events
openpilot.selfdrive.car.tests.test_models -> openpilot.tools.lib.logreader
openpilot.selfdrive.car.tests.test_models -> openpilot.selfdrive.car.card
openpilot.selfdrive.car.tests.test_models -> openpilot.tools.lib.route
openpilot.selfdrive.car.tests.test_models -> openpilot.system.hardware.hw
openpilot.selfdrive.car.tests.test_models -> openpilot.selfdrive.test.helpers
openpilot.selfdrive.car.isotp_parallel_query -> openpilot.common.swaglog
openpilot.selfdrive.car.fw_versions -> openpilot.common.swaglog
openpilot.selfdrive.car.disable_ecu -> openpilot.common.swaglog
openpilot.selfdrive.car.vin -> openpilot.common.swaglog
openpilot.selfdrive.car.ecu_addrs -> openpilot.common.swaglog
openpilot.selfdrive.car.car_helpers -> openpilot.common.swaglog
openpilot.selfdrive.car.car_helpers -> openpilot.system.version
openpilot.selfdrive.car.interfaces -> openpilot.selfdrive.controls.lib.drive_helpers
openpilot.selfdrive.car.tests.test_car_interfaces -> openpilot.selfdrive.controls.lib.latcontrol_angle
openpilot.selfdrive.car.tests.test_car_interfaces -> openpilot.selfdrive.controls.lib.longcontrol
openpilot.selfdrive.car.tests.test_car_interfaces -> openpilot.selfdrive.controls.lib.latcontrol_torque
openpilot.selfdrive.car.tests.test_car_interfaces -> openpilot.selfdrive.controls.lib.latcontrol_pid
unmatched_ignore_imports_alerting = warn

View File

@@ -1,98 +0,0 @@
exclude: '^(tinygrad_repo)'
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-ast
exclude: '^(third_party)/'
- id: check-json
exclude: '.devcontainer/devcontainer.json|.vscode/' # these support JSON with comments
- id: check-toml
- id: check-xml
- id: check-yaml
- id: check-merge-conflict
- id: check-symlinks
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-added-large-files
exclude: '(docs/CARS.md)|(uv.lock)|(third_party/acados/include/blasfeo/include/blasfeo_d_kernel.h)'
args:
- --maxkb=120
- --enforce-all
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
exclude: '^(third_party/)|(body/)|(msgq/)|(panda/)|(opendbc/)|(rednose/)|(rednose_repo/)|(teleoprtc/)|(teleoprtc_repo/)|(selfdrive/ui/translations/.*.ts)|(uv.lock)'
args:
# if you've got a short variable name that's getting flagged, add it here
- -L bu,ro,te,ue,alo,hda,ois,nam,nams,ned,som,parm,setts,inout,warmup,bumb,nd,sie,preints,whit,indexIn
- --builtins clear,rare,informal,usage,code,names,en-GB_to_en-US
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
hooks:
- id: ruff
exclude: '^(third_party/)|(msgq/)|(panda/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(teleoprtc/)|(teleoprtc_repo/)'
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy
language: system
types: [python]
args:
- --local-partial-types
- --explicit-package-bases
exclude: '^(third_party/)|(body/)|(msgq/)|(opendbc/)|(panda/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(teleoprtc/)|(teleoprtc_repo/)'
- repo: local
hooks:
- id: cppcheck
name: cppcheck
entry: cppcheck
language: system
types: [c++]
exclude: '^(third_party/)|(msgq/)|(body/)|(rednose/)|(rednose_repo/)|(opendbc/)|(panda/)|(tools/)|(selfdrive/modeld/thneed/debug/)|(selfdrive/modeld/test/)|(selfdrive/camerad/test/)|(installer/)'
args:
- --error-exitcode=1
- --language=c++
- --quiet
- --force
- -j8
- --library=qt
- --include=third_party/kaitai/kaitaistream.h
- repo: https://github.com/cpplint/cpplint
rev: 1.6.1
hooks:
- id: cpplint
exclude: '^(third_party/)|(msgq/)|(body/)|(rednose/)|(rednose_repo/)|(opendbc/)|(panda/)|(generated/)'
args:
- --quiet
- --counting=total
- --linelength=240
# https://google.github.io/styleguide/cppguide.html
# relevant rules are whitelisted, see all options with: cpplint --filter=
- --filter=-build,-legal,-readability,-runtime,-whitespace,+build/include_subdir,+build/forward_decl,+build/include_what_you_use,+build/deprecated,+whitespace/comma,+whitespace/line_length,+whitespace/empty_if_body,+whitespace/empty_loop_body,+whitespace/empty_conditional_body,+whitespace/forcolon,+whitespace/parens,+whitespace/semicolon,+whitespace/tab,+readability/braces
- repo: https://github.com/MarcoGorelli/cython-lint
rev: v0.16.2
hooks:
- id: cython-lint
exclude: '^(third_party/)|(msgq/)|(body/)|(rednose/)|(rednose_repo/)|(opendbc/)|(panda/)|(generated/)'
args:
- --max-line-length=240
- --ignore=E111, E302, E305
- repo: local
hooks:
- id: test_translations
name: test translations
entry: pytest selfdrive/ui/tests/test_translations.py
language: system
pass_filenames: false
files: '^selfdrive/ui/translations/'
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.6
hooks:
- id: check-github-workflows

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>

5
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"
@@ -82,7 +83,7 @@ def deviceStage(String stageName, String deviceType, List extra_env, def steps)
lock(resource: "", label: deviceType, inversePrecedence: true, variable: 'device_ip', quantity: 1, resourceSelectStrategy: 'random') {
docker.image('ghcr.io/commaai/alpine-ssh').inside('--user=root') {
timeout(time: 20, unit: 'MINUTES') {
timeout(time: 35, unit: 'MINUTES') {
retry (3) {
device(device_ip, "git checkout", extra + "\n" + readFile("selfdrive/test/setup_device_ci.sh"))
}
@@ -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
@@ -102,7 +110,6 @@ if arch == "larch64":
libpath = [
"/usr/local/lib",
"/usr/lib",
"/system/vendor/lib64",
f"#third_party/acados/{arch}/lib",
]
@@ -170,9 +177,12 @@ if arch != "Darwin":
ldflags += ["-Wl,--as-needed", "-Wl,--no-undefined"]
# Enable swaglog include in submodules
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(' ')
@@ -206,11 +216,12 @@ env = Environment(
"#third_party/json11",
"#third_party/linux/include",
"#third_party/snpe/include",
"#third_party/qrcode",
"#third_party",
"#cereal",
"#msgq",
"#opendbc/can",
"#third_party/maplibre-native-qt/include",
f"#third_party/maplibre-native-qt/{arch}/include"
],
CC='clang',
@@ -232,7 +243,7 @@ env = Environment(
COMPILATIONDB_USE_ABSPATH=True,
REDNOSE_ROOT="#",
tools=["default", "cython", "compilation_db", "rednose_filter"],
toolpath=["#rednose_repo/site_scons/site_tools"],
toolpath=["#site_scons/site_tools", "#rednose_repo/site_scons/site_tools"],
)
if arch == "Darwin":
@@ -244,7 +255,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)
@@ -271,11 +283,12 @@ if arch == "Darwin":
else:
envCython["LINKFLAGS"] = ["-pthread", "-shared"]
Export('envCython')
np_version = SCons.Script.Value(np.__version__)
Export('envCython', 'np_version')
# 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":
@@ -315,7 +328,7 @@ try:
except SCons.Errors.UserError:
qt_env.Tool('qt')
qt_env['CPPPATH'] += qt_dirs# + ["#selfdrive/ui/qt/"]
qt_env['CPPPATH'] += qt_dirs + ["#third_party/qrcode"]
qt_flags = [
"-D_REENTRANT",
"-DQT_NO_DEBUG",
@@ -328,7 +341,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"):
@@ -363,7 +377,6 @@ Export('messaging')
# Build other submodules
SConscript([
'body/board/SConscript',
'opendbc/can/SConscript',
'panda/SConscript',
])

1
body

Submodule body deleted from 0e74db67ae

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

@@ -137,8 +137,6 @@ struct FrameData {
requestId @28 :UInt32;
encodeId @1 :UInt32;
frameType @7 :FrameType;
# Timestamps
timestampEof @2 :UInt64;
timestampSof @8 :UInt64;
@@ -158,7 +156,7 @@ struct FrameData {
temperaturesC @24 :List(Float32);
enum FrameType {
enum FrameTypeDEPRECATED {
unknown @0;
neo @1;
chffrAndroid @2;
@@ -175,6 +173,7 @@ struct FrameData {
frameLengthDEPRECATED @3 :Int32;
globalGainDEPRECATED @5 :Int32;
frameTypeDEPRECATED @7 :FrameTypeDEPRECATED;
androidCaptureResultDEPRECATED @9 :AndroidCaptureResult;
lensPosDEPRECATED @11 :Int32;
lensSagDEPRECATED @12 :Float32;
@@ -337,9 +336,9 @@ enum LaneChangeDirection {
struct CanData {
address @0 :UInt32;
busTime @1 :UInt16;
dat @2 :Data;
src @3 :UInt8;
busTimeDEPRECATED @1 :UInt16;
}
struct DeviceState @0xa4d8b5af2aa492eb {
@@ -1252,6 +1251,38 @@ struct LiveLocationKalman {
}
}
struct LivePose {
# More info on reference frames:
# https://github.com/commaai/openpilot/tree/master/common/transformations
orientationNED @0 :XYZMeasurement;
velocityDevice @1 :XYZMeasurement;
accelerationDevice @2 :XYZMeasurement;
angularVelocityDevice @3 :XYZMeasurement;
inputsOK @4 :Bool = false;
posenetOK @5 :Bool = false;
sensorsOK @6 :Bool = false;
filterState @7 :FilterState;
struct XYZMeasurement {
x @0 :Float32;
y @1 :Float32;
z @2 :Float32;
xStd @3 :Float32;
yStd @4 :Float32;
zStd @5 :Float32;
valid @6 :Bool;
}
struct FilterState {
value @0 : List(Float64);
std @1 : List(Float64);
valid @2 : Bool;
}
}
struct ProcLog {
cpuTimes @0 :List(CPUTimes);
mem @1 :Mem;
@@ -2293,6 +2324,7 @@ struct Event {
carParams @69: Car.CarParams;
driverMonitoringState @71: DriverMonitoringState;
liveLocationKalman @72 :LiveLocationKalman;
livePose @129 :LivePose;
modelV2 @75 :ModelDataV2;
drivingModelData @128 :DrivingModelData;
driverStateV2 @92 :DriverStateV2;

View File

@@ -2,7 +2,8 @@
from msgq.ipc_pyx import Context, Poller, SubSocket, PubSocket, SocketEventHandle, toggle_fake_events, \
set_fake_prefix, get_fake_prefix, delete_fake_prefix, wait_for_one_event
from msgq.ipc_pyx import MultiplePublishersError, IpcError
from msgq import fake_event_handle, pub_sock, sub_sock, drain_sock_raw, context
from msgq import fake_event_handle, pub_sock, sub_sock, drain_sock_raw
import msgq
import os
import capnp
@@ -17,8 +18,12 @@ from cereal.services import SERVICE_LIST
NO_TRAVERSAL_LIMIT = 2**64-1
def log_from_bytes(dat: bytes) -> capnp.lib.capnp._DynamicStructReader:
with log.Event.from_bytes(dat, traversal_limit_in_words=NO_TRAVERSAL_LIMIT) as msg:
def reset_context():
msgq.context = Context()
def log_from_bytes(dat: bytes, struct: capnp.lib.capnp._StructModule = log.Event) -> capnp.lib.capnp._DynamicStructReader:
with struct.from_bytes(dat, traversal_limit_in_words=NO_TRAVERSAL_LIMIT) as msg:
return msg

52
cereal/messaging/tests/test_messaging.py Executable file → Normal file
View File

@@ -1,4 +1,3 @@
#!/usr/bin/env python3
import os
import capnp
import multiprocessing
@@ -6,8 +5,8 @@ import numbers
import random
import threading
import time
import unittest
from parameterized import parameterized
import pytest
from cereal import log, car
import cereal.messaging as messaging
@@ -28,12 +27,6 @@ def zmq_sleep(t=1):
if "ZMQ" in os.environ:
time.sleep(t)
def zmq_expected_failure(func):
if "ZMQ" in os.environ:
return unittest.expectedFailure(func)
else:
return func
# TODO: this should take any capnp struct and returrn a msg with random populated data
def random_carstate():
@@ -58,12 +51,12 @@ def delayed_send(delay, sock, dat):
threading.Timer(delay, send_func).start()
class TestMessaging(unittest.TestCase):
class TestMessaging:
def setUp(self):
# TODO: ZMQ tests are too slow; all sleeps will need to be
# replaced with logic to block on the necessary condition
if "ZMQ" in os.environ:
raise unittest.SkipTest
pytest.skip()
# ZMQ pub socket takes too long to die
# sleep to prevent multiple publishers error between tests
@@ -75,9 +68,9 @@ class TestMessaging(unittest.TestCase):
msg = messaging.new_message(evt)
except capnp.lib.capnp.KjException:
msg = messaging.new_message(evt, random.randrange(200))
self.assertLess(time.monotonic() - msg.logMonoTime, 0.1)
self.assertFalse(msg.valid)
self.assertEqual(evt, msg.which())
assert (time.monotonic() - msg.logMonoTime) < 0.1
assert not msg.valid
assert evt == msg.which()
@parameterized.expand(events)
def test_pub_sock(self, evt):
@@ -99,8 +92,8 @@ class TestMessaging(unittest.TestCase):
# no wait and no msgs in queue
msgs = func(sub_sock)
self.assertIsInstance(msgs, list)
self.assertEqual(len(msgs), 0)
assert isinstance(msgs, list)
assert len(msgs) == 0
# no wait but msgs are queued up
num_msgs = random.randrange(3, 10)
@@ -108,9 +101,9 @@ class TestMessaging(unittest.TestCase):
pub_sock.send(messaging.new_message(sock).to_bytes())
time.sleep(0.1)
msgs = func(sub_sock)
self.assertIsInstance(msgs, list)
self.assertTrue(all(isinstance(msg, expected_type) for msg in msgs))
self.assertEqual(len(msgs), num_msgs)
assert isinstance(msgs, list)
assert all(isinstance(msg, expected_type) for msg in msgs)
assert len(msgs) == num_msgs
def test_recv_sock(self):
sock = "carState"
@@ -120,14 +113,14 @@ class TestMessaging(unittest.TestCase):
# no wait and no msg in queue, socket should timeout
recvd = messaging.recv_sock(sub_sock)
self.assertTrue(recvd is None)
assert recvd is None
# no wait and one msg in queue
msg = random_carstate()
pub_sock.send(msg.to_bytes())
time.sleep(0.01)
recvd = messaging.recv_sock(sub_sock)
self.assertIsInstance(recvd, capnp._DynamicStructReader)
assert isinstance(recvd, capnp._DynamicStructReader)
# https://github.com/python/mypy/issues/13038
assert_carstate(msg.carState, recvd.carState)
@@ -139,16 +132,16 @@ class TestMessaging(unittest.TestCase):
# no msg in queue, socket should timeout
recvd = messaging.recv_one(sub_sock)
self.assertTrue(recvd is None)
assert recvd is None
# one msg in queue
msg = random_carstate()
pub_sock.send(msg.to_bytes())
recvd = messaging.recv_one(sub_sock)
self.assertIsInstance(recvd, capnp._DynamicStructReader)
assert isinstance(recvd, capnp._DynamicStructReader)
assert_carstate(msg.carState, recvd.carState)
@zmq_expected_failure
@pytest.mark.xfail(condition="ZMQ" in os.environ, reason='ZMQ detected')
def test_recv_one_or_none(self):
sock = "carState"
pub_sock = messaging.pub_sock(sock)
@@ -157,13 +150,13 @@ class TestMessaging(unittest.TestCase):
# no msg in queue, socket shouldn't block
recvd = messaging.recv_one_or_none(sub_sock)
self.assertTrue(recvd is None)
assert recvd is None
# one msg in queue
msg = random_carstate()
pub_sock.send(msg.to_bytes())
recvd = messaging.recv_one_or_none(sub_sock)
self.assertIsInstance(recvd, capnp._DynamicStructReader)
assert isinstance(recvd, capnp._DynamicStructReader)
assert_carstate(msg.carState, recvd.carState)
def test_recv_one_retry(self):
@@ -179,7 +172,7 @@ class TestMessaging(unittest.TestCase):
p = multiprocessing.Process(target=messaging.recv_one_retry, args=(sub_sock,))
p.start()
time.sleep(sock_timeout*15)
self.assertTrue(p.is_alive())
assert p.is_alive()
p.terminate()
# wait 15 socket timeouts before sending
@@ -187,9 +180,6 @@ class TestMessaging(unittest.TestCase):
delayed_send(sock_timeout*15, pub_sock, msg.to_bytes())
start_time = time.monotonic()
recvd = messaging.recv_one_retry(sub_sock)
self.assertGreaterEqual(time.monotonic() - start_time, sock_timeout*15)
self.assertIsInstance(recvd, capnp._DynamicStructReader)
assert (time.monotonic() - start_time) >= sock_timeout*15
assert isinstance(recvd, capnp._DynamicStructReader)
assert_carstate(msg.carState, recvd.carState)
if __name__ == "__main__":
unittest.main()

44
cereal/messaging/tests/test_pub_sub_master.py Executable file → Normal file
View File

@@ -1,8 +1,6 @@
#!/usr/bin/env python3
import random
import time
from typing import Sized, cast
import unittest
import cereal.messaging as messaging
from cereal.messaging.tests.test_messaging import events, random_sock, random_socks, \
@@ -10,9 +8,9 @@ from cereal.messaging.tests.test_messaging import events, random_sock, random_so
zmq_sleep
class TestSubMaster(unittest.TestCase):
class TestSubMaster:
def setUp(self):
def setup_method(self):
# ZMQ pub socket takes too long to die
# sleep to prevent multiple publishers error between tests
zmq_sleep(3)
@@ -21,21 +19,21 @@ class TestSubMaster(unittest.TestCase):
sm = messaging.SubMaster(events)
for p in [sm.updated, sm.recv_time, sm.recv_frame, sm.alive,
sm.sock, sm.data, sm.logMonoTime, sm.valid]:
self.assertEqual(len(cast(Sized, p)), len(events))
assert len(cast(Sized, p)) == len(events)
def test_init_state(self):
socks = random_socks()
sm = messaging.SubMaster(socks)
self.assertEqual(sm.frame, -1)
self.assertFalse(any(sm.updated.values()))
self.assertFalse(any(sm.alive.values()))
self.assertTrue(all(t == 0. for t in sm.recv_time.values()))
self.assertTrue(all(f == 0 for f in sm.recv_frame.values()))
self.assertTrue(all(t == 0 for t in sm.logMonoTime.values()))
assert sm.frame == -1
assert not any(sm.updated.values())
assert not any(sm.alive.values())
assert all(t == 0. for t in sm.recv_time.values())
assert all(f == 0 for f in sm.recv_frame.values())
assert all(t == 0 for t in sm.logMonoTime.values())
for p in [sm.updated, sm.recv_time, sm.recv_frame, sm.alive,
sm.sock, sm.data, sm.logMonoTime, sm.valid]:
self.assertEqual(len(cast(Sized, p)), len(socks))
assert len(cast(Sized, p)) == len(socks)
def test_getitem(self):
sock = "carState"
@@ -59,8 +57,8 @@ class TestSubMaster(unittest.TestCase):
msg = messaging.new_message(sock)
pub_sock.send(msg.to_bytes())
sm.update(1000)
self.assertEqual(sm.frame, i)
self.assertTrue(all(sm.updated.values()))
assert sm.frame == i
assert all(sm.updated.values())
def test_update_timeout(self):
sock = random_sock()
@@ -70,9 +68,9 @@ class TestSubMaster(unittest.TestCase):
start_time = time.monotonic()
sm.update(timeout)
t = time.monotonic() - start_time
self.assertGreaterEqual(t, timeout/1000.)
self.assertLess(t, 5)
self.assertFalse(any(sm.updated.values()))
assert t >= timeout/1000.
assert t < 5
assert not any(sm.updated.values())
def test_avg_frequency_checks(self):
for poll in (True, False):
@@ -118,12 +116,12 @@ class TestSubMaster(unittest.TestCase):
pub_sock.send(msg.to_bytes())
time.sleep(0.01)
sm.update(1000)
self.assertEqual(sm[sock].vEgo, n)
assert sm[sock].vEgo == n
class TestPubMaster(unittest.TestCase):
class TestPubMaster:
def setUp(self):
def setup_method(self):
# ZMQ pub socket takes too long to die
# sleep to prevent multiple publishers error between tests
zmq_sleep(3)
@@ -156,8 +154,4 @@ class TestPubMaster(unittest.TestCase):
if capnp:
msg.clear_write_flag()
msg = msg.to_bytes()
self.assertEqual(msg, recvd, i)
if __name__ == "__main__":
unittest.main()
assert msg == recvd, i

13
cereal/messaging/tests/test_services.py Executable file → Normal file
View File

@@ -1,26 +1,21 @@
#!/usr/bin/env python3
import os
import tempfile
from typing import Dict
import unittest
from parameterized import parameterized
import cereal.services as services
from cereal.services import SERVICE_LIST
class TestServices(unittest.TestCase):
class TestServices:
@parameterized.expand(SERVICE_LIST.keys())
def test_services(self, s):
service = SERVICE_LIST[s]
self.assertTrue(service.frequency <= 104)
self.assertTrue(service.decimation != 0)
assert service.frequency <= 104
assert service.decimation != 0
def test_generated_header(self):
with tempfile.NamedTemporaryFile(suffix=".h") as f:
ret = os.system(f"python3 {services.__file__} > {f.name} && clang++ {f.name}")
self.assertEqual(ret, 0, "generated services header is not valid C")
if __name__ == "__main__":
unittest.main()
assert ret == 0, "generated services header is not valid C"

View File

@@ -16,13 +16,13 @@ _services: dict[str, tuple] = {
"gyroscope2": (True, 100., 100),
"accelerometer": (True, 104., 104),
"accelerometer2": (True, 100., 100),
"magnetometer": (True, 25., 25),
"magnetometer": (True, 25.),
"lightSensor": (True, 100., 100),
"temperatureSensor": (True, 2., 200),
"temperatureSensor2": (True, 2., 200),
"gpsNMEA": (True, 9.),
"deviceState": (True, 2., 1),
"can": (True, 100., 1223), # decimation gives ~5 msgs in a full segment
"can": (True, 100., 2053), # decimation gives ~3 msgs in a full segment
"controlsState": (True, 100., 10),
"pandaStates": (True, 10., 1),
"peripheralState": (True, 2., 1),
@@ -38,7 +38,7 @@ _services: dict[str, tuple] = {
"carState": (True, 100., 10),
"carControl": (True, 100., 10),
"carOutput": (True, 100., 10),
"longitudinalPlan": (True, 20., 5),
"longitudinalPlan": (True, 20., 10),
"procLog": (True, 0.5, 15),
"gpsLocationExternal": (True, 10., 10),
"gpsLocation": (True, 1., 1),
@@ -47,9 +47,10 @@ _services: dict[str, tuple] = {
"gnssMeasurements": (True, 10., 10),
"clocks": (True, 0.1, 1),
"ubloxRaw": (True, 20.),
"liveLocationKalman": (True, 20., 5),
"livePose": (True, 20., 4),
"liveLocationKalman": (True, 20.),
"liveParameters": (True, 20., 5),
"cameraOdometry": (True, 20., 5),
"cameraOdometry": (True, 20., 10),
"lateralPlanDEPRECATED": (True, 20., 5),
"thumbnail": (True, 0.2, 1),
"onroadEvents": (True, 1., 1),

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

@@ -24,8 +24,8 @@ int fsync_dir(const std::string &path) {
int result = -1;
int fd = HANDLE_EINTR(open(path.c_str(), O_RDONLY, 0755));
if (fd >= 0) {
result = fsync(fd);
close(fd);
result = HANDLE_EINTR(fsync(fd));
HANDLE_EINTR(close(fd));
}
return result;
}
@@ -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

@@ -47,9 +47,9 @@ class DeviceCameraConfig:
yield cam, getattr(self, cam)
_ar_ox_fisheye = CameraConfig(1928, 1208, 567.0) # focal length probably wrong? magnification is not consistent across frame
_os_fisheye = CameraConfig(2688, 1520, 567.0 / 2 * 3)
_os_fisheye = CameraConfig(2688 // 2, 1520 // 2, 567.0 / 4 * 3)
_ar_ox_config = DeviceCameraConfig(CameraConfig(1928, 1208, 2648.0), _ar_ox_fisheye, _ar_ox_fisheye)
_os_config = DeviceCameraConfig(CameraConfig(2688, 1520, 2648.0 * 2 / 3), _os_fisheye, _os_fisheye)
_os_config = DeviceCameraConfig(CameraConfig(2688 // 2, 1520 // 2, 1522.0 * 3 / 4), _os_fisheye, _os_fisheye)
_neo_config = DeviceCameraConfig(CameraConfig(1164, 874, 910.0), CameraConfig(816, 612, 650.0), _NoneCameraConfig())
DEVICE_CAMERAS = {

View File

@@ -4,7 +4,7 @@
A supported vehicle is one that just works when you install a comma device. All supported cars provide a better experience than any stock system. Supported vehicles reference the US market unless otherwise specified.
# 288 Supported Cars
# 287 Supported Cars
|Make|Model|Supported Package|ACC|No ACC accel below|No ALC below|Steering Torque|Resume from stop|<a href="##"><img width=2000></a>Hardware Needed<br>&nbsp;|Video|
|---|---|---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
@@ -25,8 +25,7 @@ A supported vehicle is one that just works when you install a comma device. All
|Chrysler|Pacifica 2017-18|Adaptive Cruise Control (ACC)|Stock|0 mph|9 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 FCA connector<br>- 1 RJ45 cable (7 ft)<br>- 1 comma 3X<br>- 1 comma power v2<br>- 1 harness box<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Chrysler&model=Pacifica 2017-18">Buy Here</a></sub></details>||
|Chrysler|Pacifica 2019-20|Adaptive Cruise Control (ACC)|Stock|0 mph|39 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 FCA connector<br>- 1 RJ45 cable (7 ft)<br>- 1 comma 3X<br>- 1 comma power v2<br>- 1 harness box<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Chrysler&model=Pacifica 2019-20">Buy Here</a></sub></details>||
|Chrysler|Pacifica 2021-23|All|Stock|0 mph|39 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 FCA connector<br>- 1 RJ45 cable (7 ft)<br>- 1 comma 3X<br>- 1 comma power v2<br>- 1 harness box<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Chrysler&model=Pacifica 2021-23">Buy Here</a></sub></details>||
|Chrysler|Pacifica Hybrid 2017|Adaptive Cruise Control (ACC)|Stock|0 mph|9 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 FCA connector<br>- 1 RJ45 cable (7 ft)<br>- 1 comma 3X<br>- 1 comma power v2<br>- 1 harness box<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Chrysler&model=Pacifica Hybrid 2017">Buy Here</a></sub></details>||
|Chrysler|Pacifica Hybrid 2018|Adaptive Cruise Control (ACC)|Stock|0 mph|9 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 FCA connector<br>- 1 RJ45 cable (7 ft)<br>- 1 comma 3X<br>- 1 comma power v2<br>- 1 harness box<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Chrysler&model=Pacifica Hybrid 2018">Buy Here</a></sub></details>||
|Chrysler|Pacifica Hybrid 2017-18|Adaptive Cruise Control (ACC)|Stock|0 mph|9 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 FCA connector<br>- 1 RJ45 cable (7 ft)<br>- 1 comma 3X<br>- 1 comma power v2<br>- 1 harness box<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Chrysler&model=Pacifica Hybrid 2017-18">Buy Here</a></sub></details>||
|Chrysler|Pacifica Hybrid 2019-24|Adaptive Cruise Control (ACC)|Stock|0 mph|39 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 FCA connector<br>- 1 RJ45 cable (7 ft)<br>- 1 comma 3X<br>- 1 comma power v2<br>- 1 harness box<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Chrysler&model=Pacifica Hybrid 2019-24">Buy Here</a></sub></details>||
|comma|body|All|openpilot|0 mph|0 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|None||
|CUPRA|Ateca 2018-23|Adaptive Cruise Control (ACC) & Lane Assist|openpilot available[<sup>1,12</sup>](#footnotes)|0 mph|0 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 USB-C coupler<br>- 1 VW J533 connector<br>- 1 comma 3X<br>- 1 harness box<br>- 1 long OBD-C cable<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=CUPRA&model=Ateca 2018-23">Buy Here</a></sub></details>||

View File

@@ -1,3 +1,26 @@
# openpilot-docs
# openpilot docs
These docs are autogenerated from [this folder](https://github.com/commaai/openpilot/tree/master/docs) in the main openpilot repository.
This is the source for [docs.comma.ai](https://docs.comma.ai).
The site is updated on pushes to master by this [workflow](../.github/workflows/docs.yaml).
## Development
NOTE: Those commands must be run in the root directory of openpilot, **not /docs**
**1. Install the docs dependencies**
``` bash
pip install .[docs]
```
**2. Build the new site**
``` bash
mkdocs build
```
**3. Run the new site locally**
``` bash
mkdocs serve
```
References:
* https://www.mkdocs.org/getting-started/
* https://github.com/ntno/mkdocs-terminal

View File

@@ -29,7 +29,7 @@ pytest
cd system/loggerd && pytest .
# run the linter
pre-commit run --all
op lint
```
## Testing

View File

@@ -0,0 +1,22 @@
# What is a car port?
A car port enables openpilot support on a particular car. Each car model openpilot supports needs to be individually ported. All car ports live in `openpilot/selfdrive/car/`.
The complexity of a car port varies depending on many factors including:
* existing openpilot support for similar cars
* architecture and APIs available in the car
# Structure of a car port
* `interface.py`: Interface for the car, defines the CarInterface class
* `carstate.py`: Reads CAN from car and builds openpilot CarState message
* `carcontroller.py`: Builds CAN messages to send to car
* `values.py`: Limits for actuation, general constants for cars, and supported car documentation
* `radar_interface.py`: Interface for parsing radar points from the car
# Overiew
[Jason Young](https://github.com/jyoung8607) gave a talk at COMMA_CON with an overview of the car porting process. The talk is available on YouTube:
https://youtu.be/KcfzEHB6ms4?si=5szh1PX6TksOCKmM

View File

@@ -0,0 +1,8 @@
# openpilot glossary
* **route**:
* **segment**: routes are split into one minute chunks called segments.
* **panda**: this is . See the repo.
* **onroad**:
* **offroad**:
* **comma 3X**:

View File

@@ -1,10 +1,8 @@
# loggerd
# Logging
openpilot records routes in one minute chunks called segments. A route starts on the rising edge of ignition and ends on the falling edge.
Check out our [python library](https://github.com/commaai/openpilot/blob/master/tools/lib/logreader.py) for reading openpilot logs. Also checkout our [tools](https://github.com/commaai/openpilot/tree/master/tools) to replay and view your data. These are the same tools we use to debug and develop openpilot.
## log types
Check out our [Python library](https://github.com/commaai/openpilot/blob/master/tools/lib/logreader.py) for reading openpilot logs. Also checkout our [tools](https://github.com/commaai/openpilot/tree/master/tools) to replay and view your data. These are the same tools we use to debug and develop openpilot.
For each segment, openpilot records the following log types:
@@ -15,9 +13,10 @@ rlogs contain all the messages passed amongst openpilot's processes. See [cereal
## {f,e,d}camera.hevc
Each camera stream is H.265 encoded and written to its respective file.
* fcamera.hevc is the road camera
* ecamera.hevc is the wide road camera
* dcamera.hevc is the driver camera
* `fcamera.hevc` is the road camera
* `ecamera.hevc` is the wide road camera
* `dcamera.hevc` is the driver camera
## qlog.bz2 & qcamera.ts

1
docs/concepts/safety.md Symbolic link
View File

@@ -0,0 +1 @@
../SAFETY.md

View File

@@ -0,0 +1 @@
# Architecture

View File

@@ -0,0 +1,30 @@
# Roadmap
This is the roadmap for the next major openpilot releases. Also check out
* [Milestones](https://github.com/commaai/openpilot/milestones) for minor releases
* [Projects](https://github.com/commaai/openpilot/projects?query=is%3Aopen) for shorter-term projects not tied to releases
* [Bounties](https://comma.ai/bounties) for paid individual issues
## openpilot 0.10
openpilot 0.10 will be the first release with a driving policy trained in
a [learned simulator](https://youtu.be/EqQNZXqzFSI).
* Driving model trained in a learned simlator
* Always-on driver monitoring (behind a toggle)
* GPS removed from the driving stack
* 100KB qlogs
* `master-ci` pushed after 1000 hours of hardware-in-the-loop testing
* Car interface code moved into [opendbc](https://github.com/commaai/opendbc)
* openpilot on PC for Linux x86, Linux arm64, and Mac (Apple Silicon)
## openpilot 1.0
openpilot 1.0 will feature a fully end-to-end driving policy.
* End-to-end longitudinal control in Chill mode
* Automatic Emergency Braking (AEB)
* Driver monitoring with sleep detection
* Rolling updates/releases pushed out by CI
* [panda safety 1.0](https://github.com/orgs/commaai/projects/27)

View File

@@ -1,6 +1,6 @@
# What is openpilot?
[openpilot](http://github.com/commaai/openpilot) is an open source driver assistance system. Currently, openpilot performs the functions of Adaptive Cruise Control (ACC), Automated Lane Centering (ALC), Forward Collision Warning (FCW), and Lane Departure Warning (LDW) for a growing variety of [supported car makes, models, and model years](docs/CARS.md). In addition, while openpilot is engaged, a camera-based Driver Monitoring (DM) feature alerts distracted and asleep drivers. See more about [the vehicle integration](docs/INTEGRATION.md) and [limitations](docs/LIMITATIONS.md).
[openpilot](http://github.com/commaai/openpilot) is an open source driver assistance system. Currently, openpilot performs the functions of Adaptive Cruise Control (ACC), Automated Lane Centering (ALC), Forward Collision Warning (FCW), and Lane Departure Warning (LDW) for a growing variety of [supported car makes, models, and model years](https://github.com/commaai/openpilot/blob/master/docs/CARS.md). In addition, while openpilot is engaged, a camera-based Driver Monitoring (DM) feature alerts distracted and asleep drivers. See more about [the vehicle integration](https://github.com/commaai/openpilot/blob/master/docs/INTEGRATION.md) and [limitations](https://github.com/commaai/openpilot/blob/master/docs/LIMITATIONS.md).
## How do I use it?

View File

@@ -1,39 +1,42 @@
# SSH
# connect to a comma 3/3X
## Quick Start
A comma 3/3X is a normal [Linux](https://github.com/commaai/agnos-builder) computer that exposes [SSH](https://wiki.archlinux.org/title/Secure_Shell) and a [serial console](https://wiki.archlinux.org/title/Working_with_the_serial_console).
## Serial Console
On both the comma three and 3X, the serial console is accessible from the main OBD-C port.
Connect the comma 3/3X to your computer with a normal USB C cable, or use a [comma serial](https://comma.ai/shop/comma-serial) for steady 12V power.
On the comma three, the serial console is exposed through a UART-to-USB chip, and `tools/serial/connect.sh` can be used to connect.
On the comma 3X, the serial console is accessible through the [panda](https://github.com/commaai/panda) using the `panda/tests/som_debug.sh` script.
## SSH
In order to SSH into your device, you'll need a GitHub account with SSH keys. See this [GitHub article](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh) for getting your account setup with SSH keys.
* Enable SSH in your device's settings
* Enter your GitHub username in the device's settings
* Connect to your device
* Username: `comma`
* Port: `22` or `8022`
* Username: `comma`
* Port: `22`
Here's an example command for connecting to your device using its tethered connection:<br />
`ssh comma@192.168.43.1`
For doing development work on device, it's recommended to use [SSH agent forwarding](https://docs.github.com/en/developers/overview/using-ssh-agent-forwarding).
## Notes
### Notes
The public keys are only fetched from your GitHub account once. In order to update your device's authorized keys, you'll need to re-enter your GitHub username.
The `id_rsa` key in this directory only works while your device is in the setup state with no software installed. After installation, that default key will be removed.
See the [community wiki](https://github.com/commaai/openpilot/wiki/SSH) for more detailed instructions and information.
#### ssh.comma.ai proxy
# Connecting to ssh.comma.ai
SSH into your comma device from anywhere with `ssh.comma.ai`. Requires a [comma prime subscription](https://comma.ai/connect).
With a [comma prime subscription](https://comma.ai/connect), you can SSH into your comma device from anywhere.
## Setup
With software version 0.6.1 or newer, enter your GitHub username on your device under Developer Settings. Your GitHub authorized public keys will become your authorized SSH keys for `ssh.comma.ai`. You can add any additional keys in `/system/comma/home/.ssh/authorized_keys.persist`.
## Recommended .ssh/config
With the below SSH configuration, you can type `ssh comma-{dongleid}` to connect to your device through `ssh.comma.ai`.<br />
For example: `ssh comma-ffffffffffffffff`
With the below SSH configuration, you can type `ssh comma-{dongleid}` to connect to your device through `ssh.comma.ai`.
```
Host comma-*
@@ -41,20 +44,21 @@ Host comma-*
User comma
IdentityFile ~/.ssh/my_github_key
ProxyCommand ssh %h@ssh.comma.ai -W %h:%p
Host ssh.comma.ai
Hostname ssh.comma.ai
Port 22
IdentityFile ~/.ssh/my_github_key
```
## One-off connection
### One-off connection
```
ssh -i ~/.ssh/my_github_key -o ProxyCommand="ssh -i ~/.ssh/my_github_key -W %h:%p -p %p %h@ssh.comma.ai" comma@ffffffffffffffff
```
(Replace `ffffffffffffffff` with your dongle_id)
## ssh.comma.ai host key fingerprint
### ssh.comma.ai host key fingerprint
```
Host key fingerprint is SHA256:X22GOmfjGb9J04IA2+egtdaJ7vW9Fbtmpz9/x8/W1X4

View File

@@ -0,0 +1,14 @@
# Replay
Replaying is a critical tool for openpilot development and debugging.
## Replaying a route
*Hardware required: none*
Just run `tools/replay/replay --demo`.
## Replaying CAN data
*Hardware required: jungle and comma 3/3X*
1. Connect your PC to a jungle.
2.

View File

@@ -0,0 +1,98 @@
# Turn the speed blue
*A getting started guide for openpilot development*
In 30 minutes, we'll get an openpilot development environment setup on your computer and make some changes to openpilot's UI.
And if you have a comma 3/3X, we'll deploy the change to your device for testing.
## 1. Setup your development environment
Run this to clone openpilot and install all the dependencies:
```bash
curl -fsSL openpilot.comma.ai | bash
```
Navigate to openpilot folder & activate a Python virtual environment
```bash
cd openpilot
source .venv/bin/activate
```
Then, compile openpilot:
```bash
scons -j8
```
## 2. Run replay
We'll run the `replay` tool with the demo route to get data streaming for testing our UI changes.
```bash
# in terminal 1
tools/replay/replay --demo
# in terminal 2
selfdrive/ui/ui
```
The openpilot UI should launch and show a replay of the demo route.
If you have your own comma device, you can replace `--demo` with one of your own routes from comma connect.
## 3. Make the speed blue
Search for “mph” with git grep in the `ui` folder.
```bash
$ git grep "mph" selfdrive/ui/
paint.cc: ui_draw_text(s, s->fb_w/2, 290, s->scene.is_metric ? "km/h" : "mph", 36 * 2.5, COLOR_WHITE_ALPHA(200), "sans-regular");
```
The line right above contains the actual speed. Unfortunately, COLOR_BLUE isnt defined, but a git grep of COLOR_WHITE shows its nvgRGBA(255, 255, 255, 255). Personally, I like a lighter blue, so I went with #8080FF.
```bash
$ git diff
diff --git a/selfdrive/ui/paint.cc b/selfdrive/ui/paint.cc
index 821d95115..cc996eaa1 100644
--- a/selfdrive/ui/paint.cc
+++ b/selfdrive/ui/paint.cc
@@ -175,8 +175,8 @@ static void ui_draw_vision_speed(UIState *s) {
const float speed = std::max(0.0, (*s->sm)["carState"].getCarState().getVEgo() * (s->scene.is_metric ? 3.6 : 2.2369363));
const std::string speed_str = std::to_string((int)std::nearbyint(speed));
nvgTextAlign(s->vg, NVG_ALIGN_CENTER | NVG_ALIGN_BASELINE);
- ui_draw_text(s, s->fb_w/2, 210, speed_str.c_str(), 96 * 2.5, COLOR_WHITE, "sans-bold");
- ui_draw_text(s, s->fb_w/2, 290, s->scene.is_metric ? "km/h" : "mph", 36 * 2.5, COLOR_WHITE_ALPHA(200), "sans-regular");
+ ui_draw_text(s, s->fb_w/2, 210, speed_str.c_str(), 96 * 2.5, nvgRGBA(128, 128, 255, 255), "sans-bold");
+ ui_draw_text(s, s->fb_w/2, 290, s->scene.is_metric ? "km/h" : "mph", 36 * 2.5, nvgRGBA(128, 128, 255, 200), "sans-regular");
}
static void ui_draw_vision_event(UIState *s) {
```
## 4. Rebuild UI, and admire your work
```
scons -j8 && selfdrive/ui/ui
```
![](https://blog.comma.ai/img/blue_speed_ui.png)
## 5. Push your fork to GitHub
Click fork on GitHub. Then, push with:
```bash
git remote rm origin
git remote add origin git@github.com:<your-github-username>/openpilot.git
git add .
git commit -m "Make the speed blue."
git push --set-upstream origin master
```
## 6. Run your fork on device in your car!
Uninstall openpilot from your device through the settings. Then, enter the URL for your very own installer:
```
installer.comma.ai/<your-github-username>/master
```
## 7. Admire your work IRL
![](https://blog.comma.ai/img/c3_blue_ui.jpg)

1
docs/index.md Symbolic link
View File

@@ -0,0 +1 @@
getting-started/what-is-openpilot.md

View File

@@ -1,12 +0,0 @@
This is the source for a new https://docs.comma.ai. It's not hosted anywhere yet, but it's easy to run locally.
https://www.mkdocs.org/getting-started/
```
pip install mkdocs mkdocs-terminal
mkdocs serve
```
inspiration:
* https://rerun.io/docs/
* https://docs.expo.dev/

View File

@@ -1,9 +0,0 @@
# What is a car port?
All car ports live in `openpilot/selfdrive/car/`.
* interface.py: Interface for the car, defines the CarInterface class
* carstate.py: Reads CAN from car and builds openpilot CarState message
* carcontroller.py: Builds CAN messages to send to car
* values.py: Limits for actuation, general constants for cars, and supported car documentation
* radar_interface.py: Interface for parsing radar points from the car

View File

@@ -1,4 +0,0 @@
This section is for how-to's on common workflows.
They'll be like this blog post we wrote:
https://blog.comma.ai/turning-the-speed-blue/

View File

@@ -1,18 +0,0 @@
site_name: openpilot docs
docs_dir: docs
repo_url: https://github.com/commaai/openpilot/
theme:
name: terminal
features:
- navigation.side.toc.hide
nav:
- Getting Started:
- What is openpilot?: getting-started/what-is-openpilot.md
- How-to:
- Turn the speed blue: how-to/turning-the-speed-blue.md
- Car Porting:
- What is a car port?: car-porting/what-is-a-car-port.md
- Porting a car brand: car-porting/brand-port.md
- Porting a car model: car-porting/model-port.md

Binary file not shown.

965
docs_sp/CHANGELOGS.md Normal file
View File

@@ -0,0 +1,965 @@
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)
========================
* New driving model
* Inputs the past curvature for smoother and more accurate lateral control
* Simplified neural network architecture in the model's last layers
* Minor fixes to desire augmentation and weight decay
* New driver monitoring model
* Improved end-to-end bit for phone detection
* Adjust driving personality with the follow distance button
* Support for hybrid variants of supported Ford models
* Fingerprinting without the OBD-II port on all cars
* Improved fuzzy fingerprinting for Ford and Volkswagen
************************
* UPDATED: Synced with commaai's openpilot
* master commit f8cb04e (June 10, 2024)
* NEW❗: sunnylink (Alpha early access)
* NEW❗: Config/Settings Backup
* Remotely back up and restore sunnypilot settings easily
* Device registration with sunnylink ensures a secure, integrated experience across services
* AES encryption derived from the device's RSA private key is used for utmost security
* Settings are encrypted on-device, transmitted securely via HTTPS, and stored encrypted on sunnylink
* Prevents loss of settings after device resets, offering peace of mind through end-to-end encryption
* Early alpha access to all current and previous GitHub Sponsors and Patreon supporters
* GitHub account pairing from device settings scanning QR code
* Pairing your account will allow you to access features via our API (still WIP but accessible if you dig a little on our code 😉)
* Allow inheritance of your sponsorship status, allowing you to get extra features and early access whenever applicable
* NEW❗: iOS Siri Shortcuts Navigation support thanks to twilsonco and mike86437!
* iOS and macOS Shortcuts to quickly set navigation destinations from your iOS device
* comma Prime support
* Personal Mapbox/Amap/Google Maps token support
* Instructions on how to set up your iOS Siri Shortcuts: https://routinehub.co/shortcut/17677/
* NEW❗: Forced Offroad mode
* Force sunnypilot in the offroad state even when the car is on
* When Forced Offroad mode is on, allows changing offroad-only settings even when the car is turned on
* To engage/disengage Force Offroad, go to Settings -> Device panel
* UPDATED: Auto Lane Change Timer -> Auto Lane Change by Blinker
* NEW❗: New "Off" option to disable lane change by blinker
* UPDATED: Pause Lateral Below Speed with Blinker
* NEW❗: Customizable Pause Lateral Speed
* Pause lateral actuation with blinker when traveling below the desired speed selected. Default is 20 MPH or 32 km/h.
* UPDATED: Hyundai CAN Longitudinal
* Auto-enable radar tracks on platforms with applicable Mando radar
* UPDATED: Hyundai CAN-FD Camera-based SCC
* NEW❗: Parse lead info for camera-based SCC platforms with longitudinal support
* Improve lead tracking when using openpilot longitudinal
* RE-ENABLED: Map-based Turn Speed Control (M-TSC) for supported platforms
* openpilot Longitudinal Control available cars
* Custom Stock Longitudinal Control available cars
* UPDATED: Continued support for comma Pedal
* In response to the official deprecation of support for comma Pedal in the upstream, sunnypilot will continue maintaining software support for comma Pedal
* UPDATED: Driving Model Selector v4
* NEW❗: Driving Model additions
* North Dakota (April 29, 2024) - NDv2
* WD40 (April 09, 2024) - WD40
* Duck Amigo (March 18, 2024) - DA
* Recertified Herbalist (March 01, 2024) - CHLR
* Legacy Driving Models with Navigate on openpilot (NoO) support
* Includes Duck Amigo and all preceding models
* UPDATED: Bumping mapd by [@pfeiferj](https://github.com/pfeiferj) to version [v1.9.0](https://github.com/pfeiferj/mapd/releases/tag/v1.9.0) thanks to pfeiferj!
* UPDATED: Reset Mapbox Access Token -> Reset Access Tokens for Map Services
* Reset self-service access tokens for Mapbox, Amap, and Google Maps
* UPDATED: Upstream native support for Gap Adjust Cruise
* UPDATED: Neural Network Lateral Control (NNLC)
* Due to upstream changes with platform simplifications, most platforms will match and fallback to combined platform model
* This will be updated when the new mapping of platforms are restructured (thanks @twilsonco 😉)
* UI Updates
* Display Metrics Below Chevron
* NEW❗: Metrics is now being displayed below the chevron instead of above
* NEW❗: Display both Distance and Speed simultaneously
* NEW❗: View sunnylink connectivity status on the left sidebar!
sunnypilot - 0.9.6.2 (2024-05-29)
========================
* REMOVED: Screen Recorder
* Screen Recorder is removed due to unnecessary resource usage
* An improved version will be available in the near future. Stay tuned!
sunnypilot - 0.9.6.1 (2024-02-27)
========================
* New driving model
* Vision model trained on more data
* Improved driving performance
* Directly outputs curvature for lateral control
* New driver monitoring model
* Trained on larger dataset
* AGNOS 9
* comma body streaming and controls over WebRTC
* Improved fuzzy fingerprinting for many makes and models
* Alpha longitudinal support for new Toyota models
* Chevrolet Equinox 2019-22 support thanks to JasonJShuler and nworb-cire!
* Dodge Durango 2020-21 support
* Hyundai Staria 2023 support thanks to sunnyhaibin!
* Kia Niro Plug-in Hybrid 2022 support thanks to sunnyhaibin!
* Lexus LC 2024 support thanks to nelsonjchen!
* Toyota RAV4 2023-24 support
* Toyota RAV4 Hybrid 2023-24 support
************************
* UPDATED: Synced with commaai's openpilot
* master commit db57a21 (February 22, 2024)
* v0.9.6 release (February 27, 2024)
* UPDATED: Dynamic Experimental Control (DEC)
* Synced with dragonpilot-community/dragonpilot:beta3 commit f4ee52f
* NEW❗: Default Driving Model: Certified Herbalist v2 (February 13, 2024)
* UPDATED: Driving Model Selector v3
* NEW❗: Driving Model additions
* Certified Herbalist v2 (February 13, 2024) - CHv2
* Certified Herbalist (February 5, 2024) - CH
* Los Angeles v2 (January 24, 2024) - LAv2
* Los Angeles (January 22, 2024) - LAv1
* NEW❗: Model Caching thanks to DevTekVE!
* Model caching allows the selection of previously downloaded Driving Model
* Users can now access cached versions of selected models, eliminating redundant downloads for previously fetched models
* Legacy Driving Models support
* New Delhi (December 21, 2023) - ND
* Blue Diamond v2 (December 11, 2023) - BDv2
* Blue Diamond (November 18, 2023) - BDv1
* Farmville (November 7, 2023) - FV
* Night Strike (October 3, 2023) - NS
* Certain features are deprecated with newer Driving Models
* Dynamic Lane Profile (DLP)
* Custom Offsets
* UPDATED: Dynamic Lane Profile (DLP)
* Continued support for Legacy Driving Models (e.g., ND, BDv2, BDv1, FV, NS)
* Deprecated support for newer Driving Models (e.g., CHv2, CH, LAv2, LAv1)
* UPDATED: Custom Offsets
* Continued support for Legacy Driving Models (e.g., ND, BDv2, BDv1, FV, NS)
* Deprecated support for newer Driving Models (e.g., CHv2, CH, LAv2, LAv1)
* UPDATED: Hyundai/Kia/Genesis - ESCC Radar Interceptor
* Message parsing improvements with the latest firmware update: https://github.com/sunnypilot/panda/tree/test-escc-smdps
* UI Updates
* NEW❗: Visuals: Display Feature Status toggle
* Display the statuses of certain features on the driving screen
* NEW❗: Visuals: Enable Onroad Settings toggle
* Display the Onroad Settings button on the driving screen to adjust feature options on the driving screen, without navigating into the settings menu
* REMOVED: "Device ambient" temperature option on the sidebar
* FIXED: New comma 3X support
* FIXED: New comma eSIM support
* Bug fixes and performance improvements
sunnypilot - 0.9.5.3 (2023-12-24)
========================
* UPDATED: Dynamic Experimental Control (DEC)
* Synced with dragonpilot-community/dragonpilot:lp-dp-beta2 commit 578d38b
* UPDATED: Driving Model Selector v2
* Driving models sort in descending order based on availability date
* Experimental/unmerged driving models are only available in "dev-c3" branch
* To select and use experimental driving models, navigate to "Software" panel, select the "dev-c3" branch, and check for update
* UPDATED: Vision-based Turn Speed Control (V-TSC) implementation
* Refactored implementation thanks to pfeiferj!
* More accurate and consistent velocity calculation to achieve smoother longitudinal control in curves
* NEW❗: Speed Limit Warning
* Display alert and/or chime to warn the driver when the cruising speed is faster than the speed limit plus the Warning Offset
* Customizable Warning Offset, independent of Speed Limit Control (SLC)'s Limit Offset
* UPDATED: Speed Limit Source Policy
* Selectable speed limit source for Speed Limit Control and Speed Limit Warning
* Applicable to: Speed Limit Control, Speed Limit Warning
* UPDATED: Speed Limit Control (SLC)
* Engage Mode: Removed "Warning Only" mode - this has been replaced by the new Speed Limit Warning sub-menu
* UPDATED: OpenStreetMap (OSM) implementation
* Refactored implementation thanks to pfeiferj!
* Less resource impact
* Significantly smaller sizes with databases
* All regions are available to download
* Weekly map updates thanks to pfeiferj!
* Increased the font size of the road name
* C3X-specific changes
* Altitude (ALT.) display on Developer UI
* Current street name on top of driving screen when "OSM Debug UI" is enabled
* UPDATED: Map-based Turn Speed Control (M-TSC) implementation
* Only available in "staging-c3" and "dev-c3" branches. If you are using "release-c3" branch, navigate to "Software" panel, select the desired target branch, and check for update
* Refactored implementation thanks to pfeiferj!
* Based on the new OpenStreetMap implementation
* Improved predicted curvature calculations from OpenStreetMap data
* UI updates
* RE-ENABLED: Navigation: Full screen support
* Display the map view in full screen
* To switch back to driving view, tap on the border edge
* Hyundai Bayon Non-SCC 2019 support thanks to polein78!
sunnypilot - 0.9.5.2 (2023-12-07)
========================
* NEW❗: MADS: Allow Navigate on openpilot in Chill Mode
* Allow navigation to feed map view into the driving model while using Chill Mode
* Support all platforms, including platforms that do not support openpilot longitudinal control & Experimental Mode
* NEW❗: Neural Network Lateral Controller
* Formerly known as "NNFF", this replaces the lateral "torque" controller with one using a neural network trained on each car's (actually, each separate EPS firmware) driving data for increased controls accuracy
* Contact @twilsonco in the sunnypilot Discord server with feedback, or to provide log data for your car if your car is currently unsupported
* NEW❗: Driving Model Selector
* Easily switch between driving models without reinstalling branches. Offering immediate access to the latest models upon release
* An internet connection is required for downloading models. Each model switch currently involves downloading the model again. Future updates may allow for offline switching
* Warning is displayed for metered connections to avoid unexpected data usage if on cellular data
* Change driving models via **Settings -> Software -> Current Driving Model**.
* NEW❗: Hyundai CAN longitudinal:
* NEW❗: Enable radar tracks for certain Santa Fe platforms
* Internal Combustion Engine (ICE) 2021-23
* Hybrid 2022-23
* Plug-in Hybrid 2022-23
* NEW❗: Lane Change: When manually braking with steering engaged, turning on the turn signal will default to Nudge mode
* Volkswagen MQB CC only platforms (radar or no radar) support thanks to jyoung8607!
sunnypilot - 0.9.5.1 (2023-11-17)
========================
* UPDATED: Synced with commaai's master commit e94c3c5
* NEW❗: Farmville driving model
* NEW❗: Onroad Settings Panel
* Onroad buttons (i.e., DLP, GAC) moved to its dedicated panel
* Driving Personality
* Dynamic Lane Profile (DLP)
* Dynamic Experimental Control (DEC)
* Speed Limit Control (SLC)
* NEW❗: Display main feature status on onroad view in real-time
* GAP - Driving Personality
* DLP - Dynamic Lane Profile
* DEC - Dynamic Experimental Control
* SLC - Speed Limit Control
* NEW❗: Dynamic Experimental Control (DEC) thanks to dragonpilot-community!
* Automatically determines and selects between openpilot ACC and openpilot End to End longitudinal based on conditions for a more natural drive
* Dynamic Experimental Control is only active while in Experimental Mode
* When Dynamic Experimental Control is ON, initially setting cruise speed will set to the vehicle's current speed
* NEW❗: Hyundai CAN longitudinal:
* NEW❗: Parse lead info for camera-based SCC platforms
* Improve lead tracking when using openpilot longitudinal
* NEW❗: Parse lead distance to display on car cluster
* Introduced better lead distance calculation to display on the car's cluster, replacing the binary "lead visible" indication on the SCC cluster
* Lead distance is now categorized into different ranges for more detailed and comprehensive information to the driver similar to how stock ACC does it
* NEW❗: Parse speed limit sign recognition from camera for certain supported platforms
* NEW❗: Subaru - Stop and Go auto-resume support thanks to martinl!
* Global (excluding Gen 2 and Hybrid) and Pre-Global support
* NEW❗: Toyota - Stop and Go hack
* Allow some Toyota/Lexus cars to auto resume during stop and go traffic
* Only applicable to certain models and model years
* NEW❗: Toyota: ZSS support thanks to dragonpilot-community and ErichMoraga!
* NEW❗: MSPA (Cereal structs refactor)
* Make sunnypilot Parsable Again - @sshane
* sunnypilot is now parsable with stock openpilot tools
* NEW❗: Display 3D buildings on map thanks to jakethesnake420!
* openpilot Longitudianl Control capable cars only
* UPDATED: Gap Adjust Cruise is now a part of Driving Personality
* [DISTANCE/FOLLOW DISTANCE/GAP DISTANCE] physical button on the steering wheel to select Driving Personality on by default
* Status now viewable in onroad view or Onroad Settings Panel
* REMOVED: Gap Adjust Cruise toggle
* UPDATED: Speed Limit Control (SLC)
* NEW❗: Speed Limit Engage Mode
* Select the desired mode to set the cruising speed to the speed limit
* Warning Only: Warn the driver when the vehicle is driven faster than the speed limit
* Auto: Automatic speed adjustment on motorways based on speed limit data
* User Confirm: Inform the driver to change set speed of Adaptive Cruise Control to help the driver stay within the speed limit
* Supported platforms
* openpilot Longitudinal Control available cars (Excluding certain Toyota/Lexus, Ford, explained below)
* Custom Stock Longitudinal Control available cars
* Unsupported platforms
* Toyota/Lexus and Ford - most platforms do not allow us to control the PCM's set speed, requires testers to verify
* NEW❗: Speed limit source selector
* Select the desired precedence order of sources used to adapt cruise speed to road limits
* UPDATED: Custom Stock Longitudinal Control
* RE-ENABLED: Hyundai/Kia/Genesis CAN-FD platforms
* UPDATED: Custom Offsets reimplementation
* Camera Offset only works in Laneful (Laneful Only or Laneful in Auto mode when using Dynamic Lane Profile)
* Path Offset can be applied to both Laneless and Laneful
* UPDATED: Refactored Torque Lateral Control custom tuning menu
* NEW❗: Less Restrict Settings for Self-Tune (Beta)
* NEW❗: Custom Tuning for setting offline and live values in real-time
* UPDATED: Auto-detect custom Mapbox token if a personal Mapbox token is provided
* REMOVED: "Enable Mapbox Navigation" toggle
* UI updates
* New Settings menu redesign and improved interactions
* FIXED: Retain hotspot/tethering state was not consistently saved
* FIXED: Map stuck in "Map Loading" if comma Prime is active
* FIXED: OpenStreetMap implementation on C3X devices
* M-TSC
* Altitude (ALT.) display on Developer UI
* Current street name on top of driving screen when "OSM Debug UI" is enabled
* Hyundai Kona Non-SCC 2019 support thanks to Quex!
* Kia Seltos Non-SCC 2023-24 support thanks to Moodkiller and jeroid_!
sunnypilot - 0.9.4.1 (2023-08-11)
========================
* UPDATED: Synced with commaai's 0.9.4 release
* NEW❗: Moonrise driving model
* NEW❗: Ford upstream models support
* UPDATED: Dynamic Lane Profile selector in the "SP - Controls" menu
* REMOVED: Dynamic Lane Profile driving screen UI button
* FIXED: Disallow torque lateral control for angle control platforms (e.g. Ford, Nissan, Tesla)
* Torque lateral control cannot be used by angle control platforms, and would cause a "Controls Unresponsive" error if Torque lateral control is enforced in settings
* REMOVED: Speed Limit Style override
* Honda Accord 2016-17 support thanks to mlocoteta!
* Serial Steering hardware required. For more information, see https://github.com/mlocoteta/serialSteeringHardware
* mapd: utilize advisory speed limit in curves (#142) thanks to pfeiferj!
sunnypilot - 0.9.3.1 (2023-07-09)
========================
* UPDATED: Synced with commaai's 0.9.3 release
* NEW❗: Display Temperature on Sidebar toggle
* Display Ambient temperature, memory temperature, CPU core with the highest temperature, GPU temperature, or max of Memory/CPU/GPU on the sidebar
* Replace "Display CPU Temperature on Sidebar" toggle
* NEW❗: Hot Coffee driving model
* NEW❗: HKG CAN: Smoother Stopping Performance (Beta) toggle
* Smoother stopping behind a stopped car or desired stopping event.
* This is only applicable to HKG CAN platforms using openpilot longitudinal control
* NEW❗: Toyota: TSS2 longitudinal: Custom Tuning
* Smoother longitudinal performance for Toyota/Lexus TSS2/LSS2 cars thanks to dragonpilot-community!
* NEW❗: Enable Screen Recorder toggle
* Enable this will display a button on the onroad screen to toggle on or off real-time screen recording with UI elements.
* IMPROVED: Dynamic Lane Profile: when using Laneline planner via Laneline Mode or Auto Mode, enforce Laneless planner while traveling below 10 MPH or 16 km/h
* REMOVED: Display CPU Temperature on Sidebar
sunnypilot - 0.9.2.3 (2023-06-18)
========================
* NEW❗: Auto Lane Change: Delay with Blind Spot
* Toggle to enable a delay timer for seamless lane changes when blind spot monitoring (BSM) detects an obstructing vehicle, ensuring safe maneuvering
* NEW❗: Driving Screen Off: Wake with Non-Critical Events
* When Driving Screen Off Timer is not set to "Always On":
* Enabled: Wake the brightness of the screen to display all events
* Disabled: Wake the brightness of the screen to display critical events
* Currently, all non-nudge modes are default to continue lane change after 1 seconds of blind spot detection
* NEW❗: Fleet Manager PIN Requirement toggle
* User can now enable or disable PIN requirement on the comma device before accessing Fleet Manager
* NEW❗: Reset all sunnypilot settings toggle
* NEW❗: Turn signals display on screen when blinker is used
* Green: Blinker is on
* Red: Blinker is on, car detected in the adjacent blind spot or road edge detected
* IMPROVED: mapd: better exceptions handling when loading dependencies
* UPDATED: Green Traffic Light Chime no longer displays an orange border when executed
* FIXED: mapd: Road name flashing caused by desync with last GPS timestamp
* FIXED: Ram HD (2500/3500): Ignore paramsd sanity check
* Live parameters have trouble with self-tuning on this platform with upstream openpilot 0.9.2
* Hyundai: Longitudinal support for CAN-based Camera SCC cars thanks to Zack1010OP's Patreon sponsor!
sunnypilot - 0.9.2.2 (2023-06-13)
========================
* NEW❗: Toyota: Allow M.A.D.S. toggling with LKAS Button (Beta)
* IMPROVED: Ram: cruise button handling
sunnypilot - 0.9.2.1 (2023-06-10)
========================
* UPDATED: Synced with commaai's 0.9.2 release
* UPDATED: feature revamp with better stability
* UPDATED:
* M.A.D.S.
* Path color becomes LIGHT ORANGE during Driver Steering Override
* Gap Adjust Cruise (now known as Driving Personality in upstream openpilot 0.9.3):
* Updated profiles and jerk changes
* Experimental Mode support
* Three settings: Stock, Aggressive, and Maniac
* Stock is recommended and the default
* In Aggressive/Maniac mode, lead follow distance is shorter and quicker gas/brake response
* Dynamic Lane Profile
* Display blue borders on both sides of the driving path when Laneline mode is being used in the planner
* Auto Mode optimization
* Permanent: Laneless during Auto Lane Change execution
* Mapd
* OpenStreetMap Database: new regions added
* Developer UI (Dev UI)
* REMOVED: 2-column design
* NEW❗: 1-column + 1-row design
* Custom Stock Longitudinal Control
* NEW❗: Chrysler/Jeep/Ram support
* NEW❗: Mazda support
* NEW❗: Volkswagen PQ support
* DISABLED: Hyundai/Kia/Genesis CAN-FD platforms
* NEW❗: Switch between Chill (openpilot ACC) and Experimental (E2E longitudinal) with DISTANCE button on the steering wheel
* To switch between Chill and Experimental Mode: press and hold the DISTANCE button on the steering wheel for over 0.5 second
* All openpilot longitudinal capable cars support
* NEW❗: Nicki Minaj driving model
* NEW❗: Nissan and Mazda upstream models support
* NEW❗: Pre-Global Subaru upstream models support
* NEW❗: Display End-to-end Longitudinal Status (Beta)
* Display an icon that appears when the End-to-end model decides to start or stop
* NEW❗: Green Traffic Light Chime (Beta)
* A chime will play when the traffic light you are waiting for turns green, and you have no vehicle in front of you.
* NEW❗: Lead Vehicle Departure Alert
* Notify when the leading vehicle drives away
* NEW❗: Speedometer: Display True Speed
* Display the true vehicle current speed from wheel speed sensors.
* NEW❗: Speedometer: Hide from Onroad Screen
* NEW❗: Auto-Hide UI Buttons
* Hide UI buttons on driving screen after a 30-second timeout. Tap on the screen at anytime to reveal the UI buttons
* Applicable to Dynamic Lane Profile (DLP) and Gap Adjust Cruise (GAC)
* NEW❗: Display DM Camera in Reverse Gear
* Show Driver Monitoring camera while the car is in reverse gear
* NEW❗: Block Lane Change: Road Edge Detection (Beta)
* Block lane change when road edge is detected on the stalk actuated side
* NEW❗: Display CPU Temperature on Sidebar
* Display the CPU core with the highest temperature on the sidebar
* NEW❗: Display current driving model in Software settings
* NEW❗: HKG: smartMDPS automatic detection (installed with applicable firmware)
* FIXED: Unintended siren/alarm from the comma device if the vehicle is turned off too quickly in PARK gear
* FIXED: mapd: Exception handling for loading dependencies
* Fleet Manager via Browser support thanks to actuallylemoncurd, AlexandreSato, ntegan1, and royjr!
* Access your dashcam footage, screen recordings, and error logs when the car is turned off
* Connect to the device via Wi-Fi, mobile hotspot, or tethering on the comma device, then navigate to http://ipAddress:5050 to access.
* Honda Clarity 2018-22 support thanks to mcallbosco, vanillagorillaa and wirelessnet2!
* Ram: Steer to 0/7 MPH support thanks to vincentw56!
* Retain hotspot/tethering state across reboots thanks to rogerioaguas!
sunnypilot - Version Latest (2023-02-22)
========================
* UPDATED: Synced with commaai's master branch - 2023.02.19-04:52:00:GMT - 0.9.2
* Refactor sunnypilot features to be more stable
sunnypilot - Version Latest (2022-12-16)
========================
* UPDATED: Synced with commaai's master branch - 2022.12.16-06:31:00:GMT - 0.9.1
* NEW❗: GM:
* NEW❗: Gap Adjust Cruise support - Chill, Normal, Aggressive
* NEW❗: Experimental Mode: Hold DISTANCE button on the steering wheel for 0.5 second to switch between Experimental Mode and Chill Mode
* REMOVED❌: Toytoa: SnG Hack
* This method is not recommended and may cause some cars to not behave as expected
* SDSU is strongly recommended to enable SnG for Toyota vehicles without SnG from factory
* commaai: radard: add missing accel data for vision-only leads (commaai/openpilot#26619) - pending PR
* VOACC performance is drastically improved when using Chill Mode
* IMPROVED: M.A.D.S. events handling
* IMPROVED: UI: screen recorder button change
* IMPROVED: OpenStreetMap Offline Database optimization
* FIXED: Toyota: vehicles' LKAS button no longer has a delay with toggling M.A.D.S.
* FIXED: Toyota: brake pedal press at standstill causing Cruise Fault
* FIXED: Volkswagen MQB: reduce Camera Malfunction occurrences (requires testing)
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-12-10)
========================
* IMPROVED: NEW❗ Developer UI design
* Second column metrics is now moved to the bottom of the screen
* ACC. = Acceleration
* L.S. = Lead Speed
* E.T. = EPS Torque
* B.D. = Bearing Degree
* FRI. = Friction
* L.A. = Lateral Acceleration
* ALT. = Altitude
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-12-07)
========================
* NEW❗: Screen Recorder support thanks to neokii and Kumar!
* NEW❗: End-to-end longitudinal start/stop status icon
* Only appears when Experimental Mode is enabled
* NEW❗: End-to-end longitudinal car chime when starting
* Hyundai/Kia/Genesis CAN platform, Honda/Acura Bosch/Nidec, Toyota/Lexus
* i.e. Traffic light turns green, stop sign ready to go, etc.
* Only appears when Experimental Mode is enabled AND longitudinal control is disengaged
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-12-05)
========================
* UPDATED: Synced with commaai's master branch - 2022.12.04-22:46:00:GMT - 0.9.1
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-11-12)
========================
* UPDATED: Synced with commaai's master branch - 2022.11.12-10:02:00:GMT - 0.8.17
* FIXED: CAN Error for CAN HKG cars that do not have navigation from the factory
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-11-11)
========================
* UPDATED: Synced with commaai's master branch - 2022.11.11-21:22:00:GMT - 0.8.17
* commaai: AGNOS 6.2 (commaai/openpilot#26441)
* NEW❗: Speed Limit Control - HKG - add speed limit from car's navigation head unit
* Compatible with certain models, trims, and model years
* DISABLED: FCA: RAM HD - steer down to 0
* FIXED: UI: End-to-end longitudinal button on driving screen synchronization
* FIXED: Honda: Longitudinal status with set cruise speed now displays properly in the car's dashboard
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-11-08)
========================
* ADDED: New Zealand offline OpenStreetMap database
sunnypilot - Version Latest (2022-11-04)
========================
* UPDATED: Synced with commaai's master branch - 2022.11.05-01:44:00:GMT - 0.8.17
* RE-ENABLED: Dynamic Lane Profile - preserves lanelines
* Can be found in "SP - Controls" menu
* NEW❗: DLP: switch to laneless for current/future curves thanks to @twilsonco!
* Can be found in "SP - Controls" menu
* NEW❗: UI: Road Camera Selector
* Enable this will display a button on the driving screen to select the driving camera
* Can be found in "SP - Visuals" menu
* NEW❗: Controls: Camera & Path Custom Offsets
* Only applicable to laneline mode when using Dynamic Lane Profile
* NEW❗: Buttons on driving screen are now sorted based on priority and availability
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-28)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.28-03:53:00:GMT - 0.8.17
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-26)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.26-06:20:00:GMT - 0.8.17
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-25)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.25-23:53:00:GMT - 0.8.17
* Pre-Global Subaru support thanks to @martinl!
* NEW❗: Speed Limit values turn red when current speed is higher than posted speed limit
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-23)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.22-23:15:00:GMT - 0.8.17
* IMPROVED: Custom Stock Longitudinal Control - HKG - only allow engagement on user button press
* IMPROVED: Custom Stock Longitudinal Control - Volkswagen MQB & PQ - more consistent set speed change
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-21)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.21-17:33:00:GMT - 0.8.17
* IMPROVED: Custom Stock Longitudinal Control - Volkswagen MQB & PQ - more predictable button send logic
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-20)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.20-20:25:00:GMT - 0.8.17
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-19)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.19-08:31:00:GMT - 0.8.17
* IMPROVED: Controls: Speed Limit Control - accelerator press only disengage if "Disengage on Accelerator Pedal" is enabled
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-18)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.18-04:44:00:GMT - 0.8.17
* RE-ENABLED: Volkswagen MQB & PQ with Custom Stock Longitudinal Control
* NEW❗: Steering Rate Cost Live Tune
* Enables live tune for Steering Rate Cost. Lower value allows steering wheel to move more freely at low speed
* Can be found in "SP - Controls" menu
* FIXED: MADS: GM - include Regen Paddle logic thanks to @twilsonco!
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-17)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.17-23:54:00:GMT+1 - 0.8.17
* ENABLED: "Custom Stock Longitudinal Control" toggle for CAN-FD cars
* FIXED: HKG CAN-FD: Could not engage when openpilot longitudinal is enabled
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-13)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.13-19:43:00:GMT+1 - 0.8.17
* ADDED: Live Tmux toggle
* Can be found in "SP - General" menu
* IMPROVED: OpenStreetMap Database Update - only check for database update with explicit user decision
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-11)
========================
* ADDED: Hyundai openpilot longitudinal improvements - huge thanks to @aragon7777!
* ADDED: Check for OpenStreetMap Database Update button
* UPDATED: commaai: Low speed lateral control improvements (commaai:openpilot#26022, bbcd448) - pending PR
* FIXED: MUTCD speed limit spacing adjusts dynamically when no subtext is shown (i.e., speed limit offset, distance to next speed limit)
* FIXED: MADS: Intermittent CAN Error when engaging for Toyota Prius TSS-P
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-09)
========================
* ADDED: commaai: Low speed lateral control improvements (commaai:openpilot#26022, bca288bb) - pending PR
* FIXED: MADS: Intermittent CAN Error when engaging for Toyota Prius TSS-P
* IMPROVED: mapd: stop signs and other supported traffic_calming tags are now slowing/stopping as expected
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-08)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.08-12:07:00:GMT+1 - 0.8.17
* FIXED: MADS: Intermittent CAN Error when engaging for Toyota Prius TSS-P
* IMPROVED: mapd: Speed Humps are now set at 20 MPH or 32 km/h
* IMPROVED: OpenStreetMap Offline Database download experience
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-07)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.07-08:16:00:GMT - 0.8.17
* NEW❗: OpenStreetMap database can now be downloaded locally for offline use
* Now offering US South, US West, US Northeast, US Florida, Taiwan, and South Africa
* Databases updated - 2022.10.05-03:30:00:GMT
* NEW❗: mapd: Stop Sign, Yield, Speed Bump, Speed Hump, Sharp Curve support - huge thanks to @move-fast and @dragonpilot-community!
* Go to https://openstreetmap.org and start mapping out your area!
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-09-30)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.30-22:43:00:GMT - 0.8.17
* RE-ADDED: Torque Lateral Controller Live Tune Menu
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-09-23)
========================
* ADDED: Developer UI: latAccelFactorFiltered & frictionCoefficientFiltered values displays in green if Torque is using live params
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-09-22)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.19-22:19:00:GMT - 0.8.17
* NEW❗: Toggle to explicitly enable Custom Stock Longitudinal Control
* Applicable cars only: Honda, Hyundai/Kia/Genesis
* Settings -> Toggles menu
sunnypilot - Version Latest (2022-09-21)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.19-22:19:00:GMT - 0.8.17
* ADDED: Toggle to enable Live Torque (self/auto tune) with Torque lateral controller
* To enable, first enable "Enforce Torque Lateral Controller" toggle
* UPDATED: New metrics in Developer UI (when Live Torque is enabled)
* REMOVED: latAccelFactorRaw & frictionCoefficientRaw from torqued
* ADDED: latAccelFactorFiltered & frictionCoefficientFiltered from torqued
* REMOVED: Temporary remove Torque Lateral Controller Live Tune Menu
sunnypilot - Version Latest (2022-09-20)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.19-22:19:00:GMT - 0.8.17
* ADDED: Toggle to enable Live Torque (self/auto tune) with Torque lateral controller
* To enable, first enable "Enforce Torque Lateral Controller" toggle
* REMOVED: Temporary remove Torque Lateral Controller Live Tune Menu
sunnypilot - Version Latest (2022-09-18)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.17-11:23:00:GMT - 0.8.17
* ADDED: Kia Forte Non-SCC 2019 support for @askalice
* FIXED: Torque Lateral Control Live Tune now syncs with commaai:openpilot#25822
* FIXED: mapd dependencies no longer need to be re-downloaded after unknown reboots
sunnypilot - Version Latest (2022-09-17)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.17-11:23:00:GMT - 0.8.17
* NEW❗: Non SCC HKG support
* Custom Stock Longitudinal Control
* ❗No❗ openpilot longitudinal control
* FIXED: Honda Bosch random low-value set speed changes
sunnypilot - Version Latest (2022-09-16)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.16-20:23:00:GMT - 0.8.17
sunnypilot - Version Latest (2022-09-15)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.16-02:00:00:GMT - 0.8.17
* FIXED: Block additional auto lane change actions if blinker stays on after the first lane change
* REVERTED: Some Toyota with LKAS button no longer requires double press to engage/disengage M.A.D.S.
sunnypilot - Version Latest (2022-09-14)u
========================
* UPDATED: Synced with commaai's master branch - 2022.09.11-02:47:00:GMT - 0.8.17
* NEW❗: GM models supported in Force Car Recognition (FCR)
* Under "SP - Vehicles"
* NEW❗: Prompt to select car in "SP - Vehicles" if car unrecognized on startup
* FIXED: Some Toyota with LKAS button no longer requires double press to engage/disengage M.A.D.S.
* UPDATED: ESCC: Use radar tracks from radar if available
sunnypilot - Version Latest (2022-09-13)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.11-02:47:00:GMT - 0.8.17
* NEW❗: New metric in Developer UI
* Actual Lateral Acceleration (Roll Compensated)
sunnypilot - Version Latest (2022-09-12)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.11-02:47:00:GMT - 0.8.17
* FIXED: Honda Nidec models not gaining speed when longitudinal engaged
sunnypilot - Version Latest (2022-09-11)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.11-02:47:00:GMT - 0.8.17
* NEW❗: Hyundai Enhanced SCC now forwards FCW and AEB signals and commands from radar to car
* RE-ENABLED: MADS Status Icon toggle
sunnypilot - Version Latest (2022-09-10)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.11-02:47:00:GMT - 0.8.17
* NEW❗: RAM improvement implementation thanks to realfast!
* DISABLED: Chrysler/Jeep/Ram with Custom Stock Longitudinal Control
* DISABLED: Volkswagen MQB & PQ with Custom Stock Longitudinal Control
sunnypilot - Version Latest (2022-09-09)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.09-07:35:00:GMT - 0.8.17
* NEW❗: MADS now supporting General Motors (GM)
* ADDED: Custom Stock Longitudinal Control - Volkswagen
* MQB & PQ
* ADDED: Reverse ACC Change
* ACC +/-: Short=5, Long=1
* ADDED: Custom Stock Longitudinal Control
* Hyundai/Kia/Genesis
* Honda Bosch
* ADDED: Hyundai: 2015-16 Genesis resume from standstill fix (commaai:openpilot#25579) - pending PR
* Vision Turn Speed Control re-enabled
* Disable Onroad Uploads toggle re-enabled
sunnypilot - Version Latest (2022-09-08)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.08-04:05:00:GMT - 0.8.17
* NEW❗: Block lane change initiation while brake is pressed
sunnypilot - Version Latest (2022-09-07)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.08-04:05:00:GMT - 0.8.17
* NEW❗: Display End-to-end longitudinal 🌮 on screen
* NEW❗: Hold DISTANCE button on the steering wheel for 1 second to switch between E2E Long and ACC mode
* Enable toggle on the driving screen to switch between modes with End-to-end longitudinal
* Only applicable to cars with openpilot longitudinal control
* NEW❗: Block lane change initiation while brake is pressed
* REMOVED: Dynamic Lane Profile - upstream laneless model is now on by default
* REMOVED: hyundai: consistent start from stop (commaai:openpilot#25672) - pending PR
sunnypilot - Version Latest (2022-09-06)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.06 - 0.8.17
* NEW❗: Display useful metrics above the chevron that tracks the lead car
* Under "SP - Visuals" menu
* Only applicable to cars with openpilot longitudinal control
* ADDED: hyundai: consistent start from stop (commaai:openpilot#25672) - pending PR
* FIXED: Vienna speed limit interface now scales properly with the outer box
* REMOVED: Hyundai long improvements (commaai:openpilot#25604) - closed PR
sunnypilot - Version Latest (2022-09-05)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.03 - 0.8.17
* NEW❗: Speed Limit Control (SLC) interface integrated with upstream
* NEW❗: Speed limit from active navigation is now prioritized for Speed Limit Control
* NEW❗: MUTCD (U.S.) or Vienna (E.U.) speed limit interfaces can now be selected under "SP - Controls"
sunnypilot - Version Latest (2022-09-04)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.03 - 0.8.17
* FIXED: Gap Adjust Cruise status now displays properly on screen
* FIXED: mapd - missing index in list caused mapd to crash
* REMOVED: Temporary removed Vision Turn Speed Control
sunnypilot - Version Latest (2022-09-03)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.03 - 0.8.17
* ADDED: New border colors for different operation engagements
* ADDED: UI: Show barrier when car detected in blind spot
* Only applicable to cars that have BSM detection with openpilot
* FIXED: Cruise Cancel button no longer display prompt if cruise not engaged
* TWEAKED: Update changelogs on startup in Settings -> Software -> Version
* REMOVED: Upload Raw Logs and Full Resolution Videos toggles
sunnypilot - Version Latest (2022-08-31)
========================
* UPDATED: Synced with commaai's master branch - 2022.08.31 - 0.8.17
* ADDED: New border colors for different operation engagements
* ADDED: UI: Show barrier when car detected in blind spot
* Only applicable to cars that have BSM detection with openpilot
* FIXED: Cruise Cancel button no longer display prompt if cruise not engaged
* REMOVED: Upload Raw Logs and Full Resolution Videos toggles
sunnypilot - Version 0.8.16 (2022-07-16)
========================
* Sync with commaai's master branches
* NEW❗: Add toggle to pause lateral actuation below 30 MPH / 50 KM/H
* IMPROVED: Better controls mismatch handling
* IMPROVED: Less frequent Low Memory alert
* IMPROVED: Only allow lateral control when in forward gears
* IMPROVED: Better alerts handling on gear changes
sunnypilot - Version 0.8.14-1.3 (2022-06-29)
========================
* Hyundai/Kia/Genesis
* NEW❗: MADS: Add GAP/Distance button on the steering wheel to engage/disengage
* To engage/disengage MADS: Hold the button for 0.5 second
* NEW❗: Dynamic Lane Profile: Add toggle to enable "Laneless for Curves in Auto Lane"
* HOTFIX🛠: Improve Torque lateral control and reduce ping pong for some Toyota cars
* Torque control: higher low speed gains and better steering angle deadzone logic
* Developer UI: Remove Distance Traveled, replace with Memory Usage %
* This may have a potential to fix the Low Memory alert that may appear
sunnypilot - Version 0.8.14-1 (2022-06-27)
========================
* HOTFIX🛠: Honda, Toyota, Volkswagen now initialized correctly with Torque Lateral Live Tune
sunnypilot - Version 0.8.14-1 (2022-06-27)
========================
* NEW❗: Added toggle to enable updates for sunnypilot
* HOTFIX🛠: Volkswagen car list now displays properly in Force Car Recognition menu
* REVERTED: Honda - temporary removes CRUISE (MAIN) for MADS engagement
* LKAS button continues to be used for MADS engagement/disengagement
sunnypilot - Version 0.8.14-1 (2022-06-26)
========================
Visit https://bit.ly/sunnyreadme for more details
* sunnypilot 0.8.14 release - based on openpilot 0.8.14 devel
* "0.8.14-prod-c3" branch only supports comma three
* If you have a comma two, EON, or other devices than a comma three, visit sunnyhaibin's discord server for more details: https://discord.gg/wRW3meAgtx
* Mono-branch support
* Honda/Acura
* Hyundai/Kia/Genesis
* Toyota/Lexus
* Volkswagen MQB
* Modified Assistive Driving Safety (MADS) Mode
* NEW❗: CRUISE (MAIN) now engages MADS for all supported car makes
* NEW❗: Added toggle to disable disengaging Automatic Lane Centering (ALC) on the brake pedal
* Dynamic Lane Profile (DLP)
* NEW❗: Gap Adjust Cruise (GAC)
* openpilot longitudinal cars can now adjust between the lead car's following distance gap via 3 modes:
* Steering Wheel (SW) | User Interface (UI) | Steering Wheel + User Interface (SW+UI)
* NEW❗: Custom Camera & Path Offsets
* NEW❗: Torque Lateral Control from openpilot 0.8.15 master (as of 2022-06-15)
* NEW❗: Torque Lateral Control Live Tune Menu
* NEW❗: Speed Limit Sign from openpilot 0.8.15 master (as of 2022-06-22)
* NEW❗: Mapbox Speed Limit data will now be utilized in Speed Limit Control (SLC)
* Speed limit data will be utilized in the following availability:
* Mapbox (active navigation) -> OpenStreetMap -> Car Interface (Toyota's TSR)
* Custom Stock Longitudinal Control
* NEW❗: Volkswagen MQB
* Honda
* Hyundai/Kia/Genesis
* NEW❗: Mapbox navigation support for non-Prime users
* Visit sunnyhaibin's discord server for more details: https://discord.gg/wRW3meAgtx
* Hyundai/Kia/Genesis
* NEW❗: Enhanced SCC (ESCC) Support
* Requires hardware modification. Visit sunnyhaibin's discord server for more details: https://discord.gg/wRW3meAgtx
* NEW❗: Smart MDPS (SMDPS) Support - Auto-detection
* Requires hardware modification and custom firmware for the SMDPS. Visit sunnyhaibin's discord server for more details: https://discord.gg/wRW3meAgtx
* Toyota/Lexus
* NEW❗: Added toggle to enforce stock longitudinal control
sunnypilot - Version 0.8.12-4
========================
* NEW❗: Custom Stock Longitudinal Control by setting the target speed via openpilot's "MAX" speed thanks to multikyd!
* Speed Limit Control
* Vision-based Turn Control
* Map-based Turn Control
* NEW❗: HDA status integration with Custom Stock Longitudinal Control on applicable HKG cars only
* NEW❗: Roll Compensation and SteerRatio fix from comma's 0.8.13
* NEW❗: Dev UI to display different metrics on screen
* Click on the "MAX" box on the top left of the openpilot display to toggle different metrics display
* Lead car relative distance; Lead car relative speed; Actual steering degree; Desired steering degree; Engine RPM; Longitudinal acceleration; Lead car actual speed; EPS torque; Current altitude; Compass direction
* NEW❗: Stand Still Timer to display time spent at a stop with M.A.D.S engaged (i.e., stop lights, stop signs, traffic congestions)
* NEW❗: Current car speed text turns red when the car is braking
* NEW❗: Export GPS tracks into GPX files and upload to OSM thanks to eFini!
* NEW❗: Enable ACC and M.A.D.S with a single press of the RES+/SET- button
* NEW❗: ACC +/-: Short=5, Long=1
* Change the ACC +/- buttons behavior with cruise speed change in openpilot
* Disabled (Stock): Short=1, Long=5
* Enabled: Short=5, Long=1
* NEW❗: Speed Limit Value Offset (not %)*
* Set speed limit higher or lower than actual speed limit for a more personalized drive.
* *To use this feature, turn off "Enable Speed Limit % Offset"*
* NEW❗: Dedicated icon to show the status of M.A.D.S.
* NEW❗: No Offroad Fix for non-official devices that cannot shut down after the car is turned off
* NEW❗: Stop N' Go Resume Alternative
* Offer alternative behavior to auto resume when stopped behind a lead car using stock SCC/ACC. This feature removes the repeating prompt chime when stopped and/or allows some cars to use auto resume (i.e., Genesis)
* IMPROVED: Show the lead car icon in the car's dashboard when a lead car is detected by openpilot's camera vision
* FIXED: MADS button unintentionally set MAX when using stock longitudinal control thanks to Spektor56!
sunnypilot - Version 0.8.12-3
========================
* NEW❗: Bypass "System Malfunction" alert toggle
* Prevent openpilot from returning the "System Malfunction" alert that hinders the ability use openpilot
* FIXED: Hyundai/Kia/Genesis Brake Hold Active now outputs the correct events on screen with M.A.D.S. engaged
sunnypilot - Version 0.8.12-2
========================
* NEW❗: Disable M.A.D.S. toggle to disable the beloved M.A.D.S. feature
* Enable Stock openpilot engagement/disengagement
* ADJUST: Initialize Driving Screen Off Brightness at 50%
sunnypilot - Version 0.8.12-1
========================
* sunnypilot 0.8.12 release - based on openpilot 0.8.12 devel
* Dedicated Hyundai/Kia/Genesis branch support
* NEW❗: OpenStreetMap integration thanks to the Move Fast team!
* NEW❗: Vision-based Turn Control
* NEW❗: Map-Data-based Turn Control
* NEW❗: Speed Limit Control w/ optional Speed Limit Offset
* NEW❗: OpenStreetMap integration debug UI
* Only available to openpilot longitudinal enabled cars
* NEW❗: Hands on Wheel Monitoring according to EU r079r4e regulation
* NEW❗: Disable Onroad Uploads for data-limited Wi-Fi hotspots when using OpenStreetMap related features
* NEW❗: Fast Boot (Prebuilt)
* NEW❗: Auto Lane Change Timer
* NEW❗: Screen Brightness Control (Global)
* NEW❗: Driving Screen Off Timer
* NEW❗: Driving Screen Off Brightness (%)
* NEW❗: Max Time Offroad
* Improved user feedback with M.A.D.S. operations thanks to Spektor56!
* Lane Path
* Green🟢 (Laneful), Red🔴 (Laneless): M.A.D.S. engaged
* White⚪: M.A.D.S. suspended or disengaged
* Black⚫: M.A.D.S. engaged, steering is being manually override by user
* Screen border now only illuminates Green when SCC/ACC is engaged
sunnypilot - Version 0.8.10-1 (Unreleased)
========================
* sunnypilot 0.8.10 release - based on openpilot 0.8.10 `devel`
* Add Toyota cars to Force Car Recognition
sunnypilot - Version 0.8.9-4
========================
* Hyundai: Fix Ioniq Hybrid signals
sunnypilot - Version 0.8.9-3
========================
* Update home screen brand and version structure
sunnypilot - Version 0.8.9-2
========================
* Added additional Sonata Hybrid Firmware Versions
* Features
* Modified Assistive Driving Safety (MADS) Mode
* Dynamic Lane Profile (DLP)
* Quiet Drive 🤫
* Force Car Recognition (FCR)
* PID Controller: add kd into the stock PID controller
sunnypilot - Version 0.8.9-1
========================
* First changelog!
* Features
* Modified Assistive Driving Safety (MADS) Mode
* Dynamic Lane Profile (DLP)
* Quiet Drive 🤫
* Force Car Recognition (FCR)
* PID Controller: add kd into the stock PID controller

36
docs_sp/SAFETY.md Normal file
View File

@@ -0,0 +1,36 @@
# Safety
openpilot is an Adaptive Cruise Control (ACC) and Automated Lane Centering (ALC) system.
Like other ACC and ALC systems, openpilot is a failsafe passive system and it requires the
driver to be alert and to pay attention at all times.
In order to enforce driver alertness, openpilot includes a driver monitoring feature
that alerts the driver when distracted.
However, even with an attentive driver, we must make further efforts for the system to be
safe. We repeat, **driver alertness is necessary, but not sufficient, for openpilot to be
used safely** and openpilot is provided with no warranty of fitness for any purpose.
openpilot is developed in good faith to be compliant with FMVSS requirements and to follow
industry standards of safety for Level 2 Driver Assistance Systems. In particular, we observe
ISO26262 guidelines, including those from [pertinent documents](https://www.nhtsa.gov/sites/nhtsa.dot.gov/files/documents/13498a_812_573_alcsystemreport.pdf)
released by NHTSA. In addition, we impose strict coding guidelines (like [MISRA C : 2012](https://www.misra.org.uk/what-is-misra/))
on parts of openpilot that are safety relevant. We also perform software-in-the-loop,
hardware-in-the-loop and in-vehicle tests before each software release.
Following Hazard and Risk Analysis and FMEA, at a very high level, we have designed openpilot
ensuring two main safety requirements.
1. The driver must always be capable to immediately retake manual control of the vehicle,
by stepping on the brake pedal or by pressing the cancel button.
2. The vehicle must not alter its trajectory too quickly for the driver to safely
react. This means that while the system is engaged, the actuators are constrained
to operate within reasonable limits[^1].
For additional safety implementation details, refer to [panda safety model](https://github.com/commaai/panda#safety-model). For vehicle specific implementation of the safety concept, refer to [panda/board/safety/](https://github.com/commaai/panda/tree/master/board/safety).
**Extra note**: comma.ai strongly discourages the use of openpilot forks with safety code either missing or
not fully meeting the above requirements.
[^1]: For these actuator limits we observe ISO11270 and ISO15622. Lateral limits described there translate to 0.9 seconds of maximum actuation to achieve a 1m lateral deviation.

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:996ef2f2fad71a5fa0c8a175c6f05fc841330ee57c1edee871077a95c737ac9f
size 62046

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2ac783627ef97d31bbe79281986226c1a06501a80ba57f73e5cc66bae318242c
size 107559

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:abac3aad3f1f6fd8cd0d278e82c5a7e79aa7e9e3275fe261bc387acab63bd046
size 164956

View File

@@ -0,0 +1,11 @@
# Definitions
| Branch | Definition | Description | Stability/Readiness |
|:------------:|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| `release-c3` | Release branch | Stable release branches. After testing on `staging-c3`, updates are pushed here and published publicly. | **Ready to Use:** Highly stable, recommended for most users. |
| `staging-c3` | Staging branch | Pre-release testing branches. Community feedback is essential to identify issues before public release. | **Varied Stability:** Generally stable, but intended for testing before public release. |
| `dev-c3` | Development branches | Experimental branches with the latest features and bug fixes brought in manually. Expect bugs and braking changes. | **Experimental:** Least stable, suitable for testers and developers. |
| `master` | Primary development branch | All Pull Requests are merged here for future releases. CI automatically strips, minifies, and pushes changes to `staging-c3`. Running the `master` branch is suitable for development purposes but not recommended for non-development use. | **For Development Use:** Suitable for developers, may be unstable for general use. |
!!! tip
Your feedback is invaluable. Testers, even without software development experience, are encourage to run `dev-c3` or `staging-c3` and report issues.

View File

@@ -0,0 +1,7 @@
# Recommended Branches
| Branch | Compatible Device | Installation URL | Change Logs |
|:----------------:|-------------------|---------------------------|------------------------------------------------------------------------------------------|
| `release-c3` | comma 3/3X | release-c3.sunnypilot.ai | [CHANGELOGS.md](https://github.com/sunnyhaibin/sunnypilot/blob/release-c3/CHANGELOGS.md) |
| `staging-c3` | comma 3/3X | staging-c3.sunnypilot.ai | [CHANGELOGS.md](https://github.com/sunnyhaibin/sunnypilot/blob/release-c3/CHANGELOGS.md) |
| `dev-c3` | comma 3/3X | dev-c3.sunnypilot.ai | [CHANGELOGS.md](https://github.com/sunnyhaibin/sunnypilot/blob/release-c3/CHANGELOGS.md) |

View File

@@ -0,0 +1,68 @@
# How to contribute
Our software is open source so you can solve your own problems without needing help from others. And if you solve a problem and are so kind, you can upstream it for the rest of the world to use. Check out our [post about open-sourcing and externalization](https://www.sunnypilot.ai/blog/july/a-new-chapter-transparency/). Development activity is coordinated through our [GitHub Issues](https://github.com/sunnypilot/sunnypilot/issues), [GitHub Discussions](https://github.com/sunnypilot/sunnypilot/discussions), and [Discord](https://discord.sunnypilot.ai).
### Getting Started
* Setup your [development environment](https://github.com/sunnypilot/sunnypilot/tree/master/tools)
* Read about the [development workflow](WORKFLOW.md)
* Join our [Discord](https://discord.sunnypilot.ai)
* Docs are at [https://docs.sunnypilot.ai](https://docs.sunnypilot.ai) and [https://www.sunnypilot.ai/blog](https://www.sunnypilot.ai/blog)
## What contributions are we looking for?
**sunnypilot's priorities are [safety](../SAFETY.md), stability, quality, and features, in that order.** Aligning with comma's ideals, part of sunnypilot's mission is to *solve self-driving cars while delivering shippable intermediaries*, and **all** development is towards that goal.
### What gets merged?
The probability of a pull request being merged is a function of its value to the project and the effort it will take us to get it merged.
If a PR offers *some* value but will take lots of time to get merged, it will be closed.
Simple, well-tested bug fixes are the easiest to merge, and new features are the hardest to get merged.
All of these are examples of good PRs:
* [typo fix](https://github.com/commaai/openpilot/pull/30678)
* [removing unused code](https://github.com/commaai/openpilot/pull/30573)
* [simple car model port](https://github.com/commaai/openpilot/pull/30245)
* [car brand port](https://github.com/commaai/openpilot/pull/23331)
* [UI design changes](https://github.com/sunnypilot/sunnypilot/commit/84f6fce90639135611ec568c4d39a352a300bede)
* [new features](https://github.com/sunnypilot/sunnypilot/commit/68e1379003bfdb599921cf9cd5684bfb762fd676)
### What doesn't get merged?
* **arbitrary style changes**: code is art, and it's up to the author to make it beautiful
* **500+ line PRs**: clean it up, break it up into smaller PRs, or both
* **PRs without a clear goal**: every PR must have a singular and clear goal
### First contribution
Check out any [good first issue from commaai's openpilot](https://github.com/commaai/openpilot/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) to get started.
### What do I need to contribute?
A lot of sunnypilot work requires only a PC, and some requires a comma device.
Most car-related contributions require access to that car, plus a comma device installed in the car.
## Pull Requests
Pull requests should be against the [`master`](https://github.com/sunnypilot/sunnypilot) branch. If you're unsure about a contribution, feel free to open a discussion, issue, or draft PR to discuss the problem you're trying to solve.
A good pull request has all of the following:
- a clearly stated purpose
- every line changed directly contributes to the stated purpose
- verification, i.e. how did you test your PR?
- justification
* if you've optimized something, post benchmarks to prove it's better
* if you've improved your car's tuning, post before and after plots
- passes the CI tests
## Contributing without Code
* Report bugs in [GitHub issues](https://github.com/sunnypilot/sunnypilot/issues).
* Report driving issues in the `#general` Discord channel.
* Consider opting into driver camera uploads to improve the driver monitoring model.
* Connect your device to Wi-Fi regularly, so that comma can pull data for training better driving models.
* Run the `staging-c3` branch and report issues. This branch is like `master` but it's built just like a release.

View File

@@ -0,0 +1,43 @@
# sunnypilot development workflow
Aside from the ML models, most tools used for sunnypilot development are in this repo.
Most development happens on normal Ubuntu workstations, and not in cars or directly on comma devices. See the [setup guide](https://github.com/sunnypilot/sunnypilot/tree/master/tools) for getting your PC setup for sunnypilot development.
## Quick start
```bash
# get the latest stuff
git pull
git lfs pull
git submodule update --init --recursive
# update dependencies
tools/ubuntu_setup.sh
# build everything
scons -j$(nproc)
# build just the ui with either of these
scons -j8 selfdrive/ui/
cd selfdrive/ui/ && scons -u -j8
# test everything
pytest
# test just logging services
cd system/loggerd && pytest .
# run the linter
op lint
```
## Testing
### Automated Testing
All PRs and commits are automatically checked by GitHub Actions. Check out `.github/workflows/` for what GitHub Actions runs. Any new tests should be added to GitHub Actions.
### Code Style and Linting
Code is automatically checked for style by GitHub Actions as part of the automated tests. You can also run these tests yourself by running `pre-commit run --all`.

View File

@@ -0,0 +1,274 @@
# Bug Reports
sunnypilot is an actively maintained project that we constantly strive to improve. With project of this size and complexity,
bugs may occur. If you think you have discovered a bug, you can help us by submitting an issue
in [comma's public issue tracker][comma's issue tracker],
[sunnypilot's public issue tracker][sunnypilot's issue tracker] or on our [Discord][discord], following this guide.
[comma's issue tracker]: https://github.com/commaai/openpilot/issues
[sunnypilot's issue tracker]: https://github.com/sunnypilot/sunnypilot/issues
[discord]: https://discord.sunnypilot.ai
## Before creating an issue
With more than 2,500 users, issues are created frequently. The maintainers of this project are trying very hard to keep
the number of open issues and reports down by fixing bugs as fast as possible. By following this guide, you will know
exactly what information we need to help you quickly.
**But first, please do the following things before creating an issue.**
### Upgrade to the latest version
Chances are that the bug you discovered was already fixed in a subsequent version. Thus, before reporting an issue,
ensure that you're running the [latest release version](https://github.com/sunnypilot/sunnypilot/releases) of sunnypilot.
Please consult our [installation guide](../setup/read-before-installing.md) to learn how to upgrade to the latest version.
!!! warning "Bug fixes are not backported"
Please understand that only bugs that occur in the latest version of sunnypilot will be addressed. Also, to reduce
duplicate efforts, fixes cannot be backported to earlier versions.
### Remove customizations
If you're using customized features, such as your own tweaks of the features, please remove them from the branch
you are testing from before reporting a bug. We can't offer official support for bugs that might hide in your implementations,
so make sure to omit any customizations from the version being tested.
If, after removing the customizations, the bug is gone, the bug is likely caused by your customizations. A good idea is
to add them back gradually to narrow down the root cause of the problem If you did a major version upgrade, make sure
you adjusted all customizations you have implemented.
!!! tip
If you are an advanced user, you could also utilize `git bisect`
to perform a binary search in the history to find a particular regression.
!!! warning "Customizations mentioned in our documentation"
A handful of the features sunnypilot offers can only be implemented with customizations. if you find a bug in any of
the customizations that our documentations explicitly mentioned, you are, of course, encouraged to report it.
**Don't be shy to ask on our [Discord][discord] for help if you run into problems.**
### Search for solutions
At this stage, we know that the problem persists in the latest version and is not caused by any of your customizations.
However, the problem might result from a small typo or a syntactical error in the source code, e.g., `selfdrive/car/interfaces.py`.
Now, before you go through the trouble of creating a bug report that is answered and closed right away with a link to
the relevant documentation section or another already reported or closed issue or discussion, you can save time for us
and yourself by doing some research:
1. [Search our documentation] and look for the relevant sections that could be related to your problem. If found, make
sure that the settings are configured correctly.
2. [Search our Discord][discord] to learn if other users are struggling with similar problems and work together with
our
great comunity towards a solution. Many problems are solved there.
3. [Search comma's openpilot issue tracker][comma's issue tracker], as another user might
already have reported the same problem that may exist in
stock openpilot, and there might even be a known workaround or fix for it. Thus, no need to create a new issue.
4. [Search sunnypilot's issue tracker][sunnypilot's issue tracker], as another user might already have
reported the same problem, and there
might even be a known workaround or fix for it. Thus, no need to create a new issue.
[Search our documentation]: ?q=
**Keep track of all <u>search terms</u> and <u>relevant links</u>, you'll need them in the bug report.**[^1]
[^1]:
We might be using terminology in our documentation different from yours, but we mean the same. When you include the
search terms and related links in your bug report, you help us to adjust and improve the documentation.
---
At this point, when you still haven't found a solution to your problem, we encourage you to report the issue on our
[Discord][discord] because it's now very likely that you stumbled over something we don't know
yet. Read the following section
to learn how to create a complete and helpful bug report.
## Issue template
We have created an issue template to make the bug reporting process as simple as possible, and more efficient for our
community and us.
- [Title]
- [Context]<small>optional</small>
- [Bug description]
- [Related links]
- [Reproduction]
- [Steps to reproduce]
- [Checklist]
[Title]: #title
[Context]: #context
[Bug description]: #bug-description
[Related links]: #related-links
[Reproduction]: #reproduction
[Steps to reproduce]: #steps-to-reproduce
[Checklist]: #checklist
### Title
A good title is short and descriptive. It should be a one-sentence executive summary of the issue, so the impact and
severity of the bug you want to report can be inferred from the title.
| <!-- --> | Example |
| -------- |--------------------------------------------------------------------------------------------------------------|
| :material-check:{ style="color: #4DB6AC" } __Clear__ | Speed Limit Control (SLC) stuck in `preActive` when engaged |
| :material-close:{ style="color: #EF5350" } __Wordy__ | The Speed Limit Control (SLC) remains in the `preActive` state when longitudinal it's supposed to be engaged |
| :material-close:{ style="color: #EF5350" } __Unclear__ | SLC does not work |
| :material-close:{ style="color: #EF5350" } __Useless__ | Help |
### Context <small>optional</small> { #context }
Before describing the bug, you can provide additional context for us to understand what you were trying to achieve.
Explain the circumstances in which you're using sunnypilot, and what you _think_ might be relevant. Don't write
about the bug here.
!!! note "__Why this might be helpful__"
Some errors only manifest in specific settings, environments or edge cases, for example, when the feature is not available
to certain cars.
### Bug description
Now, to the bug you want to report. Provide a clear, focused, specific, and concise summary of the bug you encountered.
Explain why you think this is a bug that should be reported to sunnypilot, and not to one of its dependencies.[^3]
Adhere to the following principles:
[^3]:
Sometimes, users report bugs on our [sunnypilot's issue tracker] or [Discord][discord]
that are caused by one of our upstream dependencies, including [comma's openpilot], [comma's panda],
or other openpilot forks' dependencies. A good rule of thumb is
to reproduce the issue with stock openpilot in the same conditions and
check if the problem persists. If it does, the problem is likely not
related to sunnypilot and should be reported upstream. When in
doubt, use our [Discord][discord] to ask for help.
[comma's openpilot]: https://github.com/commaai/openpilot
[comma's panda]: https://github.com/commaai/panda
- __Explain the <u>what</u>, not the <u>how</u>__ don't explain
[how to reproduce the bug][Steps to reproduce] here, we're getting there.
Focus on articulating the problem and its impact as clearly as possible.
- __Keep it short and concise__ if the bug can be precisely explained in one
or two sentences, perfect. Don't inflate it maintainers and future users
will be grateful for having to read less.
- __One bug at a time__ if you encounter several unrelated bugs, please
create separate issues for them. Don't report them in the same issue, as
this makes attribution difficult.
---
:material-run-fast: __Stretch goal__ if you found a workaround or a way to fix
the bug, you can help other users temporarily mitigate the problem before
we maintainers can fix the bug in our code base.
!!! note "__Why we need this__"
In order for us to understand the problem, we need a clear description of it and quantify its impact, which is
essential for triage and prioritization.
### Related links
Of course, prior to reporting a bug, you have read our documentation and
[could not find a working solution][search for solutions]. Please share links
to all sections of our documentation that might be relevant to the bug, as it
helps us gradually improve it.
Additionally, since you have searched [comma's issue tracker], [sunnypilot's issue tracker] or [Discord][discord]
before reporting an issue, and have possibly found several issues or
discussions, include those as well. Every link to an issue or discussion creates
a backlink, guiding us maintainers and other users in the future.
---
:material-run-fast: __Stretch goal__ if you also include the search terms you
used when [searching for a solution][search for solutions] to your problem, you
make it easier for us maintainers to improve the documentation.
[search for solutions]: #search-for-solutions
### Reproduction
A minimal reproduction is at the heart of every well-written bug report, as
it allows us maintainers to instantly recreate the necessary conditions to
inspect the bug to quickly find its root cause. It's a proven fact that issues
with concise and small reproductions can be fixed much faster.
After you have created the reproduction, take note of your <u>__comma Dongle ID__</u>. It will be used during the bug
report.
!!! note "__Why we need this__"
If an issue contains no minimal reproduction or just a link to a repository with thousands of files, the
maintainers would need to invest a lot of time into trying to recreate the right conditions to even inspect the
bug, let alone fix it.
!!! warning "Don't share links to repositories"
While we know that it is a good practice among developers to include a link
to a repository with the bug report, we currently don't support those in our
process. The reason is that the reproduction, which is automatically
produced by the <u>__route ID__</u> contains all the necessary
environment information that is often forgotten to be included.
Additionally, there are many non-technical users of sunnypilot that
have trouble creating repositories.
### Steps to reproduce
At this point, you provided us with enough information to understand the bug
and provided us with a reproduction that we could run and inspect. However, when
we check your reproduction, it might not be immediately apparent how we can see
the bug in action.
Thus, please list the specific steps we should follow when running your
reproduction to observe the bug. Keep the steps short and concise, and make sure
not to leave anything out. Use simple language as you would explain it to a
five-year-old, and focus on continuity.
!!! note "__Why we need this__"
We must know how to navigate your reproduction in order
to observe the bug, as some bugs only occur at certain viewports or in
specific conditions.
### Uploading logs and preserving routes
After reproducing the bug, please follow these steps to upload the necessary logs and preserve the routes.
1. Ensure the route is fully uploaded at [comma Connect]. We cannot look
into issues without routes, or at least a comma Dongle ID.
1. Visit [comma Connect], select the route with the issue reproduced.
2. Under the "Files" button, locate "All logs". Click "Upload x files".
3. View the upload queue, and confirm that all raw logs are uploaded.
!!! note
Sometimes when the qlogs of the route are still being uploaded, some raw logs may not be available to
request for upload. Refresh the page a few times once you have confirmed all qlogs have been uploaded,
then try to upload all raw logs again if available.
2. Share your Dongle ID with sunnypilot on [comma Connect].
1. Visit [comma Connect], navigate to the gear icon.
2. Select "Share by email", and enter `support@sunnypilot.ai`.
3. Confirm the sharing by clicking the share icon again.
4. Set the device name to your vehicle's year/make/model and your Discord username, so it can be easily identified.
3. Once all raw logs are uploaded, click "More info" and enable the "Preserved" option to preserve the route.
4. Attach the route ID in your issue submission.
[comma Connect]: https://connect.comma.ai
### Checklist
Thanks for following the guide and creating a high-quality and complete bug
report you are almost done. The checklist ensures that you have read this guide
and have worked to your best knowledge to provide us with everything we need to
know to help you.
- [ ] I have upgraded to the latest release version of sunnypilot.
- [ ] I have removed or disable any customizations and confirmed the bug persists.
- [ ] I have searched the documentation, issue trackers, and Discord for similar issues.
- [ ] I have created a minimal reproduction and noted my comma Dongle ID.
- [ ] I have shared my Dongle ID with sunnypilot at `support@sunnypilot.ai`.
- [ ] I have filled out all required sections of the issue template.
- [ ] I have followed this guide and ensured all necessary information is included.
__We'll take it from here.__

View File

@@ -0,0 +1,97 @@
# Documentation issues
Our documentation is composed of many pages and includes extensive
information on features, configurations, customizations, and much more. If you
have found an inconsistency or see room for improvement, please follow this
guide to submit an issue on our [issue tracker].
[issue tracker]: https://github.com/sunnypilot/sunnypilot/issues
## Issue template
Reporting a documentation issue is usually less involved than reporting a bug.
Please thoroughly read this guide before creating a new documentation issue,
and provide the following information as part of the issue:
- [Title]
- [Description]
- [Related links]
- [Proposed change] <small>optional</small>
- [Checklist]
[Title]: #title
[Description]: #description
[Related links]: #related-links
[Proposed change]: #proposed-change
[Checklist]: #checklist
### Title
A good title should be a short, one-sentence description of the issue, contain
all relevant information and, in particular, keywords to simplify the search in
our issue tracker.
| <!-- --> | Example |
| -------- | -------- |
| :material-check:{ style="color: #4DB6AC" } __Clear__ | Clarify Speed Limit Control engagement
| :material-close:{ style="color: #EF5350" } __Unclear__ | Missing information in the docs
| :material-close:{ style="color: #EF5350" } __Useless__ | Help
### Description
Provide a clear and concise summary of the inconsistency or issue you
encountered in the documentation or the documentation section that needs
improvement. Explain why you think the documentation should be adjusted and
describe the severity of the issue:
- __Keep it short and concise__ if the inconsistency or issue can be
precisely explained in one or two sentences, perfect. Maintainers and future
users will be grateful for having to read less.
- __One issue at a time__ if you encounter several unrelated inconsistencies,
please create separate issues for them. Don't report them in the same issue
it makes attribution difficult.
!!! note "__Why we need this__"
Describing the problem clearly and concisely is a prerequisite for improving
our documentation we need to understand what's wrong, so we can fix it.
### Related links
After you described the documentation section that needs to be adjusted above,
we now ask you to share the link to this specific documentation section and
other possibly related sections. Make sure to use anchor links (permanent links)
where possible, as it simplifies discovery.
!!! note "__Why we need this__"
Providing the links to the documentation help us understand which sections
of our documentation need to be adjusted, extended, or overhauled.
### Proposed change <small>optional</small> { #proposed-change }
Now that you have provided us with the description and links to the
documentation sections, you can help us, maintainers, and the community by
proposing an improvement. You can sketch out rough ideas or write a concrete
proposal. This field is optional but very helpful.
!!! note "__Why we need this__"
An improvement proposal can be beneficial for other users who encounter
the same issue, as they offer solutions before we maintainers can update
the documentation.
### Checklist
Thanks for following the guide and providing valuable feedback for our
documentation you are almost done. The checklist ensures that you have read
this guide and have worked to your best knowledge to provide us with every piece
of information we need to improve it.
- [ ] I have provided a clear and descriptive title for the documentation issue.
- [ ] I have summarized the inconsistency or issue concisely in the description.
- [ ] I have included links to the specific documentation section(s) that need
adjustments.
- [ ] (Optional) I have proposed a change or improvement to the documentation.
- [ ] I have followed this guide and ensured all necessary information is included.
__We'll take it from here.__

View File

@@ -0,0 +1,31 @@
# Dynamic Lane Profile (DLP)
Dynamic Lane Profile (DLP) aims to provide the best driving experience by confidently keeping the vehicle within a lane.
It allows sunnypilot to dynamically switch between lane profiles based on the lane recognition confidence level on the road.
!!! note
Due to the removal of lateral planner in newer Driving Models, Dynamic Lane Profile is only available with the
following selected Driving Models:
- New Delhi (December 21, 2023) - ND
- Blue Diamond v2 (December 11, 2023) - BDv2
- Blue Diamond (November 18, 2023) - BDv1
- Farmville (November 7, 2023) - FV
- Night Strike (October 3, 2023) - NS
## Available Modes
- **Auto Lane**: sunnypilot dynamically selects between `Laneline` or `Laneless` model.
- **Laneline**: uses the Laneline model only.
- **Laneless**: uses the Laneless model only.
### Feature Location
1. Settings
![Settings](../assets/features/dlp-1.png)
2. `sunnypilot` Panel
![sunnypilot Panel](../assets/features/dlp-2.png)
3. Select the desired mode
![DLP Select](../assets/features/dlp-3.png)

View File

@@ -0,0 +1,3 @@
# Features
WIP

View File

@@ -0,0 +1,40 @@
# Modified Assistive Driving Safety (M.A.D.S.)
Modified Assistive Driving Safety (MADS) aims to elevate the user's driving experience by modifying the behaviors of
driving assist engagements.
!!! note
This feature aligns closely with comma.ai's safety rules.
## Independent Engagement
MADS allows users to engage sunnypilot Automatic Lane Centering (ALC) for lateral control and Adaptive Cruise Control
(ACC) or Smart Cruise Control (SCC) for longitudinal control independently.
??? note "Why This Feature Exists"
While newer car models allow for independent engagement of lateral (steering) and longitudinal (speed) control,
many older models and stock openpilot enforce engaging both controls together. MADS introduces this modern
convenience to older models, effectively backporting a feature found in newer cars and providing users more flexibility.
## Dedicated Buttons
### Toggle for sunnypilot ALC
- `CRUISE (MAIN)` button: Available on all supported cars on sunnypilot.
- `LFA` button: Available on newer HKG cars.
- `LKAS` button: Available on Honda, Toyota, and Global Subaru.
### Engagement
- `SET-` button: Enables ACC/SCC.
- `CANCEL` button: Disables ACC/SCC only.
- `CRUISE (MAIN)` must be `ON` to use ACC/SCC.
!!! info
The `CRUISE (MAIN)` button disables sunnypilot completely when `OFF`. This is strictly enforced in the panda safety code.
## Lateral Control on Brake Pedal
Dedicated toggle to handle Lateral state on brake pedal press and release:
- **ON**: Pressing the `BRAKE pedal` will pause Automatic Lane Centering.

View File

@@ -0,0 +1,10 @@
# To start developing sunnypilot
sunnypilot is a fork of [commaai's openpilot](https://github.com/commaai/openpilot), developed by [sunnypilot](https://sunnypilot.ai) and by users like you.
We welcome both pull requests and issues on [GitHub](http://github.com/sunnypilot/sunnypilot).
* Join the [community Discord](https://discord.sunnypilot.ai)
* Check out [the contributing docs](../community/CONTRIBUTING.md)
* Check out the [openpilot tools](https://github.com/sunnypilot/sunnypilot/tree/master/tools)
* Read about the [development workflow](../community/WORKFLOW.md)
* Information about running sunnypilot and code documentation lives on the [sunnypilot docs](https://docs.sunnypilot.ai)

View File

@@ -0,0 +1,16 @@
# To start using sunnypilot in a car
To use sunnypilot in a car, you need four things:
1. **Supported Device:** a comma 3/3X, available at [comma.ai/shop](https://comma.ai/shop/comma-3x).
2. **Software:** The setup procedure for the comma 3/3X allows users to enter a URL for custom software. Use the URL `release-c3.sunnypilot.ai` to install the release version.
3. **Supported Car:** Ensure that you have one of [the 275+ supported cars](https://github.com/sunnypilot/sunnypilot/blob/master/docs/CARS.md).
4. **Car Harness:** You will also need a [car harness](https://comma.ai/shop/car-harness) to connect your comma 3/3X to your car.
[comma.ai](https://comma.ai) have detailed instructions for [how to install the harness and device in a car](https://comma.ai/setup).
!!! note
It's possible to run sunnypilot on [other hardware](https://blog.comma.ai/self-driving-car-for-free/), although it's not plug-and-play.

View File

@@ -0,0 +1,11 @@
# What is sunnypilot?
sunnypilot is a fork of [comma.ai's openpilot](https://github.com/commaai/openpilot), an open source driver assistance system. sunnypilot offers the user a unique driving experience for over 250+ supported car makes and models with modified behaviors of driving assist engagements. sunnypilot complies with comma.ai's safety rules as accurately as possible.
## How do I use it?
sunnypilot is designed to be used on the comma 3/3X.
## How does it work?
In short, sunnypilot uses the car's existing APIs for the built-in [ADAS](https://en.wikipedia.org/wiki/Advanced_driver-assistance_system) system and simply provides better acceleration, braking, and steering inputs than the stock system.

View File

@@ -0,0 +1,53 @@
# :map: Enabling Mapbox navigation
Enabling Mapbox Navigation on sunnypilot enhances your driving experience by providing accurate maps and directions.
Following the instructions below, you will set up a free Mapbox account, generating your own access token, and
configuring on your comma 3/3X. Next:
## 1. Create a free Mapbox account
Sign up for a free Mapbox account. Although a credit card is required for verification, you will not be charged for the
free tier.
## 2. Generate access token
!!! warning
You won't be able to access the secret key after this window.
On the Dashboard, find the **Access Tokens** section and click `Create a Token`. Name it as you like and set
the scopes to allow everything for both Public and Secret. Copy both keys.
## 3. Connect comma 3/3X to a network
Once rebooted, connect your comma 3/3X to a network with internet access and note the comma 3/3Xs IP address.
## 4. Configure keys
In a browser, navigate to `C3_IP:8082` (e.g., 192.168.1.69:8082). You should see the comma logo and an input field.
Paste your Public token (pk.xx), press enter, paste your Secret key (sk.xx), and press enter again. This page lets
you search for destinations.
## 5. Set Home and Work addresses
To set Home and Work addresses, search for a place, select Home/Work from the dropdown, and click Navigate. For
other destinations, select Recent Places.
!!! warning
Your comma 3/3X requires an active internet connection to download map data, generate directions, and update
ETA. Once data is downloaded, offline use is possible, but updates (like new directions after a missed turn)
won't occur.
!!! info
At this time, it is not possible to search directly on the comma 3/3X.
!!! info
Mapbox does not support alphanumeric addresses (e.g., W123N1234 Main St). There is currently no known
workaround for this.
!!! tip
If your comma 3/3X shows a "Map Loading" screen, a reboot via the UI should fix it.
Connect the comma 3/3X to a network (i.e. your phone's hotspot) and use your phone browser to search for places.
In the Navigation panel on the comma 3/3X, select Home, Work, and Recent Places without needing a browser
(assuming internet connection).

View File

@@ -0,0 +1,50 @@
# :satellite: Radar Tracks
Unlock the potential of sunnypilot by enabling radar tracks manually on applicable Hyundai/Kia/Genesis cars. Thanks to
[@greghogan](https://github.com/greghogan) and [@pd0wm](https://github.com/pd0wm), this feature is now accessible via SSH.
!!! info "How Radar Points Can Be Used Along With Vision"
Current openpilot policy is to identify with vision first and 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))
!!! caution
**USE AT YOUR OWN RISK!** Stock system safety features, such as AEB and FCW, may be affected by these changes.
## 1. Prerequisites
Ensure the car is in the `OFF` ignition position and connect your comma 3/3X to the car.
## 2. SSH connection
Connect to your comma 3/3X via [SSH](https://github.com/commaai/openpilot/wiki/SSH).
## 3. Execute commands
In the SSH terminal, execute the following commands:
```bash
pkill -f openpilot
python /data/openpilot/selfdrive/debug/hyundai_enable_radar_points.py
```
Follow the script instructions and ensure no faults appear.
## 4. Reboot
Reboot your comma 3/3X. Once rebotoed, start your car and ensure there is no fault caused by enabling the radar tracks.
## 5. Test drive
Go for a quick drive, drive behind a lead car, and allow the drive to upload its raw logs in [comma Connect](https://connect.comma.ai).
## 6. Verify in Cabana
Load the test route in [Cabana](https://github.com/sunnypilot/sunnypilot/tree/master/tools/cabana), load `hyundai_kia_mando_front_radar.dbc`, search `RADAR_TRACK_50x`,
and check `LONG_DIST`.
## 7. Confirmation
If the radar tracks data is relevant, you've successfully enabled radar tracks.
!!! tip
Having issues or need assistance? Reach out to the community in the `hyundai-kia-genesis` channel in
[sunnypilot Discord](https://discord.sunnypilot.ai) or [commaai community Discord](https://discord.comma.ai).

View File

@@ -0,0 +1,98 @@
# Turn the speed blue
*A getting started guide for openpilot development*
In 30 minutes, we'll get an openpilot development environment setup on your computer and make some changes to openpilot's UI.
And if you have a comma 3/3X, we'll deploy the change to your device for testing.
## 1. Setup your development environment
Run this to clone openpilot and install all the dependencies:
```bash
curl -fsSL openpilot.comma.ai | bash
```
Navigate to openpilot folder & activate a Python virtual environment
```bash
cd openpilot
source .venv/bin/activate
```
Then, compile openpilot:
```bash
scons -j8
```
## 2. Run replay
We'll run the `replay` tool with the demo route to get data streaming for testing our UI changes.
```bash
# in terminal 1
tools/replay/replay --demo
# in terminal 2
selfdrive/ui/ui
```
The openpilot UI should launch and show a replay of the demo route.
If you have your own comma device, you can replace `--demo` with one of your own routes from comma connect.
## 3. Make the speed blue
Search for “mph” with git grep in the `ui` folder.
```bash
$ git grep "mph" selfdrive/ui/
paint.cc: ui_draw_text(s, s->fb_w/2, 290, s->scene.is_metric ? "km/h" : "mph", 36 * 2.5, COLOR_WHITE_ALPHA(200), "sans-regular");
```
The line right above contains the actual speed. Unfortunately, COLOR_BLUE isnt defined, but a git grep of COLOR_WHITE shows its nvgRGBA(255, 255, 255, 255). Personally, I like a lighter blue, so I went with #8080FF.
```bash
$ git diff
diff --git a/selfdrive/ui/paint.cc b/selfdrive/ui/paint.cc
index 821d95115..cc996eaa1 100644
--- a/selfdrive/ui/paint.cc
+++ b/selfdrive/ui/paint.cc
@@ -175,8 +175,8 @@ static void ui_draw_vision_speed(UIState *s) {
const float speed = std::max(0.0, (*s->sm)["carState"].getCarState().getVEgo() * (s->scene.is_metric ? 3.6 : 2.2369363));
const std::string speed_str = std::to_string((int)std::nearbyint(speed));
nvgTextAlign(s->vg, NVG_ALIGN_CENTER | NVG_ALIGN_BASELINE);
- ui_draw_text(s, s->fb_w/2, 210, speed_str.c_str(), 96 * 2.5, COLOR_WHITE, "sans-bold");
- ui_draw_text(s, s->fb_w/2, 290, s->scene.is_metric ? "km/h" : "mph", 36 * 2.5, COLOR_WHITE_ALPHA(200), "sans-regular");
+ ui_draw_text(s, s->fb_w/2, 210, speed_str.c_str(), 96 * 2.5, nvgRGBA(128, 128, 255, 255), "sans-bold");
+ ui_draw_text(s, s->fb_w/2, 290, s->scene.is_metric ? "km/h" : "mph", 36 * 2.5, nvgRGBA(128, 128, 255, 200), "sans-regular");
}
static void ui_draw_vision_event(UIState *s) {
```
## 4. Rebuild UI, and admire your work
```
scons -j8 && selfdrive/ui/ui
```
![](https://blog.comma.ai/img/blue_speed_ui.png)
## 5. Push your fork to GitHub
Click fork on GitHub. Then, push with:
```bash
git remote rm origin
git remote add origin git@github.com:<your-github-username>/openpilot.git
git add .
git commit -m "Make the speed blue."
git push --set-upstream origin master
```
## 6. Run your fork on device in your car!
Uninstall openpilot from your device through the settings. Then, enter the URL for your very own installer:
```
installer.comma.ai/<your-github-username>/master
```
## 7. Admire your work IRL
![](https://blog.comma.ai/img/c3_blue_ui.jpg)

1
docs_sp/index.md Symbolic link
View File

@@ -0,0 +1 @@
getting-started/what-is-sunnypilot.md

View File

@@ -0,0 +1,14 @@
# Prohibited Safety Modifications
All [official sunnypilot branches](https://github.com/sunnyhaibin/sunnypilot/branches) strictly adhere to [comma.ai's safety policy](https://github.com/commaai/openpilot/blob/master/docs/SAFETY.md). Any changes that go against
this policy will result in your fork and your device being banned from both comma.ai and sunnypilot channels.
The following changes are **VIOLATIONS** of the safety policy and **ARE NOT** supported in any official sunnypilot branches:
!!! danger "Driver Monitoring"
- "Nerfing" or reducing monitoring parameters.
!!! danger "Panda Safety"
- No preventing disengaging of <ins>**longitudinal control**</ins> (positive/negative acceleration) on brake pedal press.
- No auto re-engaging of <ins>**longitudinal control**</ins> (positive/negative acceleration) on brake pedal release.
- No disengaging on `CRUISE MAIN` in `OFF` state.

View File

@@ -0,0 +1 @@
../../CHANGELOGS.md

View File

@@ -0,0 +1,20 @@
# 🚨 Read Before Installing
It is recommended to read the <u>**entire documentation**</u> before proceeding. This will ensure that you fully understand each added feature in sunnypilot. This also ensures that you are choosing the correct settings and branch for your car to have the best driving experience.
!!! warning
By installing this software, you accept all responsibility for anything that might occur while you use it. sunnypilot and all contributors to sunnypilot are not liable.
**Use at your own risk.**
## Installation
Please refer to the [Recommended Branches](../branches/recommended-branches.md) to find your preferred/supported branch. This guide will assume you want to install the latest `release-c3` branch.
You can install sunnypilot on your comma 3/3X using one of the following methods:
- ### [URL Method (Directly on Device)](url-method.md)
This method allows you to install sunnypilot directly from your device's screen using a provided URL. It's simple and user-friendly, requiring no additional tools or external devices.
- ### [SSH Method (Command Line)](ssh-method.md)
This method is for advanced users who prefer to use SSH to clone the sunnypilot repository and install it manually via the command line. It offeres greater control over the installation process.

View File

@@ -0,0 +1,26 @@
# SSH Method
If you are looking to install sunnypilot via SSH, run the following commands in an SSH terminal after connecting to your comma 3/3X:
1. Navigate to `data` directory
```sh
cd /data
```
2. Clone sunnypilot
!!! example ""
`release-c3` branch is used in this step as an example.
```sh
git clone release-c3 --recurse-submodules https://github.com/sunnyhaibin/openpilot.git
```
3. Git LFS
```sh
git lfs pull
```
4. Reboot
```sh
sudo reboot
```

View File

@@ -0,0 +1,37 @@
# URL Method
The URL installation method can be done in two ways, depending on your current setup and version of sunnypilot on your device.
=== "sunnypilot not installed, or sunnypilot < 0.8.17"
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, upon reboot, select `Custom Software` when given the option.
3. Input the **Installation URL** per [Recommended Branches](../branches/recommended-branches.md).
4. Complete the rest of the installation by following the onscreen instructions.
!!! info "[Recommended Branches](../branches/recommended-branches.md)"
| Branch | Installation URL |
|:------------:|:--------------------------------:|
| `release-c3` | release-c3.sunnypilot.ai |
| `staging-c3` | staging-c3.sunnypilot.ai |
| `dev-c3` | dev-c3.sunnypilot.ai |
!!! example "Example of Installation URL"
`release-c3.sunnypilot.ai`[^1]
=== "sunnypilot already installed, or sunnypilot ≥ 0.8.17"
1. On the comma 3/3X, go to `Settings``Software`.
2. At the `Download` option, press `CHECK`. This will fetch the list of latest branches from the sunnypilot repository on GitHub.
3. At the `Target Branch` option, press `SELECT` to open the `Target Branch` selector.
4. Scroll and select the **Desired Branch** per Recommended Branches.
!!! info "[Recommended Branches](../branches/recommended-branches.md)"
| Branch | Installation URL |
|:------------:|:--------------------------------:|
| `release-c3` | release-c3.sunnypilot.ai |
| `staging-c3` | staging-c3.sunnypilot.ai |
| `dev-c3` | dev-c3.sunnypilot.ai |
!!! example "Example of Desired Branch"
`release-c3`
[^1]: Shortened URL for convenience. Full URL is `smiskol.com/fork/sunnyhaibin/release-c3`.

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

150
mkdocs-sp.yml Normal file
View File

@@ -0,0 +1,150 @@
site_name: sunnypilot docs
repo_name: sunnypilot/sunnypilot
repo_url: https://github.com/sunnypilot/sunnypilot/
site_description: sunnypilot Documentation
site_url: https://docs.sunnypilot.ai
edit_uri: blob/new-docs/docs_sp
exclude_docs: README.md
strict: true
docs_dir: docs_sp
site_dir: docs_sp_site/
theme:
name: material
icon:
repo: fontawesome/brands/github
edit: material/file-edit-outline
view: material/file-eye-outline
features:
- content.action.edit
- content.action.view
- content.code.copy
- content.code.select
#- navigation.expand
- navigation.footer
- navigation.indexes
- navigation.path
- navigation.sections
- navigation.tabs
- navigation.tabs.sticky
- navigation.top
- search.suggest
- search.highlight
- search.share
font:
text: Roboto
code: Roboto Mono
palette:
- media: "(prefers-color-scheme)"
toggle:
icon: material/link
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: indigo
accent: indigo
toggle:
icon: material/toggle-switch
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: black
accent: indigo
toggle:
icon: material/toggle-switch-off
name: Switch to system preference
navigation_depth: 3
markdown_extensions:
- admonition
- attr_list
- def_list
- footnotes
- md_in_html
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.magiclink:
normalize_issue_symbols: true
repo_url_shorthand: true
user: sunnypilot
repo: sunnypilot
- pymdownx.snippets
- pymdownx.superfences
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tasklist:
custom_checkbox: true
clickable_checkbox: true
- toc:
permalink: true
plugins:
- git-authors
- git-committers:
repository: sunnypilot/sunnypilot
branch: master
enabled: !ENV [CI, false]
- git-revision-date-localized:
enable_creation_date: true
- search
extra:
analytics:
provider: google
property: !ENV GOOGLE_ANALYTICS_KEY
feedback:
title: Was this page helpful?
ratings:
- icon: material/emoticon-happy-outline
name: This page was helpful
data: 1
note: >-
Thanks for your feedback!
- icon: material/emoticon-sad-outline
name: This page could be improved
data: 0
note: >-
Thanks for your feedback! Help us improve this page by
using our <a href="..." target="_blank" rel="noopener">feedback form</a>.
nav:
- Getting Started:
- index.md
- What is sunnypilot?: getting-started/what-is-sunnypilot.md
- Use sunnypilot in a car: getting-started/use-sunnypilot-in-a-car.md
- Develop sunnypilot: getting-started/develop-sunnypilot.md
- Setup:
- 🚨 Read before installing 🚨: setup/read-before-installing.md
- Installation:
- URL Method: setup/url-method.md
- SSH Method: setup/ssh-method.md
- Changelogs:
- setup/changelogs/index.md
- Features:
- features/index.md
- Community:
- Contributing: community/CONTRIBUTING.md
- Reporting a bug: community/reporting-a-bug.md
- Reporting a docs issue: community/reporting-a-docs-issue.md
- Asking a question: https://discord.sunnypilot.ai
- Safety Information:
- Safety: SAFETY.md
- Prohibited safety modifications: safety-information/prohibited-safety-modifications.md
- How To:
- Enabling Mapbox navigation: how-to/enabling-mapbox-navigation.md
- Turn the speed blue: how-to/turn-the-speed-blue.md
- Hyundai:
- Enabling Radar Tracks: how-to/hyundai/enabling-radar-tracks.md
- References:
- Branches:
- Definitions: branches/definitions.md
- Recommended Branches: branches/recommended-branches.md

38
mkdocs.yml Normal file
View File

@@ -0,0 +1,38 @@
site_name: openpilot docs
repo_url: https://github.com/commaai/openpilot/
site_url: https://docs.comma.ai
exclude_docs: README.md
strict: true
docs_dir: docs
site_dir: docs_site/
theme:
name: readthedocs
navigation_depth: 3
nav:
- Getting Started:
- What is openpilot?: getting-started/what-is-openpilot.md
- How-to:
- Turn the speed blue: how-to/turn-the-speed-blue.md
- Connect to a comma 3/3X: how-to/connect-to-comma.md
#- Replay a drive: how-to/replay-a-drive.md
- Concepts:
- Logs: concepts/logs.md
- Safety: concepts/safety.md
- Car Porting:
- What is a car port?: car-porting/what-is-a-car-port.md
- Porting a car brand: car-porting/brand-port.md
- Porting a car model: car-porting/model-port.md
- Contributing:
- Roadmap: contributing/roadmap.md
#- Architecture: contributing/architecture.md
- Contributing Guide →: https://github.com/commaai/openpilot/blob/master/docs/CONTRIBUTING.md
- Links:
- Blog →: https://blog.comma.ai
- Bounties →: https://comma.ai/bounties
- GitHub →: https://github.com/commaai
- Discord →: https://discord.comma.ai
- X →: https://x.com/comma_ai

Submodule opendbc deleted from adc1fffe60

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