Commit 0fb2a058 authored by LUGAN's avatar LUGAN
Browse files

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

parent bd55a5b4
Pipeline #1312 passed with stages
in 28 minutes and 10 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