From 9124cb85fa62e38228329d065de389842bfef0b9 Mon Sep 17 00:00:00 2001 From: meggert Date: Wed, 14 Feb 2024 09:06:39 +0100 Subject: [PATCH] nvm this is since c++ 23 lol --- mission/controller/acs/Guidance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mission/controller/acs/Guidance.cpp b/mission/controller/acs/Guidance.cpp index 538d4e35..cc0a20d9 100644 --- a/mission/controller/acs/Guidance.cpp +++ b/mission/controller/acs/Guidance.cpp @@ -159,7 +159,7 @@ void Guidance::targetQuatPtgGs(timeval timeAbsolute, const double timeDelta, } // normalize weights for convenience - double normFactor = 1. / (std::fabs(sunWeight) + std::fabs(earthWeight)); + double normFactor = 1. / (std::abs(sunWeight) + std::abs(earthWeight)); sunWeight *= normFactor; earthWeight *= normFactor;