safe params fix
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
Marius Eggert 2023-04-11 18:12:04 +02:00
parent 8ad68aca3a
commit ae8f80bb54

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;
}