From 3f062988193b889c3bdfdb4447594907b64af4b7 Mon Sep 17 00:00:00 2001 From: Eric FELIXINE Date: Tue, 5 May 2026 18:38:27 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20Coordonn=C3=A9es=20capteurs=20Martinique?= =?UTF-8?q?=20-=20r=C3=A9duit=20plage=20=C3=A0=20=C2=B10.02=20pour=20?= =?UTF-8?q?=C3=A9viter=20mer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simulator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/simulator.py b/simulator.py index 430b199a..96854eac 100644 --- a/simulator.py +++ b/simulator.py @@ -138,8 +138,10 @@ SENSOR_NAMES: dict[str, list[str]] = { def _gen_locs(stype: str, count: int) -> list[dict]: locs = [] for i in range(count): - lat = BASE_LAT + random.uniform(-0.05, 0.05) - lon = BASE_LON + random.uniform(-0.05, 0.05) + # Coordonnées précises Martinique (terre ferme uniquement) + # Réduit à ±0.02 pour éviter la mer + lat = BASE_LAT + random.uniform(-0.02, 0.02) + lon = BASE_LON + random.uniform(-0.02, 0.02) names = SENSOR_NAMES.get(stype, [stype]) locs.append({ "lat": round(lat, 6),