@@ -403,9 +403,9 @@ Array<Access> Generator::computeAccessesForTrajectoryTarget(
403
403
const Array<physics::time ::Interval> accessIntervals =
404
404
temporalConditionSolver.solve (this ->getConditionFunction (anAccessTarget, aToTrajectory), anInterval);
405
405
406
- const Trajectory& aFromTrajectory = anAccessTarget.accessTrajectory ();
406
+ const Trajectory& fromTrajectory = anAccessTarget.accessTrajectory ();
407
407
408
- return generateAccessesFromIntervals (accessIntervals, anInterval, aFromTrajectory , aToTrajectory);
408
+ return generateAccessesFromIntervals (accessIntervals, anInterval, fromTrajectory , aToTrajectory);
409
409
}
410
410
411
411
Array<Array<Access>> Generator::computeAccessesForFixedTargets (
@@ -933,17 +933,9 @@ Access Generator::GenerateAccess(
933
933
934
934
const Instant acquisitionOfSignal = anAccessInterval.getStart ();
935
935
936
- ostk::physics::time ::Interval accessInterval = anAccessInterval;
937
-
938
- if (anAccessInterval.getDuration () == Duration::Zero ())
939
- {
940
- accessInterval = physics::time::Interval::Closed (
941
- anAccessInterval.getStart () - Duration::Seconds (60.0 ), anAccessInterval.getStart () + Duration::Seconds (60.0 )
942
- );
943
- }
944
-
945
936
const Instant timeOfClosestApproach =
946
937
Generator::FindTimeOfClosestApproach (anAccessInterval, aFromTrajectory, aToTrajectory, aTolerance);
938
+
947
939
const Instant lossOfSignal = anAccessInterval.getEnd ();
948
940
949
941
if (!timeOfClosestApproach.isDefined () and type == Access::Type::Complete)
0 commit comments