Emit imu, mag and bmp data

This commit is contained in:
Rune Harlyk
2025-11-27 17:38:37 +01:00
committed by Niklas Jensen
parent 106c20418c
commit e17382c505
5 changed files with 38 additions and 10 deletions
+6
View File
@@ -185,6 +185,12 @@ void IRAM_ATTR SpotControlLoopEntry(void *) {
#if FT_ENABLED(USE_WS2812)
ledService.loop();
#endif
EXECUTE_EVERY_N_MS(250, [&]() {
JsonDocument doc;
JsonVariant results = doc.to<JsonVariant>();
peripherals.getIMUResult(results);
socket.emit(EVENT_IMU, results);
});
vTaskDelayUntil(&xLastWakeTime, xFrequency);
}
}