Skip to content
Snippets Groups Projects
Commit 4b2eed05 authored by Guylaine Prat's avatar Guylaine Prat
Browse files

Correct the test of maxDate vs maxPVDate

Fixes issue #256
parent ff5da2a6
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ import org.orekit.utils.TimeStampedPVCoordinates;
/** Provider for observation transforms.
* @author Luc Maisonobe
* @author Guylaine Prat
*/
public class SpacecraftToObservedBody implements Serializable {
......@@ -110,7 +111,7 @@ public class SpacecraftToObservedBody implements Serializable {
if (minPVDate.durationFrom(minDate) > overshootTolerance) {
throw new RuggedException(RuggedMessages.OUT_OF_TIME_RANGE, minDate, minPVDate, maxPVDate);
}
if (maxDate.durationFrom(maxDate) > overshootTolerance) {
if (maxDate.durationFrom(maxPVDate) > overshootTolerance) {
throw new RuggedException(RuggedMessages.OUT_OF_TIME_RANGE, maxDate, minPVDate, maxPVDate);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment