First Version of ACS Controller #329
@ -73,7 +73,7 @@ void Guidance::targetQuatPtg(ACS::SensorValues* sensorValues, ACS::OutputValues
|
|||||||
double omegaEarth = acsParameters.targetModeControllerParameters.omegaEarth;
|
double omegaEarth = acsParameters.targetModeControllerParameters.omegaEarth;
|
||||||
|
|
||||||
// TEST SECTION !
|
// TEST SECTION !
|
||||||
double dcmTEST[3][3] = {{0, 0, 0}, {0, 0, 0}, {0, 0, 0}};
|
//double dcmTEST[3][3] = {{0, 0, 0}, {0, 0, 0}, {0, 0, 0}};
|
||||||
//MatrixOperations<double>::multiply(&acsParameters.magnetorquesParameter.mtq0orientationMatrix, dcmTEST, dcmTEST, 3, 3, 3);
|
//MatrixOperations<double>::multiply(&acsParameters.magnetorquesParameter.mtq0orientationMatrix, dcmTEST, dcmTEST, 3, 3, 3);
|
||||||
|
|
||||||
MatrixOperations<double>::multiply(*dcmDot, *dcmEJ, *dcmEJDot, 3, 3, 3);
|
MatrixOperations<double>::multiply(*dcmDot, *dcmEJ, *dcmEJDot, 3, 3, 3);
|
||||||
@ -309,7 +309,7 @@ void Guidance::getDistributionMatrixRw(ACS::SensorValues* sensorValues, double *
|
|||||||
rwPseudoInv[11] = acsParameters.rwMatrices.without2[3][2];
|
rwPseudoInv[11] = acsParameters.rwMatrices.without2[3][2];
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ((sensorValues->validRw0) && (sensorValues->validRw1) && (sensorValues->validRw2) && (sensorValues->validRw3)) {
|
else if ((sensorValues->validRw0) && (sensorValues->validRw1) && (sensorValues->validRw2) && !(sensorValues->validRw3)) {
|
||||||
|
|
||||||
rwPseudoInv[0] = acsParameters.rwMatrices.without3[0][0];
|
rwPseudoInv[0] = acsParameters.rwMatrices.without3[0][0];
|
||||||
rwPseudoInv[1] = acsParameters.rwMatrices.without3[0][1];
|
rwPseudoInv[1] = acsParameters.rwMatrices.without3[0][1];
|
||||||
|
Loading…
Reference in New Issue
Block a user