Skip to content
Snippets Groups Projects
Commit f8e82a12 authored by Guylaine Prat's avatar Guylaine Prat
Browse files

Update due to deprecated method in Orekit 9.0.1

parent 55d820bd
No related branches found
No related tags found
No related merge requests found
...@@ -334,8 +334,6 @@ public class TestUtils { ...@@ -334,8 +334,6 @@ public class TestUtils {
propagator.propagate(minDate); propagator.propagate(minDate);
final List<TimeStampedPVCoordinates> list = new ArrayList<TimeStampedPVCoordinates>(); final List<TimeStampedPVCoordinates> list = new ArrayList<TimeStampedPVCoordinates>();
propagator.setMasterMode(step, new OrekitFixedStepHandler() { propagator.setMasterMode(step, new OrekitFixedStepHandler() {
public void init(SpacecraftState s0, AbsoluteDate t) {
}
public void handleStep(SpacecraftState currentState, boolean isLast) { public void handleStep(SpacecraftState currentState, boolean isLast) {
list.add(new TimeStampedPVCoordinates(currentState.getDate(), list.add(new TimeStampedPVCoordinates(currentState.getDate(),
currentState.getPVCoordinates().getPosition(), currentState.getPVCoordinates().getPosition(),
...@@ -360,8 +358,6 @@ public class TestUtils { ...@@ -360,8 +358,6 @@ public class TestUtils {
propagator.propagate(minDate); propagator.propagate(minDate);
final List<TimeStampedAngularCoordinates> list = new ArrayList<TimeStampedAngularCoordinates>(); final List<TimeStampedAngularCoordinates> list = new ArrayList<TimeStampedAngularCoordinates>();
propagator.setMasterMode(step, new OrekitFixedStepHandler() { propagator.setMasterMode(step, new OrekitFixedStepHandler() {
public void init(SpacecraftState s0, AbsoluteDate t) {
}
public void handleStep(SpacecraftState currentState, boolean isLast) { public void handleStep(SpacecraftState currentState, boolean isLast) {
list.add(new TimeStampedAngularCoordinates(currentState.getDate(), list.add(new TimeStampedAngularCoordinates(currentState.getDate(),
currentState.getAttitude().getRotation(), currentState.getAttitude().getRotation(),
......
...@@ -799,8 +799,6 @@ public class RuggedBuilderTest { ...@@ -799,8 +799,6 @@ public class RuggedBuilderTest {
propagator.propagate(minDate); propagator.propagate(minDate);
final List<TimeStampedPVCoordinates> list = new ArrayList<TimeStampedPVCoordinates>(); final List<TimeStampedPVCoordinates> list = new ArrayList<TimeStampedPVCoordinates>();
propagator.setMasterMode(step, new OrekitFixedStepHandler() { propagator.setMasterMode(step, new OrekitFixedStepHandler() {
public void init(SpacecraftState s0, AbsoluteDate t) {
}
public void handleStep(SpacecraftState currentState, boolean isLast) { public void handleStep(SpacecraftState currentState, boolean isLast) {
list.add(new TimeStampedPVCoordinates(currentState.getDate(), list.add(new TimeStampedPVCoordinates(currentState.getDate(),
currentState.getPVCoordinates().getPosition(), currentState.getPVCoordinates().getPosition(),
...@@ -821,8 +819,6 @@ public class RuggedBuilderTest { ...@@ -821,8 +819,6 @@ public class RuggedBuilderTest {
propagator.propagate(minDate); propagator.propagate(minDate);
final List<TimeStampedAngularCoordinates> list = new ArrayList<TimeStampedAngularCoordinates>(); final List<TimeStampedAngularCoordinates> list = new ArrayList<TimeStampedAngularCoordinates>();
propagator.setMasterMode(step, new OrekitFixedStepHandler() { propagator.setMasterMode(step, new OrekitFixedStepHandler() {
public void init(SpacecraftState s0, AbsoluteDate t) {
}
public void handleStep(SpacecraftState currentState, boolean isLast) { public void handleStep(SpacecraftState currentState, boolean isLast) {
list.add(new TimeStampedAngularCoordinates(currentState.getDate(), list.add(new TimeStampedAngularCoordinates(currentState.getDate(),
currentState.getAttitude().getRotation(), currentState.getAttitude().getRotation(),
......
...@@ -319,8 +319,6 @@ public class SensorMeanPlaneCrossingTest { ...@@ -319,8 +319,6 @@ public class SensorMeanPlaneCrossingTest {
propagator.propagate(minDate); propagator.propagate(minDate);
final List<TimeStampedPVCoordinates> list = new ArrayList<TimeStampedPVCoordinates>(); final List<TimeStampedPVCoordinates> list = new ArrayList<TimeStampedPVCoordinates>();
propagator.setMasterMode(step, new OrekitFixedStepHandler() { propagator.setMasterMode(step, new OrekitFixedStepHandler() {
public void init(SpacecraftState s0, AbsoluteDate t) {
}
public void handleStep(SpacecraftState currentState, boolean isLast) { public void handleStep(SpacecraftState currentState, boolean isLast) {
list.add(new TimeStampedPVCoordinates(currentState.getDate(), list.add(new TimeStampedPVCoordinates(currentState.getDate(),
currentState.getPVCoordinates().getPosition(), currentState.getPVCoordinates().getPosition(),
...@@ -341,8 +339,6 @@ public class SensorMeanPlaneCrossingTest { ...@@ -341,8 +339,6 @@ public class SensorMeanPlaneCrossingTest {
propagator.propagate(minDate); propagator.propagate(minDate);
final List<TimeStampedAngularCoordinates> list = new ArrayList<TimeStampedAngularCoordinates>(); final List<TimeStampedAngularCoordinates> list = new ArrayList<TimeStampedAngularCoordinates>();
propagator.setMasterMode(step, new OrekitFixedStepHandler() { propagator.setMasterMode(step, new OrekitFixedStepHandler() {
public void init(SpacecraftState s0, AbsoluteDate t) {
}
public void handleStep(SpacecraftState currentState, boolean isLast) { public void handleStep(SpacecraftState currentState, boolean isLast) {
list.add(new TimeStampedAngularCoordinates(currentState.getDate(), list.add(new TimeStampedAngularCoordinates(currentState.getDate(),
currentState.getAttitude().getRotation(), currentState.getAttitude().getRotation(),
......
...@@ -72,8 +72,6 @@ public class RoughVisibilityEstimatorTest { ...@@ -72,8 +72,6 @@ public class RoughVisibilityEstimatorTest {
Propagator propagator = createPropagator(earth, gravityField, orbit); Propagator propagator = createPropagator(earth, gravityField, orbit);
final List<TimeStampedPVCoordinates> pv = new ArrayList<TimeStampedPVCoordinates>(); final List<TimeStampedPVCoordinates> pv = new ArrayList<TimeStampedPVCoordinates>();
propagator.setMasterMode(1.0, new OrekitFixedStepHandler() { propagator.setMasterMode(1.0, new OrekitFixedStepHandler() {
public void init(SpacecraftState s0, AbsoluteDate t) {
}
public void handleStep(SpacecraftState currentState, boolean isLast) { public void handleStep(SpacecraftState currentState, boolean isLast) {
pv.add(currentState.getPVCoordinates()); pv.add(currentState.getPVCoordinates());
} }
...@@ -100,8 +98,6 @@ public class RoughVisibilityEstimatorTest { ...@@ -100,8 +98,6 @@ public class RoughVisibilityEstimatorTest {
Propagator propagator = createPropagator(earth, gravityField, orbit); Propagator propagator = createPropagator(earth, gravityField, orbit);
final List<TimeStampedPVCoordinates> pv = new ArrayList<TimeStampedPVCoordinates>(); final List<TimeStampedPVCoordinates> pv = new ArrayList<TimeStampedPVCoordinates>();
propagator.setMasterMode(1.0, new OrekitFixedStepHandler() { propagator.setMasterMode(1.0, new OrekitFixedStepHandler() {
public void init(SpacecraftState s0, AbsoluteDate t) {
}
public void handleStep(SpacecraftState currentState, boolean isLast) { public void handleStep(SpacecraftState currentState, boolean isLast) {
pv.add(currentState.getPVCoordinates()); pv.add(currentState.getPVCoordinates());
} }
......
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