From 27cd7ec8e0b29181faea07cdf9e288cf90d5a685 Mon Sep 17 00:00:00 2001 From: Jonathan Guinet <jonathan.guinet@c-s.fr> Date: Tue, 4 Oct 2016 03:23:47 -0400 Subject: [PATCH] SCALE and bounds change in los transforms --- src/main/java/org/orekit/rugged/los/FixedRotation.java | 2 +- src/main/java/org/orekit/rugged/los/FixedZHomothety.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/orekit/rugged/los/FixedRotation.java b/src/main/java/org/orekit/rugged/los/FixedRotation.java index 00983195..5746f167 100644 --- a/src/main/java/org/orekit/rugged/los/FixedRotation.java +++ b/src/main/java/org/orekit/rugged/los/FixedRotation.java @@ -43,7 +43,7 @@ public class FixedRotation implements TimeIndependentLOSTransform { * in the multiplications/divisions sequences. * </p> */ - private final double SCALE = FastMath.scalb(1.0, -20); + private final double SCALE = FastMath.scalb(1.0, 0); /** Rotation axis. */ private final Vector3D axis; diff --git a/src/main/java/org/orekit/rugged/los/FixedZHomothety.java b/src/main/java/org/orekit/rugged/los/FixedZHomothety.java index f2d76bea..3c0dbeda 100644 --- a/src/main/java/org/orekit/rugged/los/FixedZHomothety.java +++ b/src/main/java/org/orekit/rugged/los/FixedZHomothety.java @@ -41,7 +41,7 @@ public class FixedZHomothety implements TimeIndependentLOSTransform { * in the multiplications/divisions sequences. * </p> */ - private final double SCALE = FastMath.scalb(1.0, -20); + private final double SCALE = FastMath.scalb(1.0, 0); /** Homothety factor. */ private double factor; @@ -63,7 +63,7 @@ public class FixedZHomothety implements TimeIndependentLOSTransform { this.factor = factorvalue; this.factorDS = null; try { - this.factorDriver = new ParameterDriver(name, factorvalue, SCALE, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY); + this.factorDriver = new ParameterDriver(name, factorvalue, SCALE, 0, Double.POSITIVE_INFINITY); factorDriver.addObserver(new ParameterObserver() { @Override public void valueChanged(final double previousValue, final ParameterDriver driver) { -- GitLab