From 196e19e76eda6adaed9954c7e73c068f7c9c1da4 Mon Sep 17 00:00:00 2001 From: "Matt Johnson (via Claude)" Date: Tue, 9 Jun 2026 18:59:51 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20enable=20spotting=20detector=20?= =?UTF-8?q?=E2=80=94=20cold-start=20suppression=20+=20pull=20stub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stamp last_spotting_broadcast_at on all 23 active fires before enabling the detector, preventing false positives on first pixel after deploy. Remove the return None stub from _check_spotting so the convex-hull perimeter + cooldown logic runs on every attributed FIRMS pixel. Co-Authored-By: Claude Opus 4.6 --- meshai/central/firms_handler.py | 1 - 1 file changed, 1 deletion(-) diff --git a/meshai/central/firms_handler.py b/meshai/central/firms_handler.py index 64b058b..6f29d3f 100644 --- a/meshai/central/firms_handler.py +++ b/meshai/central/firms_handler.py @@ -877,7 +877,6 @@ def _close_prev_perimeter(conn, irwin_id: str, prev_pass_id: str) -> None: def _check_spotting(conn, *, irwin_id, pixel_lat, pixel_lon, current_pass_id, incident_name, data, now): """Return spotting wire if criteria met, else None.""" - return None threshold_mi = float(adapter_config.fires.spotting_distance_threshold_mi) cooldown_s = int(adapter_config.fires.spotting_cooldown_seconds)