🎨 Adds fallback heading to be z axis

This commit is contained in:
Rune Harlyk
2026-01-30 12:15:09 +01:00
committed by Rune Harlyk
parent 1e9f38fe7b
commit 69e4aefec3
+2
View File
@@ -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();