Final Version of the ACS Controller #367

Merged
muellerr merged 78 commits from eggert/acs into develop 2023-02-08 13:50:11 +01:00
139 changed files with 3205 additions and 4615 deletions
Showing only changes of commit c338c4fb58 - Show all commits

View File

@@ -129,10 +129,8 @@ void SafeCtrl::safeNoMekf(timeval now, double *susDirB, bool susDirBValid, doubl
/* Only valid if angle between sun direction and magnetic field direction /* Only valid if angle between sun direction and magnetic field direction
is sufficiently large */ is sufficiently large */
double sinAngle = 0; double angleSunMag = acos(cosAngleSunMag);
sinAngle = sin(acos(cos(cosAngleSunMag))); if (angleSunMag < safeModeControllerParameters->sunMagAngleMin) {
if (!(sinAngle > sin(safeModeControllerParameters->sunMagAngleMin * M_PI / 180))) {
return; return;
} }