18998 Commits

Author SHA1 Message Date
amzoo db27a433fc Toyota TSS2: custom longitudinal tuning (#1774)
* TSS2-Smooth: add param, flag injection, UI toggle, and metadata

- Register TSS2-Smooth param in params_keys.h
- Add TSS2-Smooth to toyota keys in initialize_params()
- Update opendbc submodule to use CP_SP flag instead of direct Params import
- Add TSS2 Smooth Longitudinal toggle to Toyota settings UI
- Disable toggle when stock longitudinal is enforced
- Add TSS2-Smooth entry to params_metadata.json

* toyota: rework TSS2 smooth param and toggle

* bump opendbc

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2026-10-27 00:43:20 -04:00
Jason Wen a06366ce92 controls: decouple RELC from BSM blocking, allow nudge override (#2049)
* controls: decouple RELC from BSM blocking, allow nudge override

* nah
staging/2026.003.000/2026.10.26-4978
2026-10-25 22:48:26 -04:00
nitrobass24 861fd118a1 ci: scons cache test runs (#2074) staging/2026.003.000/2026.10.26-4976 2026-10-25 17:23:33 -07:00
Jason Wen 8e740e0ac6 bump opendbc staging/2026.003.000/2026.10.23-4972 2026-10-22 22:20:29 -04:00
James Vecellio-Grant 9d029d683d models: self healing test for tg (#2072)
* models: self healing test for tg

* rm container

* ew

* set env

* set var
staging/2026.003.000/2026.10.22-4970
2026-10-22 13:43:42 -04:00
Amy Jeanes f78c6c2377 models: publish the download speed and derive the eta from it (#2052)
* models: publish the download speed and derive the eta from it

Fills in DownloadProgress.speed (bytes per second, declared with the parallel
downloader). The reporter measures the rate between its 0.5 s reports, smooths
it, and derives the eta from the bytes remaining at that rate instead of
extrapolating elapsed time. Speed is zeroed when a download ends, fails or is
cancelled and for a cached artifact, and copied across artifacts that share a
file like the other progress fields.

The big UI's Models page shows "12.3 MB/s" next to the progress bar and the
mici models panel shows it beside the percentage. Both take the max across a
bundle's artifacts, not the sum, since artifacts sharing a file mirror the same
transfer and only one file is ever in flight.

A stall decays the smoothed speed toward 0 without ever reaching it, so below
0.05 MB/s, which would only display as "0.0 MB/s", it snaps to 0. Both UIs
then show "--.- MB/s" while downloading with no rate (before the first reading
or during a stall) instead of a stuck "0.0 MB/s" or nothing, and the speed
recovers straight to the real rate once data flows again. The snap also keeps
the eta in range: without it a stall of about 25 s drove remaining / speed past
the capnp UInt32 eta, and the capnp error failed the download outright instead
of leaving the stall to the read timeout and retries. A test holds a piece
stalled until the published speed reaches exactly 0, and errors on that
overflow without the snap.

Assisted-by: Claude Code (Claude Opus 4.8)
Assisted-by: Claude Code (Claude Opus 5.5)

* remove unneeded comments

Assisted-by: Claude Code (Claude Opus 5.5)

* models: take the speed baseline before the workers start

The reporter took its starting byte count after the piece workers were
submitted, and starting each pool thread lets earlier workers run, so
bytes landed in that gap never counted toward a speed sample. Take the
baseline in _download_file before any worker exists and pass it in.

The test runs every piece inline in submit, so the whole file lands
before the reporter starts; with the late baseline the speed stays 0.

Assisted-by: Claude Code (Claude Opus 5.5)
staging/2026.003.000/2026.10.21-4967
2026-10-21 16:13:52 -07:00
James Vecellio-Grant 1aa3a430fb models: pin tg to @02e6981 (#2071) staging/2026.003.000/2026.10.21-4964 2026-10-21 11:11:24 -07:00
Amy Jeanes ddd7b14ebc models: download whole-file artifacts with parallel byte ranges (#2051)
* models: download whole-file artifacts with parallel byte ranges

HuggingFace's Xet CAS throttles each connection to roughly 1-2 MB/s but does
not limit connection count, so the single-stream _download_file left the link
idle most of the time. Replace it with a downloader that probes the size with
a one-byte Range request, creates the file at its final size and streams each
8 MB piece straight to its offset from one of 12 worker threads. The file is
never copied or assembled and only ever occupies its own size on disk. A
server that answers the probe with 200 gets one plain stream instead.
Every request sends Accept-Encoding: identity, because byte ranges count
encoded bytes while requests hands back decoded ones, so a compressed
response would land at the wrong offsets and fail as a short read.

Workers only write bytes; a reporter coroutine on the event loop publishes
progress every 0.5 s (instead of every 128 KB), re-raises the first worker
failure and polls the cancel ref. Transient errors (connection, timeout,
truncated body, HTTP 408/429/500/502/503/504) give a piece up to three
attempts; any other HTTP error fails the download at once. The whole-file
path now also publishes "verifying" while hashing before and after the
transfer, and the download is hashed against the manifest exactly as before.

A cancel has to wait for in-flight pieces to unwind (a blocked socket read
cannot be interrupted), so the row shows "canceling..." through a new
DownloadProgress.canceling flag instead of a frozen bar, and the mici cancel
button hides once the ref is gone, as it already does on the big UI.

DownloadProgress gains speed, canceling and resuming, appended to the capnp so
older readers are unaffected. All three are declared here so the wire format
lands in one place; speed and resuming are filled in by the follow-up speed
and resume changes.

Builds on #2050, which drops chunking and publishes models as whole files;
this makes that whole-file download parallel.

Measured on a comma 3X on WiFi: ~2 MB/s single stream, 17-24 MB/s steady and
30-60 MB/s peak with 12 range connections, the count picked from an on-device
sweep. Disk is not the bottleneck (eMMC writes at 56-67 MB/s with fdatasync).

Tests drive the real downloader against a local threaded range server: piece
tiling, actual parallelism (a stalled piece does not block the others), the
no-range fallback, per-piece retry, 4xx, cancel via ModelManager_DownloadRef
and mid-piece, verify/cached/downloaded state, a probe failure moving
past verifying, and hash mismatch cleanup.

Also drops two chunk-era leftovers in the tests: a stale "no chunks" note on
manifest_bundle and a one-item URL loop in the live manifest check.

Assisted-by: Claude Code (Claude Opus 4.8)
Assisted-by: Claude Code (Claude Opus 5.5)

* remove unneeded comments

* models: trim the manager tests to the regressions they catch

Each remaining test is there because a deliberate break in manager.py,
helpers.py or fetcher.py fails it. Tests that only re-checked what another
already catches are merged into a happy-path download or a table, and
checks of constants rather than behaviour are dropped. The fake server
now starts per test, keeps its state in one dataclass, and can cut a
response short.

Against 66 deliberate breaks, every one the old tests caught still fails,
and a 404 being retried, a short read and its retry, and the display
flags choosing the big model without a GPU are now caught too.

Assisted-by: Claude Code (Claude Opus 5.5)

* Update test_manager_download.py

* Update manager.py

---------

Co-authored-by: James Vecellio-Grant <159560811+Discountchubbs@users.noreply.github.com>
staging/2026.003.000/2026.10.21-4961
2026-10-21 09:35:43 -07:00
James Vecellio-Grant 922513f312 ci: lfs pointers survive gc (#2066)
* ci: lfs pointers survive gc

* comma got gc'ed

* format
staging/2026.003.000/2026.10.19-4955 staging/2026.003.000/2026.10.19-4959
2026-10-18 22:41:23 -07:00
Kumar 0dacd0eec4 Revert "mapd: disable map-based Smart Cruise Control and speed limit sources until mapd has a position source" (#2065)
This reverts commit b6170ac5e9.
staging/2026.003.000/2026.10.19-4953
2026-10-18 19:25:14 -07:00
Kumar 09b2f4bbe0 mapd: fix mapd GPS position handling (#2064)
* mapd: restore the position mapd reads from llk

* turn it on

* mapd ui

* Revert "mapd ui"

This reverts commit 857d430297.

* Revert "turn it on"

This reverts commit 2a5d9a62be.
staging/2026.003.000/2026.10.19-4951
2026-10-18 19:07:32 -07:00
Amy Jeanes 0120b66f05 modeld: set AM_PERF_LEVEL to high for perf (#2061)
set AM_PERF_LEVEL to high for perf

Co-authored-by: James Vecellio-Grant <159560811+Discountchubbs@users.noreply.github.com>
staging/2026.003.000/2026.10.18-4949
2026-10-18 16:16:49 -07:00
James Vecellio-Grant f09b04c267 ci: upload big model over lfs (#2063)
ci: push chestnut via lfs
staging/2026.003.000/2026.10.18-4948
2026-10-18 16:14:06 -07:00
James Vecellio-Grant f0617e11a6 ci: fix default models (#2062)
* ci: fix default models

* shouldnt of been deleted

* skip dm warp as well
staging/2026.003.000/2026.10.18-4944
2026-10-18 15:30:33 -07:00
Jason Wen 0739fe823d Sync: commaai/openpilot:master → sunnypilot/sunnypilot:master (#2059) 2026-10-18 15:39:49 -04:00
Jason Wen b6170ac5e9 mapd: disable map-based Smart Cruise Control and speed limit sources until mapd has a position source 2026-10-18 15:25:45 -04:00
James Vecellio-Grant e6864661c9 modeld_v2: create a compiled pkl -> gpu kernel artifact converter (#2053) 2026-10-18 15:25:45 -04:00
James Vecellio-Grant 4ff90ff8d0 modeld_v2: compile models to plain gpu memory artifact (#2050) 2026-10-18 15:25:45 -04:00
Jason Wen 2149006ec7 Merge commit '35e78a9d9518855ec0dacec919e719624a28131f' into sync-20261016
# Conflicts:
#	.gitattributes
#	.gitignore
#	.gitmodules
#	opendbc_repo
#	openpilot/common/params_keys.h
#	openpilot/common/version.py
#	openpilot/selfdrive/car/card.py
#	openpilot/selfdrive/controls/lib/longitudinal_planner.py
#	openpilot/selfdrive/controls/plannerd.py
#	openpilot/selfdrive/controls/tests/test_latcontrol.py
#	openpilot/selfdrive/modeld/modeld.py
#	openpilot/selfdrive/pandad/pandad.py
#	openpilot/selfdrive/selfdrived/alerts_offroad.json
#	openpilot/selfdrive/selfdrived/selfdrived.py
#	openpilot/selfdrive/test/longitudinal_maneuvers/plant.py
#	openpilot/selfdrive/ui/layouts/settings/developer.py
#	openpilot/selfdrive/ui/layouts/settings/toggles.py
#	openpilot/selfdrive/ui/mici/layouts/home.py
#	openpilot/selfdrive/ui/mici/layouts/onboarding.py
#	openpilot/selfdrive/ui/mici/onroad/model_renderer.py
#	openpilot/selfdrive/ui/onroad/model_renderer.py
#	openpilot/selfdrive/ui/soundd.py
#	openpilot/selfdrive/ui/translations/app.pot
#	openpilot/selfdrive/ui/translations/app_de.po
#	openpilot/selfdrive/ui/translations/app_en.po
#	openpilot/selfdrive/ui/translations/app_es.po
#	openpilot/selfdrive/ui/translations/app_fr.po
#	openpilot/selfdrive/ui/translations/app_ja.po
#	openpilot/selfdrive/ui/translations/app_ko.po
#	openpilot/selfdrive/ui/translations/app_pt-BR.po
#	openpilot/selfdrive/ui/translations/app_th.po
#	openpilot/selfdrive/ui/translations/app_tr.po
#	openpilot/selfdrive/ui/translations/app_uk.po
#	openpilot/selfdrive/ui/translations/app_zh-CHS.po
#	openpilot/selfdrive/ui/translations/app_zh-CHT.po
#	openpilot/selfdrive/ui/ui_state.py
#	openpilot/system/hardware/chestnut/status.py
#	openpilot/system/manager/process_config.py
#	openpilot/system/ui/README.md
#	panda
#	tinygrad_repo
2026-10-18 15:25:44 -04:00
Adeeb Shihadeh 35e78a9d95 show offroad alert for ignored uploads (#39104) 2026-10-16 19:19:47 -07:00
royjr 27c132984d bug: fix duplicate MADS no-entry alerts (#1949)
* alert-dedup

* Update selfdrived.py

* Update selfdrived.py

* one liner

---------

Co-authored-by: James Vecellio-Grant <159560811+Discountchubbs@users.noreply.github.com>
staging/2026.003.000/2026.10.16-4935
2026-10-16 12:56:24 -04:00
Harald Schäfer 0d57eadd74 Remove obsolete Chill mode code (#39097)
* Remove obsolete Chill mode code

* Remove obsolete Chill mode test variants

* Use measured ego motion for stock ACC planning

* Restore roadmap entry

* Preserve stock ACC path colors and camera view

* remove allowThrottle

* Deprecate unused experimentalMode field

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2026-10-16 09:47:48 -07:00
royjr f20d9ea5e6 chestnut: show icon with mads engagement (#1980)
* ui engaged

* try simple

* Revert "try simple"

This reverts commit b951385080.

* move to sp

* Update opendbc_repo

* Revert "Update opendbc_repo"

This reverts commit d3d8a351ea.

* Update opendbc_repo

* Update opendbc_repo
staging/2026.003.000/2026.10.16-4933
2026-10-16 12:33:43 -04:00
Kumar 5ec0c02195 Sunset Dynamic Experimental Mode (DEC) (#2056) staging/2026.003.000/2026.10.16-4931 2026-10-16 07:03:15 -07:00
Shane Smiskol 90932d9b5c releases tweaks 2026-10-15 21:21:28 -07:00
Shane Smiskol fcf4b0d395 Initial cruise set speed scroller ui (#39098)
* Revert " A New Dawn"

This reverts commit f50108b4af.

* Revert "Add configurable initial max speed (#39081)"

This reverts commit 24c26487f4.

* add back some stuff and new ui

* exp mode removal again

* restore tici

* rm exp mode and add new designs, fix color bug for tici

* dedup

* more dedup

* round values when toggling between metric!

* nick design tm

* inlining

* simplification

* fix

* cmts

* clr

* clr

* remove taparea

* rm

* rm

* clean up
2026-10-15 20:51:41 -07:00
Harald Schäfer f5bcd10a2a Fix typo in Autospeed feature name 2026-10-15 16:54:10 -07:00
Harald Schäfer cd3d5b0057 Update RELEASES.md for version 0.11.3 changes
Added details about the new auto-speed feature in version 0.11.3, including its capabilities and transition from beta mode.
2026-10-15 16:52:13 -07:00
Shane Smiskol 4429ec0c8c update translations (#39101) 2026-10-15 16:04:04 -07:00
Shane Smiskol 41acce17fa Rename to following distance (#39100)
rename
2026-10-15 15:59:39 -07:00
James Vecellio-Grant f7bc31f208 ci: no hook (#2055) staging/2026.003.000/2026.10.15-4929 2026-10-15 07:41:21 -07:00
Shane Smiskol 75b2ccca60 Minor initial set speed fixes (#39099)
* fix bugs

* cmt
2026-10-15 01:22:01 -07:00
Harald Schäfer f50108b4af A New Dawn 2026-10-14 21:33:00 -07:00
Adeeb Shihadeh fe7ccf9587 Ratekeeper: resync after a stall instead of running catch-up frames (#39095) 2026-10-14 17:11:30 -07:00
Harald Schäfer 24c26487f4 Add configurable initial max speed (#39081)
* Add configurable initial cruise speed

* Use five-unit steps for initial max speed

* Adjust initial max speed directly in settings

* Limit initial max speed to supported cars and a 25 mph minimum

* scroller

* no spring

* Revert "no spring"

This reverts commit bf104344a6b93a9b4c574da6e049657f5767d227.

* Revert "scroller"

This reverts commit e4255e895edfd46d06676f3048eeeae2a781d689.

* Clarify initial cruise speed parameter units

* Simplify initial max speed controls

* Repeat initial max speed adjustments while held

* Snap initial cruise speed adjustments to five-unit steps

* Clean up initial cruise speed initialization and repeat callback

* Update toggles.py

* Fix initial max speed setting description

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2026-10-14 16:45:37 -07:00
Harald Schäfer 6eb63e0454 pigeond: set minimum satellite elevation to 0 degrees (#39083)
Co-authored-by: haraschax <6804392+haraschax@users.noreply.github.com>
2026-10-14 16:27:29 -07:00
Shane Smiskol 690fa743b9 ui: check raylib version for keyboard gradient (#39036) 2026-10-14 15:06:26 -07:00
Daniel Koepping 4f3626dc9b bump to 0.11.3 (#39093) 2026-10-14 14:27:52 -07:00
Harald Schäfer 1e219d7785 MD v3 (#39087)
1365126a-e71e-4778-be00-8ab92dc82c09/12864

Co-authored-by: haraschax <6804392+haraschax@users.noreply.github.com>
2026-10-14 13:43:30 -07:00
Daniel Koepping 6939d172e8 modeld: retry big model loading once (#39086)
modeld: retry big model load once with an onroad cycle
2026-10-14 11:54:07 -07:00
Daniel Koepping 66752e769f bump panda (#39092) 2026-10-14 11:53:36 -07:00
Daniel Koepping 21edbbcfb9 bump tinygrad (#39085) 2026-10-14 11:53:15 -07:00
Harald Schäfer 2b09bc94a9 modeld: seed previous curvature when lateral control is inactive (#39091)
* modeld: seed previous curvature when lateral control is inactive

* modeld: reuse current curvature from carControl

* Revert "modeld: reuse current curvature from carControl"

This reverts commit 2f63062fd1b70e6e6f128b320bc7a8265a7d36e7.
2026-10-14 10:20:22 -07:00
Adeeb Shihadeh cb1d6f11a7 pandad: 1s wait for panda to come up (#39090) 2026-10-14 09:32:32 -07:00
Adeeb Shihadeh d3f0aab96f pandad: simplify flashing loop (#39089) 2026-10-14 08:47:35 -07:00
Adeeb Shihadeh 50319fa702 simple SPI (#39076) 2026-10-14 08:19:41 -07:00
James Vecellio-Grant 9bebe42f73 default models: fix big (#2046)
* fix big

* whoops
staging/2026.003.000/2026.10.14-4924 staging/2026.003.000/2026.10.14-4927
2026-10-13 23:45:39 -04:00
Harald Schäfer 1623441a9f pigeond: aid startup with last GPS position (#39079)
* pigeond: aid startup with last GPS position

* pigeond: aid position after receiver setup

* pigeond: fixed 100km position accuracy, skip stale positions

* store LastGPSPosition as capnp bytes

* ubloxd: save LastGPSPosition

* pigeond: send time and position once system time is valid

* pigeond: use datetime for saved position age

* pigeond: remove position accuracy comment

* pigeond: send position assistance during initialization

* Update ubloxd.py

---------

Co-authored-by: haraschax <6804392+haraschax@users.noreply.github.com>
2026-10-13 16:56:59 -07:00
Adeeb Shihadeh 675d38213e ssh.py: try local route first (#39082) 2026-10-13 16:29:53 -07:00
DimitriChrysafis a47d1c56f6 remove unused code (#39080) 2026-10-13 11:55:22 -07:00