Commit Graph

144 Commits

Author SHA1 Message Date
mawei f7dab698b3 编辑c3_client.py 2026-09-03 20:09:31 +08:00
Jason Wen df1de1031f ci: route build_model runner by hardware type 2026-09-01 19:18:52 +08:00
James Vecellio-Grant cbd075288c modeld_v2: big to small model fallback (#1974) 2026-09-01 19:18:47 +08:00
royjr 98dd4830df chestnut: alert when big model ready (#1947)
egpu: alert when big model ready

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2026-09-01 19:18:33 +08:00
Comma Device 01093dffaa ui: hide Neural Network Lateral Control (NNLC) toggle from steering settings 2026-08-30 21:08:24 +08:00
Comma Device 509e69dafe pandad: fix UnboundLocalError from local import subprocess shadowing module import 2026-08-30 21:02:44 +08:00
Comma Device d263c7d624 pandad: wait for panda in bootstub phase instead of resetting (bootstub->app switch ~10s) 2026-08-30 17:01:08 +08:00
Comma Device 6ee949d283 pandad: shorten cold-boot USB enumeration wait (C3XL panda needs a reset, 20s wait just delays onroad) 2026-08-30 16:33:06 +08:00
Comma Device 8b3707c56e pandad: protect app firmware from recover, retry normal reset before entering ROM bootloader (ref 015f9f7c) 2026-08-30 14:24:00 +08:00
github-actions[bot] df7996a678 modeld_v2: big to small model fallback (PR-1974) 2026-08-30 13:54:40 +08:00
Comma Device 2a2e8be49a modem: downgrade incomplete SIM identity warning to debug (no SIM installed) 2026-08-29 12:57:24 +08:00
Comma Device bf3d26215d pandad: wait for internal panda USB enumeration before resetting (fix slow panda startup) 2026-08-29 12:48:59 +08:00
Comma Device 8f03c24d94 ui: store chestnut_orange.png as regular file (was an LFS pointer, breaking UI on fresh installs without LFS) 2026-08-29 12:30:09 +08:00
Comma Device 140c8893f2 common: rebuild libparams_c.so with merged params_keys.h (fix UnknownKeyName for ModelManager_*_Chestnut on fresh installs) 2026-08-29 09:12:49 +08:00
Comma Device 4ded62b9e2 changelog: strip Chinese translations, keep English only 2026-08-29 08:52:33 +08:00
Comma Device 696b160126 changelog: add MR.ONE-2026 C3XL release notes (black panda support, upstream sync) 2026-08-29 08:48:52 +08:00
Jason Wen 78051cc14b Sync: commaai/openpilot:master → sunnypilot/sunnypilot:master (#1973) 2026-08-29 08:41:00 +08:00
Nayan 9c9b0a1d7d osm: support map deletion via sunnylink (#1971)
delete delete
2026-08-28 20:23:21 +08:00
comma 679eed622f pandad.py: don't reset/flash on every boot; wait for internal panda to boot before deciding to flash 2026-08-28 20:08:02 +08:00
comma 23ebc4989c fix F4 panda freeze under CAN load: move stack above .bss (stack/.bss overlap); plus clock_source register masks, hard fault handler + debug readback 2026-08-28 11:31:31 +08:00
comma fb376218be add prebuilt panda firmware binaries (F4 DOS + H7) 2026-08-28 09:58:41 +08:00
comma 9c8d543346 pandad.py: pass serial to C++ pandad (USB-only panda) 2026-08-28 09:38:29 +08:00
comma 641d3cd371 usb.cc: include unistd for usleep 2026-08-28 09:30:55 +08:00
comma 6c8fe68914 usb.cc: tolerate BUSY on set_configuration, retry claim 2026-08-28 09:29:55 +08:00
comma 857d34b65d pandad.py: delay before launching C++ pandad for USB release 2026-08-28 09:28:49 +08:00
comma e2a010020b remove stale bootloader magic jump; 0xd1 jumps directly 2026-08-28 09:21:55 +08:00
comma 2feb6b0b28 usb.py: no trailing GETSTATUS in DFU jump 2026-08-28 09:19:27 +08:00
comma 542603ec3c early_init: no self-heal reset on stale magic 2026-08-28 09:10:31 +08:00
comma 51b00e5108 fix bxcan pending_can_live 2026-08-28 09:03:38 +08:00
comma 170253de81 port USB black panda (DOS/F4) support: pandad USB comms, python lib, F4 firmware 2026-08-28 09:02:11 +08:00
Comma Device 5e0748d5f7 ui: add zh-CHS translations for model selector (#1953)
Adds Chinese translations for the new dual-slot model menu strings:
Small Model / Big Model / Model Status, download/verify status labels,
and the big-model failover notes.
2026-08-27 21:33:09 +08:00
Nayan d9ddf6e3a2 models: Model Selector upgrades (#1953)
* uh, i did not commit anything all this time

* slideee to the left, cha cha

* lint lint

* ui: unify model source predicate and per-source bundle lookup in model_info

* [TIZI/TICI] ui: disable the other-model row onroad like the active row

* [TIZI/TICI] ui: drop docstring that restates the function name

* [TIZI/TICI] ui: keep Favorites as the first model folder in the picker

* ui: record why model names read the params slots and not modelManagerSP

* ui: show the default model's name on the picker Default entries

* models: bind a download to its ref so cancel and reselect work everywhere

* models: resume partial chunked downloads and verify silently

* models: publish a verifying status so cached checks read as verification, not a stuck download

* [TIZI/TICI] ui: move download status onto each model's own row

* [TIZI/TICI] ui: show the row status description while it has text

* [TIZI/TICI] ui: restore the Model Status bar row

* models: a cancel interrupts verification immediately and keeps on-disk chunks

* models: a selection made mid-download queues instead of cancelling the transfer

* [TIZI/TICI] ui: Model Status shows both slots idle and the queued pick while busy

* [TIZI/TICI] ui: label the Model Status slots small and big and scroll long names

* models: start a queued download in the same tick and label empty slots (Default)

* ui: scroll Model Status names at the corrected speed

* [TIZI/TICI] ui: Model Status shows the big model failing over to small

* [TIZI/TICI] ui: stable model rows and a runner-matched failover note on Model Status

* [TIZI/TICI] ui: model rows show full names and the failover note reopens with the page

* ui: name the actually driving model runner-matched and bring mici to state parity

* fix ugly

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
Co-authored-by: James Vecellio-Grant <159560811+Discountchubbs@users.noreply.github.com>
2026-08-27 16:29:13 +08:00
Comma Device ae73b54d96 Rebuild libparams_c.so for #1966 dual-slot model params
#1966 changes ModelManager params: drops DownloadIndex and the PrevBundle
keys, adds DownloadRef and ActiveBundleUSBGPU, and switches ActiveJson to
JSON type. Rebuild the params C library so the new keys work on-device
without a rebuild.
2026-08-26 17:24:46 +08:00
Nayan e158ef7e22 models: dual-slot backend (qcom/usbgpu) with ref-based downloads (#1966)
* models: dual-slot backend (qcom/usbgpu) with ref-based downloads

* models: restore get_active_source and the usbgpu-to-qcom fallback

* models: fix per-slot validation and cap mismatched-source refetches

* ui/models: select models by ref and seed the usbgpu slot on migration

* models: drop defensive attribute guards on capnp bundles

* models: remove vestigial fetcher state and dead fallbacks

* models: resolve the active bundle from the active source slot only

* models: pass the usbgpu kwarg through the modeld test stubs

* models: resolve the displayed model from the active slot in ui_state

* models: correct the validation memo type hint

* models: drop docstrings that restate the function name

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2026-08-26 17:23:34 +08:00
Jason Wen 74f9dd400a ui: use full big model failure detection for sidebar and home eGPU icons (#1969) 2026-08-26 11:39:17 +08:00
Jason Wen 9d85823109 [TIZI/TICI] sidebar: show eGPU icon when chestnut is present (#1968)
* [tizi/tici] sidebar: show eGPU icon when chestnut is present

* matchy match

* fix
2026-08-26 11:39:13 +08:00
Jason Wen b9c0c73070 ui: fix scrolling label speed at non-60fps refresh rates (#1967)
* ui: fix scrolling label speed at non-60fps refresh rates

* send it

* nope

* more
2026-08-26 11:39:10 +08:00
Comma Device 4ceb7628b6 volkswagen: tune Avoid EPS Lockout for sharp 90+ degree turns
Extend the low-speed torque scaling from 4 m/s to 8 m/s and add steering
angle-based scaling (further reduction above 50 deg wheel angle) so the EPS
does not reject HCA on sharp 90+ degree turns taken at speed. Lower the
standstill torque floor from 80% to 60% and use a stronger torque dither
(3 units vs 1) when the toggle is on, to reset the EPS stuck-torque
protection timer.
2026-08-25 20:45:06 +08:00
Comma Device f07b8db86a Rebuild libparams_c.so for new ModelManager params (#1960)
Cherry-picked #1960 adds ModelManager_PrevBundle and
ModelManager_PrevBundle_USBGPU to params_keys.h, so rebuild the params C
library so the new keys are usable on-device without a rebuild.
2026-08-25 16:57:11 +08:00
Jason Wen 1f62c6c367 models: persist model selection per catalog across chestnut state changes (#1960) 2026-08-25 16:56:01 +08:00
Jason Wen 4d78e22c1d models: fix current model not updating on chestnut status (#1959)
* models: preserve user model selection across reboots and power cycles

* no

* again

* idk

* over
2026-08-25 16:56:01 +08:00
Jason Wen f7d8e09a63 ui/models: handle missing files during cache size calculation (#1958) 2026-08-25 16:56:01 +08:00
Comma Device aa1716d404 volkswagen: add Avoid EPS Lockout toggle (port from dragonpilot)
Adds a VW-brand toggle that scales steering torque down at low speeds
(vEgo 0.4 -> 80%, 3.5 -> 95%, >=4.0 -> 100% of STEER_MAX) to avoid EPS
lockout. Ported from dragonpilot (dp_vag_avoid_eps_lockout) following the
sunnypilot brand-params pattern: VagAvoidEPSLockout param -> VolkswagenFlagsSP
-> VW carcontroller. Default off; requires an onroad cycle to take effect.
2026-08-25 12:06:59 +08:00
Comma Device b061d88cfa panda: add GM ignition-over-CAN detection on bus 2 (SystemPowerMode 0x1F1)
FrogPilot handles the GM SystemPowerMode message on both bus 0 and bus 2
(SDGM cars send it on bus 2). C3XL-dev only checked bus 0, so GM cars with
0x1F1 on bus 2 never set ignition_can and the device would not auto power-on.
Mirror FrogPilot: check 0x1F1 on bus 2 as well, keep other exceptions bus-0 only.
2026-08-25 11:41:31 +08:00
Comma Device 22191a156d ui: four-state eGPU icon for non-default big models (PR-1945) 2026-08-24 18:49:18 +08:00
Comma Device c78a1a3748 models: use less strict chestnut detection state (#1948) 2026-08-24 18:48:51 +08:00
Comma Device b1a25ba41d modeld_v2: spatial features — apply latest upstream simplification (remove reshape conditional) 2026-08-24 09:12:31 +08:00
Comma Device d0bdbd0792 models: show big model list when Chestnut present (#1943) 2026-08-24 09:11:30 +08:00
Comma Device b8cd2a6808 modeld_v2: spatial features (PR-1934) latest; model list to v21/v22 2026-08-24 08:43:50 +08:00
Comma Device a69b5cc4f0 models: fix sunnylink default model display and false big model re-downloading (#1941) 2026-08-24 08:42:51 +08:00