From 8dfc84c0b57aabc94e9819bdeeb69cd864ced093 Mon Sep 17 00:00:00 2001 From: meggert Date: Mon, 27 Nov 2023 10:52:47 +0100 Subject: [PATCH] smoll fix --- src/fsfw/globalfunctions/math/QuaternionOperations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fsfw/globalfunctions/math/QuaternionOperations.cpp b/src/fsfw/globalfunctions/math/QuaternionOperations.cpp index 5ac415b3..8ddb22f7 100644 --- a/src/fsfw/globalfunctions/math/QuaternionOperations.cpp +++ b/src/fsfw/globalfunctions/math/QuaternionOperations.cpp @@ -48,7 +48,7 @@ void QuaternionOperations::slerp(const double q1[4], const double q2[4], const d VectorOperations::mulScalar(q1, std::sin((1 - weight) * angle) / std::sin(angle), left, 4); - VectorOperations::mulScalar(q1, std::sin(weight * angle) / std::sin(angle), right, 4); + VectorOperations::mulScalar(q2, std::sin(weight * angle) / std::sin(angle), right, 4); VectorOperations::add(left, right, q, 4); normalize(q);