This commit is contained in:
parent
1518fba6bd
commit
2f7abb2da8
@ -417,12 +417,12 @@ void Guidance::sunQuatPtg(ACS::SensorValues *sensorValues, acsctrl::MekfData *me
|
|||||||
// Assign helper vector (north pole inertial)
|
// Assign helper vector (north pole inertial)
|
||||||
double helperVec[3] = {0, 0, 1};
|
double helperVec[3] = {0, 0, 1};
|
||||||
|
|
||||||
//
|
// Construct y-axis from helper vector and z-axis
|
||||||
double yAxis[3] = {0, 0, 0};
|
double yAxis[3] = {0, 0, 0};
|
||||||
VectorOperations<double>::cross(zAxis, helperVec, yAxis);
|
VectorOperations<double>::cross(zAxis, helperVec, yAxis);
|
||||||
VectorOperations<double>::normalize(yAxis, yAxis, 3);
|
VectorOperations<double>::normalize(yAxis, yAxis, 3);
|
||||||
|
|
||||||
//
|
// Construct x-axis from y- and z-axes
|
||||||
double xAxis[3] = {0, 0, 0};
|
double xAxis[3] = {0, 0, 0};
|
||||||
VectorOperations<double>::cross(yAxis, zAxis, xAxis);
|
VectorOperations<double>::cross(yAxis, zAxis, xAxis);
|
||||||
VectorOperations<double>::normalize(xAxis, xAxis, 3);
|
VectorOperations<double>::normalize(xAxis, xAxis, 3);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user