From af522a592fae707163d33ba150c5910e766d02dc Mon Sep 17 00:00:00 2001 From: Jaeyoung Lim Date: Wed, 26 Oct 2022 09:32:10 +0200 Subject: [PATCH] Fix board orientation --- src/lib/conversion/rotation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/conversion/rotation.h b/src/lib/conversion/rotation.h index 80a9910d8b..9ea5f244c1 100644 --- a/src/lib/conversion/rotation.h +++ b/src/lib/conversion/rotation.h @@ -234,8 +234,8 @@ static constexpr bool rotate_3(enum Rotation rot, T &x, T &y, T &z) case ROTATION_ROLL_90_YAW_90: { T tmp = x; x = z; - z = y; - y = tmp; + z = math::negate(y); + y = math::negate(tmp); } return true;