From be2c4379a77c1a3ad4ea5210a312a452899199d2 Mon Sep 17 00:00:00 2001 From: meggert Date: Wed, 13 Dec 2023 10:31:29 +0100 Subject: [PATCH] smoll refactor --- mission/controller/acs/AttitudeEstimation.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mission/controller/acs/AttitudeEstimation.cpp b/mission/controller/acs/AttitudeEstimation.cpp index cf55a31e..95a4046d 100644 --- a/mission/controller/acs/AttitudeEstimation.cpp +++ b/mission/controller/acs/AttitudeEstimation.cpp @@ -8,14 +8,14 @@ AttitudeEstimation::~AttitudeEstimation() {} void AttitudeEstimation::quest(acsctrl::SusDataProcessed *susData, acsctrl::MgmDataProcessed *mgmData, - acsctrl::AttitudeEstimationData *attitudeEstimation) { + acsctrl::AttitudeEstimationData *attitudeEstimationData) { if (not(susData->susVecTot.isValid() and susData->sunIjkModel.isValid() and mgmData->mgmVecTot.isValid() and mgmData->magIgrfModel.isValid())) { { - PoolReadGuard pg{attitudeEstimation}; + PoolReadGuard pg{attitudeEstimationData}; if (pg.getReadResult() == returnvalue::OK) { - std::memcpy(attitudeEstimation->quatQuest.value, ZERO_VEC4, 4 * sizeof(double)); - attitudeEstimation->quatQuest.setValid(false); + std::memcpy(attitudeEstimationData->quatQuest.value, ZERO_VEC4, 4 * sizeof(double)); + attitudeEstimationData->quatQuest.setValid(false); } } return; @@ -102,10 +102,10 @@ void AttitudeEstimation::quest(acsctrl::SusDataProcessed *susData, QuaternionOperations::slerp(qBI, qOld, acsParameters->onBoardParams.questFilterWeight, qBI); } { - PoolReadGuard pg{attitudeEstimation}; + PoolReadGuard pg{attitudeEstimationData}; if (pg.getReadResult() == returnvalue::OK) { - std::memcpy(attitudeEstimation->quatQuest.value, qBI, 4 * sizeof(double)); - attitudeEstimation->quatQuest.setValid(true); + std::memcpy(attitudeEstimationData->quatQuest.value, qBI, 4 * sizeof(double)); + attitudeEstimationData->quatQuest.setValid(true); } } }