From efd17a971f6923f51b327e1528f2bbe4eb8a78e3 Mon Sep 17 00:00:00 2001 From: meggert Date: Thu, 29 Feb 2024 10:28:08 +0100 Subject: [PATCH] to keep it in line --- mission/controller/acs/control/PtgCtrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mission/controller/acs/control/PtgCtrl.cpp b/mission/controller/acs/control/PtgCtrl.cpp index 297230cf..5cbaec39 100644 --- a/mission/controller/acs/control/PtgCtrl.cpp +++ b/mission/controller/acs/control/PtgCtrl.cpp @@ -190,8 +190,8 @@ void PtgCtrl::ptgDesaturation(const bool allRwAvailable, const acsctrl::RwAvail // calculate total angular momentum double angMomentumTotal[3] = {0, 0, 0}; - VectorOperations::add(angMomentumRw, pointingLawParameters->desatMomentumRef, - angMomentumTotal, 3); + VectorOperations::subtract(angMomentumRw, pointingLawParameters->desatMomentumRef, + angMomentumTotal, 3); // resulting magnetic dipole command double crossAngMomentumMagField[3] = {0, 0, 0};