From f526898b1f2a50cf6c6f78dcfbcb20f3d9d2f06e Mon Sep 17 00:00:00 2001 From: "j.foucher" Date: Wed, 18 Feb 2026 13:45:26 +0100 Subject: [PATCH] =?UTF-8?q?Firmware=20:=20IMU=20BLE=20d=C3=A9sactiv=C3=A9?= =?UTF-8?q?=20en=20mode=20production=20(debug=20OFF)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit L'envoi Roll/Pitch/Yaw sur imuChar est maintenant conditionné à debugMode != OFF → charge BLE réduite pour Unreal en production. Le calibration tool Python (debug FULL) continue de recevoir l'IMU. Co-Authored-By: Claude Opus 4.6 --- Arduino/PS_BLE_ShotDetection/PS_BLE_ShotDetection.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Arduino/PS_BLE_ShotDetection/PS_BLE_ShotDetection.ino b/Arduino/PS_BLE_ShotDetection/PS_BLE_ShotDetection.ino index c5d929e..943ac46 100644 --- a/Arduino/PS_BLE_ShotDetection/PS_BLE_ShotDetection.ino +++ b/Arduino/PS_BLE_ShotDetection/PS_BLE_ShotDetection.ino @@ -574,8 +574,9 @@ void loop() { sendDebugData(accelMag, gyroMag, audioLevel); printDebugSerial(accelMag, gyroMag, audioLevel); - // ─── IMU BLE 10 Hz ─── - if (now-lastSend>=100) { + // ─── IMU BLE 10 Hz (debug uniquement) ─── + // En production (debugMode OFF), pas d'envoi IMU → charge BLE réduite pour Unreal + if (debugMode != DEBUG_OFF && now-lastSend>=100) { lastSend=now; float dt=(now-lastUpdate)/1000.0f; lastUpdate=now; roll+=gx*dt; pitch+=gy*dt; yaw+=gz*dt;