From 38a8327be01a190d62a6f1f94206ec5c017d1799 Mon Sep 17 00:00:00 2001 From: meggert Date: Wed, 9 Aug 2023 10:13:19 +0200 Subject: [PATCH] i hate it here --- mission/controller/acs/util/MathOperations.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mission/controller/acs/util/MathOperations.h b/mission/controller/acs/util/MathOperations.h index 6c5dfa76..de202bf0 100644 --- a/mission/controller/acs/util/MathOperations.h +++ b/mission/controller/acs/util/MathOperations.h @@ -11,6 +11,8 @@ #include #include +#include "fsfw/serviceinterface.h" + template class MathOperations { public: @@ -158,7 +160,8 @@ class MathOperations { sif::debug << "c = " << c << std::endl; double w = (c - u) / 2; sif::debug << "w = " << w << std::endl; - double d = sign(vector[2]) * sqrt(q) * (w + sqrt(sqrt(pow(t, 2) + v) - u * w - t / 2 - 1 / 4)); + double d = + sign(vector[2]) * sqrt(q) * (w + sqrt(sqrt(pow(t, 2) + v) - u * w - t / 2 - 1. / 4.)); sif::debug << "d = " << d << std::endl; double N = a * sqrt(1 + epsilon2 * pow(d, 2) / pow(b, 2)); sif::debug << "N = " << N << std::endl;