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;