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;