Revert ACS Safe Mode Controller to FLP Design #466

Merged
muellerr merged 64 commits from acs-flp-safe into develop 2023-04-14 20:26:20 +02:00
Showing only changes of commit ae8f80bb54 - Show all commits

View File

@ -545,14 +545,14 @@ void Guidance::getTargetParamsSafe(double sunTargetSafe[3], double &satRateSafe,
if (not std::filesystem::exists(SD_0_SKEWED_PTG_FILE, e) or
not std::filesystem::exists(SD_1_SKEWED_PTG_FILE, e)) {
std::memcpy(sunTargetSafe, acsParameters->safeModeControllerParameters.sunTargetDir,
sizeof(&sunTargetSafe));
3 * sizeof(double));
std::memcpy(inertiaEive, acsParameters->inertiaEIVE.inertiaMatrixDeployed,
sizeof(&inertiaEive));
3 * 3 * sizeof(double));
} else {
std::memcpy(sunTargetSafe, acsParameters->safeModeControllerParameters.sunTargetDirLeop,
sizeof(&sunTargetSafe));
3 * sizeof(double));
std::memcpy(inertiaEive, acsParameters->inertiaEIVE.inertiaMatrixUndeployed,
sizeof(&inertiaEive));
3 * 3 * sizeof(double));
}
satRateSafe = acsParameters->safeModeControllerParameters.satRateRef;
}