Skip to content

fix: remove hardcoded propagation_lag, make detector params configurable - #259

Open
godon-robot[bot] wants to merge 1 commit into
mainfrom
fix/cfar-no-hardcoded-lag
Open

fix: remove hardcoded propagation_lag, make detector params configurable#259
godon-robot[bot] wants to merge 1 commit into
mainfrom
fix/cfar-no-hardcoded-lag

Conversation

@godon-robot

@godon-robot godon-robot Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

propagation_lag was 20s hardcoded. Made configurable via env. Default 0.

Co-authored-by: cherusk [email protected]

…gurable

propagation_lag was hardcoded at 20.0 seconds (greenhouse thermal lag).
For the generic bench, coupling is instant — 20s lag causes the push
and pause windows to overlap, contaminating the baseline and inflating
the CFAR threshold.

All detector params now read from env vars with sane defaults:
- GODON_PROPAGATION_LAG (default 0.0 — instant)
- GODON_MIN_REF_CELLS (default 3)
- GODON_MIN_TEST_CELLS (default 3)

Systems with slow coupling (greenhouses, HVAC) set GODON_PROPAGATION_LAG
explicitly. Default 0 covers the majority of use cases.

Co-authored-by: cherusk <[email protected]>
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.

0 participants