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 <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user