Skip to content

Tesla Shananigans - #121

Open
dirwin31 wants to merge 1 commit into
firestar5683:Domfrom
dirwin31:TeslaCPUBug
Open

Tesla Shananigans#121
dirwin31 wants to merge 1 commit into
firestar5683:Domfrom
dirwin31:TeslaCPUBug

Conversation

@dirwin31

@dirwin31 dirwin31 commented Sep 5, 2026

Copy link
Copy Markdown

Pandad was reading and parsing CarParams at 10 Hz solely to determine Tesla pre-AP Always On Lateral engagement, including while offroad or indefinitely when CarParams was unavailable causing high cpu usage.

While investigating the original CPU error, I found that repeatedly parsing CarParams was unnecessary hot-loop work in relation to Feature Request - Pre-AP Support for Tesla in StarPilot (3621863)

This change:

  • performs detection after each offroad-to-onroad transition
  • waits for fingerprinting to populate CarParams
  • latches the result for the remainder of the drive
  • stops repeatedly reading and parsing CarParams
  • avoids unnecessary work on bench or carless setups
  • preserves the existing Always On Lateral behavior for Tesla pre-AP vehicles
  • adds coverage for Always On Lateral transitions and invalid cruise states

Verification

  • Refreshed the AGNOS-based sysroot and passed the laptop device-build doctor checks
  • Confirmed the builder is Linux AArch64 with Cap’n Proto 1.0.2
  • Successfully built selfdrive/pandad/pandad as a Linux ARM64 executable

@dirwin31 dirwin31 changed the title Tesla Shanigans Tesla Shananigans Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant