Different Rot Rate Source for Detumble #902
@ -38,6 +38,9 @@ ReturnValue_t AcsParameters::getParameter(uint8_t domainId, uint8_t parameterId,
|
|||||||
case 0x5:
|
case 0x5:
|
||||||
parameterWrapper->set(onBoardParams.questFilterWeight);
|
parameterWrapper->set(onBoardParams.questFilterWeight);
|
||||||
break;
|
break;
|
||||||
|
case 0x6:
|
||||||
|
parameterWrapper->set(onBoardParams.questAngleLimit);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return INVALID_IDENTIFIER_ID;
|
return INVALID_IDENTIFIER_ID;
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,7 @@ class AcsParameters : public HasParametersIF {
|
|||||||
uint8_t fusedRateFromStr = true;
|
uint8_t fusedRateFromStr = true;
|
||||||
uint8_t fusedRateFromQuest = true;
|
uint8_t fusedRateFromQuest = true;
|
||||||
double questFilterWeight = 0.9;
|
double questFilterWeight = 0.9;
|
||||||
|
double questAngleLimit = 5 * DEG2RAD;
|
||||||
} onBoardParams;
|
} onBoardParams;
|
||||||
|
|
||||||
struct InertiaEIVE {
|
struct InertiaEIVE {
|
||||||
|
@ -29,6 +29,20 @@ void AttitudeEstimation::quest(acsctrl::SusDataProcessed *susData,
|
|||||||
VectorOperations<double>::normalize(mgmData->mgmVecTot.value, normMgmB, 3);
|
VectorOperations<double>::normalize(mgmData->mgmVecTot.value, normMgmB, 3);
|
||||||
VectorOperations<double>::normalize(mgmData->magIgrfModel.value, normMgmI, 3);
|
VectorOperations<double>::normalize(mgmData->magIgrfModel.value, normMgmI, 3);
|
||||||
|
|
||||||
|
if ((std::acos(VectorOperations<double>::dot(normSusB, normMgmB)) <
|
||||||
|
acsParameters->onBoardParams.questAngleLimit) or
|
||||||
|
(std::acos(VectorOperations<double>::dot(normSusI, normMgmI)) <
|
||||||
|
acsParameters->onBoardParams.questAngleLimit)) {
|
||||||
|
{
|
||||||
|
PoolReadGuard pg{attitudeEstimationData};
|
||||||
|
if (pg.getReadResult() == returnvalue::OK) {
|
||||||
|
std::memcpy(attitudeEstimationData->quatQuest.value, ZERO_VEC4, 4 * sizeof(double));
|
||||||
|
attitudeEstimationData->quatQuest.setValid(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Create Helper Vectors
|
// Create Helper Vectors
|
||||||
double normHelperB[3] = {0, 0, 0}, normHelperI[3] = {0, 0, 0}, helperCross[3] = {0, 0, 0},
|
double normHelperB[3] = {0, 0, 0}, normHelperI[3] = {0, 0, 0}, helperCross[3] = {0, 0, 0},
|
||||||
helperSum[3] = {0, 0, 0};
|
helperSum[3] = {0, 0, 0};
|
||||||
|
Loading…
Reference in New Issue
Block a user