Commit ecf76afa authored by LUGAN's avatar LUGAN
Browse files

Make sure the lastG/lastT values are consistent in case of g() raising exception

parent d70cd669
Pipeline #1298 passed with stages
in 39 minutes and 1 second
...@@ -154,8 +154,8 @@ public class EventState<T extends EventDetector> { ...@@ -154,8 +154,8 @@ public class EventState<T extends EventDetector> {
*/ */
private double g(final SpacecraftState s) { private double g(final SpacecraftState s) {
if (!s.getDate().equals(lastT)) { if (!s.getDate().equals(lastT)) {
lastT = s.getDate();
lastG = detector.g(s); lastG = detector.g(s);
lastT = s.getDate();
} }
return lastG; return lastG;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment