Skip to content

Honda Bosch: runtime alphalong toggle and deferred radar disable - #716

Draft
mvl-boston wants to merge 5 commits into
0111-op-honda-devfrom
cursor/alphalong-realtime-toggle-delay-98e2
Draft

mvl-boston wants to merge 5 commits into
0111-op-honda-devfrom
cursor/alphalong-realtime-toggle-delay-98e2

Conversation

@mvl-boston

@mvl-boston mvl-boston commented Sep 20, 2026

Copy link
Copy Markdown
Owner

Summary

Enables Developer → Alpha Longitudinal to be toggled during a drive on Bosch Honda/Acura (CAN FD, classic radar, and radarless) without restarting. Longitudinal control, radar silencing, tester-present, look-alike replacement traffic, and radarless dash lane/lead authoring follow the live AlphaLongitudinalEnabled param when it is set.

Deferred radar disable (relay open + stock_acc_alive handoff) applies to all Bosch radar alphalong cars, including non-CAN FD. Turning alpha long off sends CommunicationControl enable so the stock radar can resume; replacement messages stop.

Radarless: lane path, HUD objects, LKAS_HUD_2, and camera SCM takeover are gated on op_long.

CI / test_models fix

test_models failed because Params.get_bool("AlphaLongitudinalEnabled") is false when the param was never written, while route CarParams.openpilotLongitudinalControl is still true for op-long logs — carcontroller acted like stock ACC while panda expected BOSCH_LONG TX.

  • Added opendbc/car/honda/alphalong.py: use the param when present, otherwise fall back to CarParams.openpilotLongitudinalControl (replay / CI).
  • Restored BOSCH_LONG safety flag to match openpilotLongitudinalControl at fingerprint time (in-drive toggle still requires openpilot to cycle / refresh CP for safety, as upstream does via OnroadCycleRequested).

Testing

  • PYTHONPATH=. python3 opendbc/safety/tests/test_honda.py — OK

Openpilot pairing

Requires AlphaLongitudinalEnabled in Developer settings on device.

Open in Web Open in Cursor 

Read AlphaLongitudinalEnabled each frame so radar silencing, tester present,
and radar look-alike replacement messages start and stop when alpha long is
toggled in Developer settings without restarting the drive.

Defer radar UDS disable for all Bosch radar platforms (not only CAN FD) until
stock ACC_CONTROL goes silent, matching the CAN FD handoff that avoids
CRUISE_FAULT from comm-loss lag. Re-enable the radar when alpha long is
turned off. Enable BOSCH_LONG safety whenever alpha long is available so
panda allows replacement TX after an in-drive toggle.

Co-authored-by: mliza <mliza@umass.edu>
@github-actions

Copy link
Copy Markdown

Thanks for contributing to opendbc! In order for us to review your PR as quickly as possible, check the following:

  • Convert your PR to a draft unless it's ready to review
  • Read the contributing docs
  • Before marking as "ready for review", ensure:
    • the goal is clearly stated in the description
    • all the tests are passing
    • include a route or your device' dongle ID if relevant

cursoragent and others added 4 commits September 20, 2026 01:54
Use STEERING_CONTROL PT-bus visibility to detect comma relay open for all
Bosch radar alphalong cars, not only CAN FD, before sending radar disable UDS.

Co-authored-by: mliza <mliza@umass.edu>
Stop LANE_PATH, HUD_OBJECTS, LKAS_HUD_2, and camera SCM takeover when
AlphaLongitudinalEnabled is off; pass live alphalong into create_lkas_hud.

Co-authored-by: mliza <mliza@umass.edu>
AlphaLongitudinalEnabled defaults to false in CI when the param was never
written, which made op-long cars behave like stock ACC while panda safety
still expected BOSCH_LONG TX. Use CarParams.openpilotLongitudinalControl
when the param is absent; restore BOSCH_LONG gating to match.

Co-authored-by: mliza <mliza@umass.edu>
Co-authored-by: mliza <mliza@umass.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants