safe params fix
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
parent
8ad68aca3a
commit
ae8f80bb54
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user