run clang formating script
All checks were successful
EIVE/eive-obsw/pipeline/pr-eggert/acs This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-eggert/acs This commit looks good
This commit is contained in:
parent
60e75612fd
commit
9a056e6ad5
@ -49,19 +49,16 @@ ReturnValue_t Detumble::bangbangLaw(const double *magRate, const bool magRateVal
|
|||||||
}
|
}
|
||||||
|
|
||||||
return returnvalue::OK;
|
return returnvalue::OK;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ReturnValue_t Detumble::bDotLawGyro(const double *satRate, const bool *satRateValid,
|
ReturnValue_t Detumble::bDotLawGyro(const double *satRate, const bool *satRateValid,
|
||||||
const double *magField, const bool *magFieldValid,
|
const double *magField, const bool *magFieldValid,
|
||||||
double *magMom) {
|
double *magMom) {
|
||||||
|
|
||||||
if (!satRateValid || !magFieldValid) {
|
if (!satRateValid || !magFieldValid) {
|
||||||
return DETUMBLE_NO_SENSORDATA;
|
return DETUMBLE_NO_SENSORDATA;
|
||||||
}
|
}
|
||||||
double gain = detumbleParameter->gainD;
|
double gain = detumbleParameter->gainD;
|
||||||
double factor = -gain / pow(VectorOperations<double>::norm(magField,3),2);
|
double factor = -gain / pow(VectorOperations<double>::norm(magField, 3), 2);
|
||||||
VectorOperations<double>::mulScalar(satRate, factor, magMom, 3);
|
VectorOperations<double>::mulScalar(satRate, factor, magMom, 3);
|
||||||
return returnvalue::OK;
|
return returnvalue::OK;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user