Commit bed15b65 authored by Bryan Cazabonne's avatar Bryan Cazabonne
Browse files

Prevented negative values of eccentricity when computing mean orbit.

parent 26502763
Pipeline #2107 failed with stages
in 17 minutes and 2 seconds
......@@ -643,7 +643,7 @@ public class BrouwerLyddanePropagator extends AbstractAnalyticalPropagator {
// update mean parameters
current = new BLModel(new KeplerianOrbit(current.mean.getA() + deltaA,
current.mean.getE() + deltaE,
FastMath.max(current.mean.getE() + deltaE, 0.0),
current.mean.getI() + deltaI,
current.mean.getPerigeeArgument() + deltaOmega,
current.mean.getRightAscensionOfAscendingNode() + deltaRAAN,
......
......@@ -637,7 +637,7 @@ public class FieldBrouwerLyddanePropagator<T extends CalculusFieldElement<T>> ex
// update mean parameters
current = new FieldBLModel<T>(new FieldKeplerianOrbit<T>(current.mean.getA() .add(deltaA),
current.mean.getE() .add(deltaE),
FastMath.max(current.mean.getE().add(deltaE), zero),
current.mean.getI() .add(deltaI),
current.mean.getPerigeeArgument() .add(deltaOmega),
current.mean.getRightAscensionOfAscendingNode().add(deltaRAAN),
......
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