2022-09-16 14:13:41 +02:00
|
|
|
#include "AcsParameters.h"
|
|
|
|
|
2022-10-04 13:45:13 +02:00
|
|
|
#include <fsfw/src/fsfw/globalfunctions/constants.h>
|
2022-09-22 13:39:42 +02:00
|
|
|
#include <stddef.h>
|
2022-10-04 13:45:13 +02:00
|
|
|
|
2022-12-16 13:59:49 +01:00
|
|
|
AcsParameters::AcsParameters() {}
|
2022-09-16 14:13:41 +02:00
|
|
|
|
2022-09-27 10:49:46 +02:00
|
|
|
AcsParameters::~AcsParameters() {}
|
2022-10-14 11:11:23 +02:00
|
|
|
|
2022-12-16 13:59:49 +01:00
|
|
|
ReturnValue_t AcsParameters::getParameter(uint8_t domainId, uint8_t parameterId,
|
2022-10-04 13:45:13 +02:00
|
|
|
ParameterWrapper* parameterWrapper,
|
|
|
|
const ParameterWrapper* newValues,
|
|
|
|
uint16_t startAtIndex) {
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (domainId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0: // direct members
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x1: // OnBoardParams
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
|
|
|
parameterWrapper->set(onBoardParams.sampleTime);
|
|
|
|
break;
|
2023-03-14 13:15:48 +01:00
|
|
|
case 0x1:
|
|
|
|
parameterWrapper->set(onBoardParams.mekfViolationTimer);
|
|
|
|
break;
|
2022-12-16 13:59:49 +01:00
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x2: // InertiaEIVE
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(inertiaEIVE.inertiaMatrixDeployed);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
2023-04-06 11:15:50 +02:00
|
|
|
case 0x1:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(inertiaEIVE.inertiaMatrixUndeployed);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
2023-04-06 11:15:50 +02:00
|
|
|
case 0x2:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(inertiaEIVE.inertiaMatrixPanel1);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
2023-04-06 11:15:50 +02:00
|
|
|
case 0x3:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(inertiaEIVE.inertiaMatrixPanel3);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x3: // MgmHandlingParameters
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(mgmHandlingParameters.mgm0orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x1:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(mgmHandlingParameters.mgm1orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x2:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(mgmHandlingParameters.mgm2orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x3:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(mgmHandlingParameters.mgm3orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x4:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(mgmHandlingParameters.mgm4orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x5:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(mgmHandlingParameters.mgm0hardIronOffset);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x6:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(mgmHandlingParameters.mgm1hardIronOffset);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x7:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(mgmHandlingParameters.mgm2hardIronOffset);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x8:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(mgmHandlingParameters.mgm3hardIronOffset);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x9:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(mgmHandlingParameters.mgm4hardIronOffset);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xA:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(mgmHandlingParameters.mgm0softIronInverse);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xB:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(mgmHandlingParameters.mgm1softIronInverse);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xC:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(mgmHandlingParameters.mgm2softIronInverse);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xD:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(mgmHandlingParameters.mgm3softIronInverse);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xE:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(mgmHandlingParameters.mgm4softIronInverse);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xF:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(mgmHandlingParameters.mgm02variance);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x10:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(mgmHandlingParameters.mgm13variance);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x11:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(mgmHandlingParameters.mgm4variance);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
2023-04-06 11:15:50 +02:00
|
|
|
case 0x12:
|
|
|
|
parameterWrapper->set(mgmHandlingParameters.mgmDerivativeFilterWeight);
|
|
|
|
break;
|
2022-12-16 13:59:49 +01:00
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x4: // SusHandlingParameters
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus0orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x1:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus1orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x2:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus2orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x3:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus3orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x4:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus4orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x5:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus5orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x6:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus6orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x7:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus7orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x8:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus8orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x9:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus9orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xA:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus10orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xB:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus11orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xC:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus0coeffAlpha);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xD:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus0coeffBeta);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xE:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus1coeffAlpha);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xF:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus1coeffBeta);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x10:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus2coeffAlpha);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x11:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus2coeffBeta);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x12:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus3coeffAlpha);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x13:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus3coeffBeta);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x14:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus4coeffAlpha);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x15:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus4coeffBeta);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x16:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus5coeffAlpha);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x17:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus5coeffBeta);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x18:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus6coeffAlpha);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x19:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus6coeffBeta);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x1A:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus7coeffAlpha);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x1B:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus7coeffBeta);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x1C:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus8coeffAlpha);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x1D:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus8coeffBeta);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x1E:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus9coeffAlpha);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x1F:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus9coeffBeta);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x20:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus10coeffAlpha);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x21:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus10coeffBeta);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x22:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus11coeffAlpha);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x23:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(susHandlingParameters.sus11coeffBeta);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
2023-06-19 16:22:32 +02:00
|
|
|
case 0x24:
|
|
|
|
parameterWrapper->set(susHandlingParameters.susBrightnessThreshold);
|
2023-06-19 17:08:05 +02:00
|
|
|
break;
|
2022-12-16 13:59:49 +01:00
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case (0x5): // GyrHandlingParameters
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(gyrHandlingParameters.gyr0orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x1:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(gyrHandlingParameters.gyr1orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x2:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(gyrHandlingParameters.gyr2orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x3:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(gyrHandlingParameters.gyr3orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x4:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(gyrHandlingParameters.gyr0bias);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x5:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(gyrHandlingParameters.gyr1bias);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x6:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(gyrHandlingParameters.gyr2bias);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0x7:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(gyrHandlingParameters.gyr3bias);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0x8:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(gyrHandlingParameters.gyr02variance);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0x9:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(gyrHandlingParameters.gyr13variance);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0xA:
|
2022-12-16 13:59:49 +01:00
|
|
|
parameterWrapper->set(gyrHandlingParameters.preferAdis);
|
|
|
|
break;
|
2023-04-06 11:15:50 +02:00
|
|
|
case 0xB:
|
|
|
|
parameterWrapper->set(gyrHandlingParameters.gyrFilterWeight);
|
|
|
|
break;
|
2022-12-16 13:59:49 +01:00
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case (0x6): // RwHandlingParameters
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
|
|
|
parameterWrapper->set(rwHandlingParameters.inertiaWheel);
|
|
|
|
break;
|
2022-12-19 14:23:42 +01:00
|
|
|
case 0x1:
|
2022-12-16 13:59:49 +01:00
|
|
|
parameterWrapper->set(rwHandlingParameters.maxTrq);
|
|
|
|
break;
|
2022-12-19 14:23:42 +01:00
|
|
|
case 0x2:
|
2023-03-10 11:37:04 +01:00
|
|
|
parameterWrapper->set(rwHandlingParameters.maxRwSpeed);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
2022-12-19 14:23:42 +01:00
|
|
|
case 0x3:
|
2023-03-10 11:37:04 +01:00
|
|
|
parameterWrapper->set(rwHandlingParameters.stictionSpeed);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
2022-12-19 14:23:42 +01:00
|
|
|
case 0x4:
|
2023-03-10 11:37:04 +01:00
|
|
|
parameterWrapper->set(rwHandlingParameters.stictionReleaseSpeed);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
2023-02-10 10:25:13 +01:00
|
|
|
case 0x5:
|
2023-03-10 11:37:04 +01:00
|
|
|
parameterWrapper->set(rwHandlingParameters.stictionTorque);
|
|
|
|
break;
|
|
|
|
case 0x6:
|
2023-02-10 10:25:13 +01:00
|
|
|
parameterWrapper->set(rwHandlingParameters.rampTime);
|
2023-02-10 13:29:13 +01:00
|
|
|
break;
|
2023-06-05 09:43:31 +02:00
|
|
|
case 0x7:
|
|
|
|
parameterWrapper->set(rwHandlingParameters.multipleRwInvalidTimeout);
|
|
|
|
break;
|
2022-12-16 13:59:49 +01:00
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case (0x7): // RwMatrices
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(rwMatrices.alignmentMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x1:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(rwMatrices.pseudoInverse);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x2:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(rwMatrices.without1);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x3:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(rwMatrices.without2);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x4:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(rwMatrices.without3);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x5:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setMatrix(rwMatrices.without4);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x6:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->setVector(rwMatrices.nullspaceVector);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case (0x8): // SafeModeControllerParameters
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
2023-03-24 14:51:07 +01:00
|
|
|
parameterWrapper->set(safeModeControllerParameters.k_orthoMekf);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x1:
|
2023-03-24 14:51:07 +01:00
|
|
|
parameterWrapper->set(safeModeControllerParameters.k_alignMekf);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x2:
|
2023-03-24 14:51:07 +01:00
|
|
|
parameterWrapper->set(safeModeControllerParameters.k_parallelMekf);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x3:
|
2023-03-24 14:51:07 +01:00
|
|
|
parameterWrapper->set(safeModeControllerParameters.k_orthoNonMekf);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x4:
|
2023-03-24 14:51:07 +01:00
|
|
|
parameterWrapper->set(safeModeControllerParameters.k_alignNonMekf);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x5:
|
2023-03-24 14:51:07 +01:00
|
|
|
parameterWrapper->set(safeModeControllerParameters.k_parallelNonMekf);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x6:
|
2023-04-06 11:15:50 +02:00
|
|
|
parameterWrapper->setVector(safeModeControllerParameters.sunTargetDirLeop);
|
2023-01-12 11:47:56 +01:00
|
|
|
break;
|
|
|
|
case 0x7:
|
2023-04-06 11:15:50 +02:00
|
|
|
parameterWrapper->setVector(safeModeControllerParameters.sunTargetDir);
|
2023-03-22 08:59:13 +01:00
|
|
|
break;
|
|
|
|
case 0x8:
|
2023-04-11 11:19:04 +02:00
|
|
|
parameterWrapper->set(safeModeControllerParameters.useMekf);
|
|
|
|
break;
|
2023-04-13 14:29:24 +02:00
|
|
|
case 0x9:
|
2023-04-06 13:34:52 +02:00
|
|
|
parameterWrapper->set(safeModeControllerParameters.dampingDuringEclipse);
|
2023-03-22 08:59:13 +01:00
|
|
|
break;
|
2022-12-16 13:59:49 +01:00
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
2023-02-20 16:35:48 +01:00
|
|
|
case (0x9): // IdleModeControllerParameters
|
|
|
|
switch (parameterId) {
|
|
|
|
case 0x0:
|
2023-03-10 10:28:31 +01:00
|
|
|
parameterWrapper->set(idleModeControllerParameters.zeta);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x1:
|
2023-03-10 10:28:31 +01:00
|
|
|
parameterWrapper->set(idleModeControllerParameters.om);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x2:
|
2023-03-10 10:28:31 +01:00
|
|
|
parameterWrapper->set(idleModeControllerParameters.omMax);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x3:
|
2023-03-10 10:28:31 +01:00
|
|
|
parameterWrapper->set(idleModeControllerParameters.qiMin);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x4:
|
2023-03-10 10:28:31 +01:00
|
|
|
parameterWrapper->set(idleModeControllerParameters.gainNullspace);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x5:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(idleModeControllerParameters.nullspaceSpeed);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x6:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->setVector(idleModeControllerParameters.desatMomentumRef);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x7:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(idleModeControllerParameters.deSatGainFactor);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x8:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(idleModeControllerParameters.desatOn);
|
|
|
|
break;
|
|
|
|
case 0x9:
|
2023-03-10 10:28:31 +01:00
|
|
|
parameterWrapper->set(idleModeControllerParameters.enableAntiStiction);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case (0xA): // TargetModeControllerParameters
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
2023-02-07 13:11:57 +01:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.zeta);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x1:
|
2023-02-07 13:11:57 +01:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.om);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x2:
|
2023-02-07 13:11:57 +01:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.omMax);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x3:
|
2023-02-07 13:11:57 +01:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.qiMin);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x4:
|
2023-02-07 13:11:57 +01:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.gainNullspace);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x5:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.nullspaceSpeed);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x6:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->setVector(targetModeControllerParameters.desatMomentumRef);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x7:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.deSatGainFactor);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x8:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.desatOn);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x9:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.enableAntiStiction);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xA:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->setVector(targetModeControllerParameters.refDirection);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xB:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->setVector(targetModeControllerParameters.refRotRate);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xC:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->setVector(targetModeControllerParameters.quatRef);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xD:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.timeElapsedMax);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0xE:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.latitudeTgt);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0xF:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.longitudeTgt);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0x10:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.altitudeTgt);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0x11:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.avoidBlindStr);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0x12:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.blindAvoidStart);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0x13:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.blindAvoidStop);
|
|
|
|
break;
|
|
|
|
case 0x14:
|
2023-02-07 13:11:57 +01:00
|
|
|
parameterWrapper->set(targetModeControllerParameters.blindRotRate);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
2023-02-20 16:35:48 +01:00
|
|
|
case (0xB): // GsTargetModeControllerParameters
|
|
|
|
switch (parameterId) {
|
|
|
|
case 0x0:
|
2023-02-27 17:05:09 +01:00
|
|
|
parameterWrapper->set(gsTargetModeControllerParameters.zeta);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x1:
|
2023-02-27 17:05:09 +01:00
|
|
|
parameterWrapper->set(gsTargetModeControllerParameters.om);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x2:
|
2023-02-27 17:05:09 +01:00
|
|
|
parameterWrapper->set(gsTargetModeControllerParameters.omMax);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x3:
|
2023-02-27 17:05:09 +01:00
|
|
|
parameterWrapper->set(gsTargetModeControllerParameters.qiMin);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x4:
|
2023-02-27 17:05:09 +01:00
|
|
|
parameterWrapper->set(gsTargetModeControllerParameters.gainNullspace);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x5:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(gsTargetModeControllerParameters.nullspaceSpeed);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x6:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->setVector(gsTargetModeControllerParameters.desatMomentumRef);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x7:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(gsTargetModeControllerParameters.deSatGainFactor);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x8:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(gsTargetModeControllerParameters.desatOn);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0x9:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(gsTargetModeControllerParameters.enableAntiStiction);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0xA:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->setVector(gsTargetModeControllerParameters.refDirection);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0xB:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(gsTargetModeControllerParameters.timeElapsedMax);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0xC:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(gsTargetModeControllerParameters.latitudeTgt);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
case 0xD:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(gsTargetModeControllerParameters.longitudeTgt);
|
|
|
|
break;
|
|
|
|
case 0xE:
|
2023-02-27 17:05:09 +01:00
|
|
|
parameterWrapper->set(gsTargetModeControllerParameters.altitudeTgt);
|
2023-02-20 16:35:48 +01:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case (0xC): // NadirModeControllerParameters
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
2023-02-07 13:11:57 +01:00
|
|
|
parameterWrapper->set(nadirModeControllerParameters.zeta);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x1:
|
2023-02-07 13:11:57 +01:00
|
|
|
parameterWrapper->set(nadirModeControllerParameters.om);
|
|
|
|
break;
|
|
|
|
case 0x2:
|
|
|
|
parameterWrapper->set(nadirModeControllerParameters.omMax);
|
|
|
|
break;
|
|
|
|
case 0x3:
|
|
|
|
parameterWrapper->set(nadirModeControllerParameters.qiMin);
|
|
|
|
break;
|
|
|
|
case 0x4:
|
|
|
|
parameterWrapper->set(nadirModeControllerParameters.gainNullspace);
|
|
|
|
break;
|
|
|
|
case 0x5:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(nadirModeControllerParameters.nullspaceSpeed);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0x6:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->setVector(nadirModeControllerParameters.desatMomentumRef);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0x7:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(nadirModeControllerParameters.deSatGainFactor);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0x8:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(nadirModeControllerParameters.desatOn);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0x9:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(nadirModeControllerParameters.enableAntiStiction);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0xA:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->setVector(nadirModeControllerParameters.refDirection);
|
|
|
|
break;
|
|
|
|
case 0xB:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(nadirModeControllerParameters.quatRef);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0xC:
|
2023-05-23 15:07:23 +02:00
|
|
|
parameterWrapper->setVector(nadirModeControllerParameters.refRotRate);
|
|
|
|
break;
|
2023-06-01 09:36:34 +02:00
|
|
|
case 0xD:
|
2023-02-07 13:11:57 +01:00
|
|
|
parameterWrapper->set(nadirModeControllerParameters.timeElapsedMax);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
2023-02-20 16:35:48 +01:00
|
|
|
case (0xD): // InertialModeControllerParameters
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
2023-02-07 13:11:57 +01:00
|
|
|
parameterWrapper->set(inertialModeControllerParameters.zeta);
|
|
|
|
break;
|
|
|
|
case 0x1:
|
|
|
|
parameterWrapper->set(inertialModeControllerParameters.om);
|
|
|
|
break;
|
|
|
|
case 0x2:
|
|
|
|
parameterWrapper->set(inertialModeControllerParameters.omMax);
|
|
|
|
break;
|
|
|
|
case 0x3:
|
|
|
|
parameterWrapper->set(inertialModeControllerParameters.qiMin);
|
|
|
|
break;
|
|
|
|
case 0x4:
|
|
|
|
parameterWrapper->set(inertialModeControllerParameters.gainNullspace);
|
|
|
|
break;
|
|
|
|
case 0x5:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(inertialModeControllerParameters.nullspaceSpeed);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0x6:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->setVector(inertialModeControllerParameters.desatMomentumRef);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0x7:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(inertialModeControllerParameters.deSatGainFactor);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0x8:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(inertialModeControllerParameters.desatOn);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0x9:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->set(inertialModeControllerParameters.enableAntiStiction);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0xA:
|
2023-04-27 13:52:41 +02:00
|
|
|
parameterWrapper->setVector(inertialModeControllerParameters.tgtQuat);
|
|
|
|
break;
|
|
|
|
case 0xB:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(inertialModeControllerParameters.refRotRate);
|
2023-02-07 13:11:57 +01:00
|
|
|
break;
|
|
|
|
case 0xC:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(inertialModeControllerParameters.quatRef);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
2023-02-20 16:35:48 +01:00
|
|
|
case (0xE): // StrParameters
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
2023-02-07 13:11:57 +01:00
|
|
|
parameterWrapper->set(strParameters.exclusionAngle);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x1:
|
2023-02-27 14:29:23 +01:00
|
|
|
parameterWrapper->setVector(strParameters.boresightAxis);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
2023-02-07 13:11:57 +01:00
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
2023-02-20 16:35:48 +01:00
|
|
|
case (0xF): // GpsParameters
|
2023-02-07 13:11:57 +01:00
|
|
|
switch (parameterId) {
|
|
|
|
case 0x0:
|
|
|
|
parameterWrapper->set(gpsParameters.timeDiffVelocityMax);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
2023-03-07 11:10:47 +01:00
|
|
|
case 0x1:
|
|
|
|
parameterWrapper->set(gpsParameters.minimumFdirAltitude);
|
|
|
|
break;
|
|
|
|
case 0x2:
|
|
|
|
parameterWrapper->set(gpsParameters.maximumFdirAltitude);
|
|
|
|
break;
|
|
|
|
case 0x3:
|
|
|
|
parameterWrapper->set(gpsParameters.fdirAltitude);
|
|
|
|
break;
|
2022-12-16 13:59:49 +01:00
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
2023-02-20 16:35:48 +01:00
|
|
|
case (0x10): // SunModelParameters
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
|
|
|
parameterWrapper->set(sunModelParameters.domega);
|
|
|
|
break;
|
|
|
|
case 0x1:
|
|
|
|
parameterWrapper->set(sunModelParameters.omega_0);
|
|
|
|
break;
|
|
|
|
case 0x2:
|
|
|
|
parameterWrapper->set(sunModelParameters.m_0);
|
|
|
|
break;
|
|
|
|
case 0x3:
|
|
|
|
parameterWrapper->set(sunModelParameters.dm);
|
|
|
|
break;
|
|
|
|
case 0x4:
|
|
|
|
parameterWrapper->set(sunModelParameters.e);
|
|
|
|
break;
|
|
|
|
case 0x5:
|
|
|
|
parameterWrapper->set(sunModelParameters.e1);
|
|
|
|
break;
|
|
|
|
case 0x6:
|
|
|
|
parameterWrapper->set(sunModelParameters.p1);
|
|
|
|
break;
|
|
|
|
case 0x7:
|
|
|
|
parameterWrapper->set(sunModelParameters.p2);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
2023-02-20 16:35:48 +01:00
|
|
|
case (0x11): // KalmanFilterParameters
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
|
|
|
parameterWrapper->set(kalmanFilterParameters.sensorNoiseSTR);
|
|
|
|
break;
|
|
|
|
case 0x1:
|
|
|
|
parameterWrapper->set(kalmanFilterParameters.sensorNoiseSS);
|
|
|
|
break;
|
|
|
|
case 0x2:
|
|
|
|
parameterWrapper->set(kalmanFilterParameters.sensorNoiseMAG);
|
|
|
|
break;
|
|
|
|
case 0x3:
|
|
|
|
parameterWrapper->set(kalmanFilterParameters.sensorNoiseGYR);
|
|
|
|
break;
|
|
|
|
case 0x4:
|
|
|
|
parameterWrapper->set(kalmanFilterParameters.sensorNoiseArwGYR);
|
|
|
|
break;
|
|
|
|
case 0x5:
|
|
|
|
parameterWrapper->set(kalmanFilterParameters.sensorNoiseBsGYR);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
2023-02-20 16:35:48 +01:00
|
|
|
case (0x12): // MagnetorquesParameter
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
2023-02-27 16:35:32 +01:00
|
|
|
parameterWrapper->setMatrix(magnetorquerParameter.mtq0orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x1:
|
2023-02-27 16:35:32 +01:00
|
|
|
parameterWrapper->setMatrix(magnetorquerParameter.mtq1orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x2:
|
2023-02-27 16:35:32 +01:00
|
|
|
parameterWrapper->setMatrix(magnetorquerParameter.mtq2orientationMatrix);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x3:
|
2023-02-27 16:35:32 +01:00
|
|
|
parameterWrapper->setMatrix(magnetorquerParameter.alignmentMatrixMtq);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x4:
|
2023-02-27 16:35:32 +01:00
|
|
|
parameterWrapper->setMatrix(magnetorquerParameter.inverseAlignment);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
case 0x5:
|
2023-04-27 10:33:43 +02:00
|
|
|
parameterWrapper->set(magnetorquerParameter.dipoleMax);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
2023-02-10 10:25:13 +01:00
|
|
|
case 0x6:
|
2023-02-27 16:35:32 +01:00
|
|
|
parameterWrapper->set(magnetorquerParameter.torqueDuration);
|
2023-02-10 10:25:13 +01:00
|
|
|
break;
|
2022-12-16 13:59:49 +01:00
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
2023-02-20 16:35:48 +01:00
|
|
|
case (0x13): // DetumbleParameter
|
2023-01-12 11:47:56 +01:00
|
|
|
switch (parameterId) {
|
2022-12-16 13:59:49 +01:00
|
|
|
case 0x0:
|
|
|
|
parameterWrapper->set(detumbleParameter.detumblecounter);
|
|
|
|
break;
|
|
|
|
case 0x1:
|
|
|
|
parameterWrapper->set(detumbleParameter.omegaDetumbleStart);
|
|
|
|
break;
|
|
|
|
case 0x2:
|
|
|
|
parameterWrapper->set(detumbleParameter.omegaDetumbleEnd);
|
|
|
|
break;
|
|
|
|
case 0x3:
|
2023-04-14 11:38:05 +02:00
|
|
|
parameterWrapper->set(detumbleParameter.gainBdot);
|
|
|
|
break;
|
|
|
|
case 0x4:
|
|
|
|
parameterWrapper->set(detumbleParameter.gainFull);
|
|
|
|
break;
|
|
|
|
case 0x5:
|
|
|
|
parameterWrapper->set(detumbleParameter.useFullDetumbleLaw);
|
2022-12-16 13:59:49 +01:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return INVALID_IDENTIFIER_ID;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
2023-01-12 11:47:56 +01:00
|
|
|
return INVALID_DOMAIN_ID;
|
|
|
|
}
|
|
|
|
return returnvalue::OK;
|
2022-12-16 13:59:49 +01:00
|
|
|
}
|