Prevent STR Blinding #859
@ -48,8 +48,6 @@ void Guidance::targetQuatPtgTarget(timeval timeAbsolute, const double timeDelta,
|
||||
acsParameters->targetModeControllerParameters.latitudeTgt,
|
||||
acsParameters->targetModeControllerParameters.longitudeTgt,
|
||||
acsParameters->targetModeControllerParameters.altitudeTgt, targetF);
|
||||
double targetDirF[3] = {0, 0, 0};
|
||||
VectorOperations<double>::subtract(targetF, posSatF, targetDirF, 3);
|
||||
|
||||
// target direction in the ECI frame
|
||||
double posSatI[3] = {0, 0, 0}, targetI[3] = {0, 0, 0}, targetDirI[3] = {0, 0, 0};
|
||||
@ -106,7 +104,7 @@ void Guidance::targetQuatPtgGs(timeval timeAbsolute, const double timeDelta,
|
||||
// target direction in the ECI frame
|
||||
double posSatI[3] = {0, 0, 0}, posGroundStationI[3] = {0, 0, 0}, groundStationDirI[3] = {0, 0, 0};
|
||||
CoordinateTransformations::positionEcfToEci(posSatF, posSatI, &timeAbsolute);
|
||||
CoordinateTransformations::positionEcfToEci(posGroundStationI, posGroundStationI, &timeAbsolute);
|
||||
CoordinateTransformations::positionEcfToEci(posGroundStationF, posGroundStationI, &timeAbsolute);
|
||||
VectorOperations<double>::subtract(posGroundStationI, posSatI, groundStationDirI, 3);
|
||||
|
||||
// negative x-axis aligned with target direction
|
||||
|
Loading…
Reference in New Issue
Block a user