Skip to content

feat: opt-in Continue on Green (0x3FD mux0 bit39) - #145

Merged
hypery11 merged 1 commit into
mainfrom
feat/continue-on-green
Aug 5, 2026
Merged

feat: opt-in Continue on Green (0x3FD mux0 bit39)#145
hypery11 merged 1 commit into
mainfrom
feat/continue-on-green

Conversation

@hypery11

@hypery11 hypery11 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Adds an opt-in Continue on Green toggle (default OFF) that sets bit 39 (UI_fsdContinueOnGreenWithCIPV) on 0x3FD (DAS_autopilotControl) mux 0 — continue through a green light behind a lead car without needing stalk confirmation. Refs #111.

Source: ev-open-can-tools enable-TSLLC-and-continue-on-green-with-car-infront.json. The project already has bit 38 (TLSSC / UI_fsdStopsControlEnabled) as the assist_tlssc_bit38 toggle; this adds bit 39 as its own independent toggle. Bit 39 is meaningful alongside TLSSC (you stop at the light, then continue on green), so the dashboard notes "pairs with TLSSC", but the two toggles stay independent — this feature never auto-sets bit 38.

Changes

  • fsd_state.h: new bool continue_on_green (default OFF).
  • Flipper + ESP32 0x3FD handlers: set bit 39 on mux 0 when the flag and FSD-selected are both on, applied before the HW split so HW3 and HW4 behave identically.
  • can_signals.h: SIG_AP_CONTINUE_ON_GREEN_BIT 39.
  • prefs.cpp: NVS persistence (cog).
  • web_dashboard.cpp: "Continue on Green" toggle in Controls.
  • test_fsd_core.c: test_continue_on_green (HW3/HW4 × on/off). 475 host tests pass.

Notes

bit39 = UI_fsdContinueOnGreenWithCIPV from the ev-open-can-tools TSLLC
plugin: continue through a green light behind a lead car without stalk
confirmation. New continue_on_green toggle, independent of the existing
bit38/TLSSC toggle (documented to pair with it), default OFF.

- fsd_state.h: continue_on_green field
- fsd_handler.c / .cpp: set bit39 on 0x3FD mux0 when enabled + fsd_enabled
  (before the HW3/HW4 split, so it applies to both)
- can_signals.h: SIG_AP_CONTINUE_ON_GREEN_BIT
- prefs.cpp: NVS key "cog" load/save
- web_dashboard.cpp: Continue on Green toggle in Controls
- test_fsd_core.c: test_continue_on_green (HW3 + HW4, on/off)
@hypery11
hypery11 changed the base branch from feat/summon-eu-unlock to main August 5, 2026 22:05
@hypery11
hypery11 merged commit 3881ecb into main Aug 5, 2026
11 checks passed
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