fixed that mgm value was overwritten in wrong unit
This commit is contained in:
parent
245b5dfcc6
commit
1cf3fbaabe
@ -94,7 +94,8 @@ ReturnValue_t SafeCtrl::safeNoMekf(timeval now, double *susDirB, bool susDirBVal
|
|||||||
}
|
}
|
||||||
|
|
||||||
// change unit from uT to T
|
// change unit from uT to T
|
||||||
VectorOperations<double>::mulScalar(magFieldB, 1e-6, magFieldB, 3);
|
double magFieldBT[3] = {0,0,0};
|
||||||
|
VectorOperations<double>::mulScalar(magFieldB, 1e-6, magFieldBT, 3);
|
||||||
|
|
||||||
// normalize sunDir and magDir
|
// normalize sunDir and magDir
|
||||||
double magDirB[3] = {0, 0, 0};
|
double magDirB[3] = {0, 0, 0};
|
||||||
|
Loading…
Reference in New Issue
Block a user