Prevent STR Blinding #859

Merged
meggert merged 35 commits from prevent-str-blinding into main 2024-02-27 13:48:20 +01:00
Showing only changes of commit 124ae6cc7e - Show all commits

View File

@ -159,7 +159,7 @@ void Guidance::targetQuatPtgGs(timeval timeAbsolute, const double timeDelta,
} }
// normalize weights for convenience // normalize weights for convenience
double normFactor = 1. / (std::abs(sunWeight) + std::abs(earthWeight)); double normFactor = 1. / (std::fabs(sunWeight) + std::fabs(earthWeight));
sunWeight *= normFactor; sunWeight *= normFactor;
earthWeight *= normFactor; earthWeight *= normFactor;