Commit f1596792 authored by LUGAN's avatar LUGAN
Browse files

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

parent 7eb9b963
Pipeline #1241 passed with stages
in 27 minutes and 41 seconds
......@@ -154,8 +154,8 @@ public class EventState<T extends EventDetector> {
*/
private double g(final SpacecraftState s) {
if (!s.getDate().equals(lastT)) {
lastT = s.getDate();
lastG = detector.g(s);
lastT = s.getDate();
}
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