From db1b974a63511953a10575561e3f19386c6912ae Mon Sep 17 00:00:00 2001 From: iforce2d Date: Wed, 19 Aug 2026 05:50:23 +1200 Subject: [PATCH] fixed HT cross-axis coupling on BoxPro (tilt was affecting pan and roll --- src/core/ht.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/ht.c b/src/core/ht.c index 9cb27e4f3..94f7fb5c8 100644 --- a/src/core/ht.c +++ b/src/core/ht.c @@ -44,7 +44,11 @@ static bool is_moving = true; static volatile bool calibrating = false; static int calibration_count = 0; +#if defined(HDZGOGGLE) || defined(HDZGOGGLE2) static const float imu_orientation[3] = {0.0 * DEG_TO_RAD, -90.0 * DEG_TO_RAD, (-90.0 + 23.0) * DEG_TO_RAD}; +#elif defined HDZBOXPRO +static const float imu_orientation[3] = {0.0 * DEG_TO_RAD, -90.0 * DEG_TO_RAD, -90.0 * DEG_TO_RAD}; +#endif static const int ppmMaxPulse = 500; static const int ppmMinPulse = -500;