Fix Desaturation for Faulty Wheels #865

Merged
meggert merged 7 commits from fix-desaturation into main 2024-02-29 12:56:19 +01:00
Showing only changes of commit efd17a971f - Show all commits

View File

@ -190,8 +190,8 @@ void PtgCtrl::ptgDesaturation(const bool allRwAvailable, const acsctrl::RwAvail
// calculate total angular momentum
double angMomentumTotal[3] = {0, 0, 0};
VectorOperations<double>::add(angMomentumRw, pointingLawParameters->desatMomentumRef,
angMomentumTotal, 3);
VectorOperations<double>::subtract(angMomentumRw, pointingLawParameters->desatMomentumRef,
angMomentumTotal, 3);
// resulting magnetic dipole command
double crossAngMomentumMagField[3] = {0, 0, 0};