From 69e4aefec32336438400731777d31a1ea6bd9321 Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Fri, 30 Jan 2026 12:15:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Adds=20fallback=20heading=20to?= =?UTF-8?q?=20be=20z=20axis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- esp32/src/peripherals/peripherals.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esp32/src/peripherals/peripherals.cpp b/esp32/src/peripherals/peripherals.cpp index 15afbf6..53df6ea 100644 --- a/esp32/src/peripherals/peripherals.cpp +++ b/esp32/src/peripherals/peripherals.cpp @@ -77,6 +77,8 @@ void Peripherals::getIMUProto(socket_message_IMUData &data) { #endif #if FT_ENABLED(USE_HMC5883) data.heading = _mag.getHeading(); +#elif FT_ENABLED(USE_MPU6050) + data.heading = _imu.getAngleZ(); #endif #if FT_ENABLED(USE_BMP180) data.altitude = _bmp.getAltitude();