From f60fe1ed02a5d3fdd8b74ed1786f38e75aa1c6ed Mon Sep 17 00:00:00 2001 From: meggert Date: Tue, 13 Feb 2024 16:58:40 +0100 Subject: [PATCH] added normalization of sun model vector --- mission/controller/acs/SensorProcessing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mission/controller/acs/SensorProcessing.cpp b/mission/controller/acs/SensorProcessing.cpp index 61292c36..ac82e891 100644 --- a/mission/controller/acs/SensorProcessing.cpp +++ b/mission/controller/acs/SensorProcessing.cpp @@ -198,6 +198,7 @@ void SensorProcessing::processSus( sunIjkModel[0] = cos(eclipticLongitude); sunIjkModel[1] = sin(eclipticLongitude) * cos(epsilon); sunIjkModel[2] = sin(eclipticLongitude) * sin(epsilon); + VectorOperations::normalize(sunIjkModel, sunIjkModel, 3); uint64_t susBrightness[12] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; if (sus0valid) {