Skip to content
Snippets Groups Projects
Commit b42fd778 authored by Romain Serra's avatar Romain Serra
Browse files

Fixes SK tutorial

parent 11b49666
No related branches found
No related tags found
No related merge requests found
Pipeline #7266 failed
......@@ -484,7 +484,7 @@ public class StationKeeping {
printManeuvers(maneuvers, t0);
manNb += maneuvers.size();
dVtot += maneuvers.stream().mapToDouble(m -> m.getDeltaVSat().getNorm()).sum();
dVtot += maneuvers.stream().mapToDouble(m -> m.getImpulseProvider().getImpulse(null, true, null).getNorm()).sum();
// Removes previous maneuvers (already triggered) from the propagator
propagator.clearEventsDetectors();
......@@ -700,7 +700,7 @@ public class StationKeeping {
for (ImpulseManeuver man: maneuvers) {
final DateDetector manDateDetector = (DateDetector) man.getTrigger();
final AbsoluteDate manDate = manDateDetector.getDates().get(0).getDate();
final double dV = man.getDeltaVSat().getX();
final double dV = man.getImpulseProvider().getImpulse(null, true, null).getX();
System.out.format(" DeltaV #%d = %f m/s @ %s (%.1f days from simulation start date)%n",
++i, dV, format(manDate),
manDate.durationFrom(tIni) / Constants.JULIAN_DAY);
......
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