fixed RW scale for angular momentum calculation
EIVE/eive-obsw/pipeline/pr-v3.0.0-dev This commit looks good Details

This commit is contained in:
Marius Eggert 2023-06-01 16:04:51 +02:00
parent 3750f1ac57
commit c6664c5cbf
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,8 @@ void PtgCtrl::ptgDesaturation(AcsParameters::PointingLawParameters *pointingLawP
VectorOperations<double>::mulScalar(acsParameters->rwMatrices.nullspaceVector,
pointingLawParameters->nullspaceSpeed, refSpeedRws, 4);
VectorOperations<double>::subtract(speedRws, refSpeedRws, speedRws, 4);
// convert speed from 10 RPM to 1 RPM
VectorOperations<double>::mulScalar(speedRws, 1e-1, speedRws, 4);
// convert to rad/s
VectorOperations<double>::mulScalar(speedRws, RPM_TO_RAD_PER_SEC, speedRws, 4);
// calculate angular momentum of each RW