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:
parent
7c2cb387f2
commit
10ca1e19c7
@ -575,9 +575,7 @@ void loop() {
|
|||||||
printDebugSerial(accelMag, gyroMag, audioLevel);
|
printDebugSerial(accelMag, gyroMag, audioLevel);
|
||||||
|
|
||||||
// ─── IMU BLE 10 Hz ───
|
// ─── IMU BLE 10 Hz ───
|
||||||
// TODO_TEST : envoi IMU toujours actif pour test (Pico Motion Tracker en production)
|
if (debugMode != DEBUG_OFF && now-lastSend>=100) {
|
||||||
// REMETTRE : if (debugMode != DEBUG_OFF && now-lastSend>=100) {
|
|
||||||
if (now-lastSend>=100) {
|
|
||||||
lastSend=now;
|
lastSend=now;
|
||||||
float dt=(now-lastUpdate)/1000.0f; lastUpdate=now;
|
float dt=(now-lastUpdate)/1000.0f; lastUpdate=now;
|
||||||
roll+=gx*dt; pitch+=gy*dt; yaw+=gz*dt;
|
roll+=gx*dt; pitch+=gy*dt; yaw+=gz*dt;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user