From 10ca1e19c7a4af32cf22a85e79fba2ace9218ff9 Mon Sep 17 00:00:00 2001 From: "j.foucher" Date: Thu, 19 Feb 2026 09:12:03 +0100 Subject: [PATCH] Arduino: disable IMU BLE streaming when not in debug mode IMU data (roll/pitch/yaw) is now only sent over BLE when debugMode != DEBUG_OFF, as originally intended for production. Removes the TODO_TEST workaround. Co-Authored-By: Claude Opus 4.6 --- Arduino/PS_BLE_ShotDetection/PS_BLE_ShotDetection.ino | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Arduino/PS_BLE_ShotDetection/PS_BLE_ShotDetection.ino b/Arduino/PS_BLE_ShotDetection/PS_BLE_ShotDetection.ino index 1102d60..9bf79b8 100644 --- a/Arduino/PS_BLE_ShotDetection/PS_BLE_ShotDetection.ino +++ b/Arduino/PS_BLE_ShotDetection/PS_BLE_ShotDetection.ino @@ -575,9 +575,7 @@ void loop() { printDebugSerial(accelMag, gyroMag, audioLevel); // ─── IMU BLE 10 Hz ─── - // TODO_TEST : envoi IMU toujours actif pour test (Pico Motion Tracker en production) - // REMETTRE : if (debugMode != DEBUG_OFF && now-lastSend>=100) { - if (now-lastSend>=100) { + 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;