Commit Graph

586 Commits

Author SHA1 Message Date
Daniel Koepping 780d406cce add chestnut model fallback test (#39058)
* test_onroad: chestnut usb unplug fallback

* test_onroad: fix chestnut unplug test

* test_onroad: chestnut fallback

* check that small model is running

* fix small model check

(cherry picked from commit 043759da3627803304956abbab4d10341cee8328)
2026-10-14 13:05:08 -05:00
Daniel Koepping f33318be4b chestnut: fix offroad alert (#39056)
chestnut: fix offroad alert

(cherry picked from commit 948ad05c6ceb7eed4cd18eb75f048ddd3230e3c1)
2026-10-14 13:05:08 -05:00
Daniel Koepping e5fa96c7e2 soundd: louder warning sounds (#39052)
(cherry picked from commit 28917bb3ab3f246725c475f14f94ee5416de2f91)
2026-10-14 13:05:08 -05:00
Daniel Koepping b4a8aa99f9 ui: sync gpu with offroad state (#39053)
ui: show chestnut icon before selfdriveState

(cherry picked from commit 8d1865bdc69d605821db7227500079329fdfd550)
2026-10-14 13:05:08 -05:00
Daniel Koepping 6e0dd44270 chestnut: align alerts (#39051)
chestnut: reword alerts

(cherry picked from commit f89ce23f9d1a09345a531233fcb8421a7ceb7be3)
2026-10-14 13:05:08 -05:00
firestar5683 3e96c9f4f2 Repair replay and Galaxy test contracts 2026-10-14 13:05:08 -05:00
firestar5683 6ef0150b0c Keep planner inputs fresh during settings refresh 2026-10-14 11:01:09 -05:00
firestar5683 fc94b2c274 Preserve fresh control authority during lag recovery 2026-10-14 09:48:36 -05:00
firestar5683 5d64e51af4 Remove notes 2026-10-14 09:04:12 -05:00
whoisdomi d3a1e4d373 Acceleration profiles fix 2026-10-14 08:43:53 -05:00
firestar5683 526f049f64 Revert "Restore planner isolation and prioritize audio playback"
This reverts commit 2d6c9cb241.
2026-10-14 08:34:59 -05:00
firestar5683 2d6c9cb241 Restore planner isolation and prioritize audio playback 2026-10-14 08:25:15 -05:00
firestarsdog 6720940d1b Build ARM64 device artifacts for replay 2026-10-14 05:16:18 -04:00
firestarsdog c1a7517ff9 On device replay 2026-10-14 04:31:12 -04:00
firestar5683 b0dd101b38 Qualify Galaxy settings and control defaults 2026-10-13 23:39:58 -05:00
firestar5683 72ef147f07 Complete Galaxy settings and vehicle controls 2026-10-13 23:07:13 -05:00
firestar5683 a019b9788f Trace SPI lock holders and control-loop waits 2026-10-13 21:07:39 -05:00
firestar5683 db1c5a7445 Fix startup locks and restore onroad behavior
Release inherited Params locks correctly across fork and exec. Preserve qualified lateral armed intent through temporary faults, restore the Big UI CEM gauge, improve speed typography, and hide unavailable CEM initialization text. Include matching device artifacts and focused regression coverage.
2026-10-13 19:44:58 -05:00
firestar5683 d9e6fef798 Preserve CEM hold across clock sampling 2026-10-13 14:41:43 -05:00
firestar5683 304b0105c1 Trace planner publication delays 2026-10-13 14:34:10 -05:00
firestar5683 eda46d9ecc Correct CEM clock sampling bounds 2026-10-13 14:21:51 -05:00
firestar5683 268668a39b Trace CAN producer delays 2026-10-13 10:57:06 -05:00
firestar5683 566838a019 Preserve temporary steering intent and CEM settings 2026-10-13 10:20:08 -05:00
whoisdomi 7d84f27fbb CEM rejection logging 2026-10-13 09:26:03 -05:00
firestar5683 0cc8d91b69 Add vehicle-specific Panda wake settings 2026-10-13 07:08:18 -05:00
firestar5683 2d321aeb6c Preserve stock lateral intent during temporary lag 2026-10-13 04:07:50 -05:00
firestar5683 4dd0036141 Preserve control recovery during temporary lag
Keep existing ordinary controls under the normal soft-disable countdown when current vehicle data and native permissions remain healthy. Preserve original command deadlines and qualify retained steering intent against completed publication provenance.
2026-10-13 03:27:31 -05:00
firestar5683 6f67fde67c Publish vehicle state before radar processing 2026-10-12 23:12:24 -05:00
firestar5683 8275858f4e Restore ordinary control recovery after source gaps 2026-10-12 22:48:33 -05:00
firestar5683 fefb631774 Preserve lateral intent through temporary lag 2026-10-12 21:39:39 -05:00
prabhaavp c7b990a330 Merge pull request #216 from dirwin31:Stardust-PR-7
AA Mobile Layout Edit Tweaks
2026-10-12 20:56:21 -04:00
firestar5683 2cb6e18f0b Instrument CAN receive scheduling boundaries 2026-10-12 19:17:00 -05:00
dirwin31 ccd85013cd Allow the comma display to sleep while Android Auto stays active
Add the off-by-default TurnOffCommaScreen preference and retain display ownership and wake behavior, with display tests.
2026-10-12 16:46:11 -07:00
firestar5683 834705eae8 Reconcile control inputs before authority decisions 2026-10-12 18:43:25 -05:00
firestar5683 a7e7ba591c Restore inherited Card worker scheduling 2026-10-12 18:33:34 -05:00
Dom f04b5d1693 selfdrived: short-circuit redundant final-publication qualification
Evaluate the existing active-axis and source-age predicates before the
pure vehicle qualification predicate. Preserve the same captured clock,
branch body, deadlines, native permission checks and output behavior.

Validation: 39 exact owner-output/clock comparisons, 1728 Capnp cases,
and 851 broad plus 70 rebased functional passes. An unchanged Card-only
host timing test failed in aggregate and passed isolated without importing
SelfdriveD; retain that performance limitation rather than claim all-green.

One qualification call is removed on the healthy fixture path. Host timing
benefit is small/noisy and is not evidence that road stalls are fixed.
Update protected source inventory receipt.
2026-10-12 15:45:34 -06:00
Dom 091f640ac3 card: move conditional settings reads off the control loop
Use the existing settings worker for proactive conditional-mode source
verification. Adopt one immutable snapshot per Card frame, with verified
age strictly below 500 ms. Busy, invalid, or stale snapshots defer
conditional proposals without disengaging ordinary control or AOL.

Preserve fresh per-request SafeMode and gesture mapping checks. Replay
retains its source-clock synchronous owner. Polling phase changes; no
blanket one-second cached permission is added.

Validation: 353 aggregate tests, independent boundary and actual-control
continuity checks, exact source imports and inventory receipt verification.
Measured conditional source reads on main drop from 36 to zero over a
three-second initialized fixture; worker reads increase proactively.
This removes a blocking path, not a demonstrated cure for all road stalls.
2026-10-12 15:38:20 -06:00
Dom 2878c992b2 diagnostics: capture bounded Ioniq control timing and latch-clear evidence
Enable compact Card phase capture for qualified Ioniq6 production runs,
including unlatched ordinary control. Record publication gaps, source and
receive clocks, thread CPU, settings-worker context, and latch-clear reasons.

Add bounded SelfdriveD phase, admission, original-proof and Ratekeeper
snapshots with off-thread reporting and suppression counters. Preserve
control predicates, original deadlines, thresholds and scheduling policy.

Validation: 583 combined tests pass on unchanged rerun; an initial host
wall-time microbenchmark failure and isolated pass are retained. Exact-source
import audits and independent review pass. Host overhead is measured, not
a target-device bound. This adds diagnostics, not a producer-lag fix.

Update protected source inventory receipt.
2026-10-12 14:49:44 -06:00
Dom f169ca0f4c selfdrived: check bounded proof deferral after intent drain
Use the same post-drain clock for source-expiry deferral and intent
admission, avoiding premature state disable when draining crosses the
source freshness cutoff. Preserve the original proof and deadline.

Add cutoff, follow-through, and restrictive-input regression coverage.
Update the protected source inventory receipt.

Validation: 416 focused aggregate tests and 79 independent boundary and
restriction checks; exact source import audits, Ruff, and ty pass.
This addresses a reproduced admission race, not underlying producer lag.
2026-10-12 14:19:45 -06:00
Dom 6c4dde8a07 Restore Ioniq 6 friction threshold and error behavior only
Exclude HYUNDAI_IONIQ_6 from the recent Hyundai CAN-FD highway friction wrapper, restoring original friction threshold/error passthrough in both controller modes. Preserve all steering limits, ramp rates, startup PID settings, scalar calibration, other vehicles, native assets and dropout repairs.

Update regression expectations and add exact Ioniq friction passthrough coverage. Focused suite: 22 passed; 559 repository Python imports match exact parent plus the three intended files. Independent numerical checks: 80,640 comparisons. Protected inventory receipt independently verified. This is the user-requested tuning revert, not a lag fix or on-device qualification.
2026-10-12 12:52:39 -06:00
Dom fb38c11888 Preserve fresh AOL renewal during an already-held brake
Recognize the existing qualified Ioniq lateral-only held-brake override when checking fresh-source renewal after an old output deadline. Exempt only recurring pedalPressed USER_DISABLE; retain new physical edges, other disable events, source/intent/session validation, native permission checks, and all expired-output enforcement. Do not extend leases or reenable longitudinal control.

Add 28 owner/Controls/Card regression cases and update two old held-brake handoff expectations. Clean serial focused suite: 369 passed; independent adversarial review: 56 passed. Exact parent import inventory and protected receipt verified. Host validation is not device/road qualification; separate lag and producer-stall failures remain under investigation.
2026-10-12 12:29:47 -06:00
Dom 3cda7e5ac9 Reconcile fresh queued input after the previous axis packet expires
Do not gate nonblocking carState reconciliation on an old output packet's deadline. Process queued physical samples once before selected-source owners and the state-machine decision; retain the existing total 32-envelope bound, freshness/native/intent checks and no blocking wait beyond the old deadline.

Controlled route52-shaped retained-timeout schedules reproduce stale-selected-carState/fresh-intent rejection on the parent, including ordinary unlatched critical disable. Candidate consumes the fresh pair before deciding. 341 focused tests and 84 independent adversarial cases passed; exact-source import audit, Ruff, type and inventory checks passed.

No lease extension, scheduling rewrite or native artifact change. Separate Card production gaps remain unproven fixed.
2026-10-12 12:06:30 -06:00
firestar5683 8a0249abef Keep native zero-time polling nonblocking 2026-10-12 11:16:48 -06:00
Dom 25252cb91e Fix early source-expiry handoff without losing restrictive intent bursts
Check bounded retention after event processing before source-expiry handling mutates authority. Preserve only the original unexpired proof for one normal tick; track all intent drains in the step so a later empty drain cannot conceal an intermediate deny.

Preserve fd14 fresh-owner continuity semantics and reconcile five legacy test expectations. Add early handoff and engagement/deny recovery regressions. 239 distinct focused tests and 277 platform tests passed; Ruff, type checks and exact-source import/inventory audits passed.

No native artifacts or lease extensions. This does not establish a fix for the separate measured Card production stall.
2026-10-12 10:05:15 -06:00
firestar5683 fd14b4b396 Keep fresh authority independent of expired output 2026-10-12 09:46:32 -06:00
Dom 4ef9686a91 Fix premature Ioniq axis withdrawal during fresh-input handoff
Keep an existing unexpired axis proof for one normal iteration when the selected source expires at publication, without renewing the proof or re-running stateful owners. Preserve physical overrides, restrictive intents, original deadlines and alerts; reject stale construction-time publication.

Add 79 owner-chain cases and refresh the protected source inventory. 183 focused tests, lint and type checks pass. Longer Card producer stalls remain outside this fix.
2026-10-12 08:27:40 -06:00
firestar5683 2f16acaf36 Preserve Bolt lateral intent through belt transitions 2026-10-12 06:32:06 -06:00
firestar5683 e55db51af5 Preserve Bolt lateral intent during driver overrides 2026-10-12 02:20:45 -06:00
firestar5683 2381fee499 Refresh Toyota dashboard replay references 2026-10-12 02:19:50 -06:00
prabhaavp 5f95832a98 Merge pull request #215 from dirwin31:Stardust-PR-6
Easy Sign In
2026-10-12 02:29:02 -04:00