Commit 9689cbb6 authored by Luc Maisonobe's avatar Luc Maisonobe

Fixed compilation warnings.

parent 8b143130
......@@ -81,6 +81,7 @@ public class AttitudesSequenceTest {
final EclipseDetector ed =
new EclipseDetector(sun, 696000000., earth, Constants.WGS84_EARTH_EQUATORIAL_RADIUS).
withHandler(new ContinueOnEvent<EclipseDetector>() {
private static final long serialVersionUID = 1L;
public EventHandler.Action eventOccurred(final SpacecraftState s, final EclipseDetector d, final boolean increasing) {
setInEclipse(s.getDate(), !increasing);
return EventHandler.Action.CONTINUE;
......
......@@ -65,6 +65,7 @@ public class DateDetectorTest {
Assert.assertNull(dateDetector.getDate());
EventDetector nodeDetector = new NodeDetector(iniOrbit, iniOrbit.getFrame()).
withHandler(new ContinueOnEvent<NodeDetector>() {
private static final long serialVersionUID = 1L;
public Action eventOccurred(SpacecraftState s, NodeDetector nd, boolean increasing)
throws OrekitException {
if (increasing) {
......@@ -86,6 +87,7 @@ public class DateDetectorTest {
public void testAutoEmbeddedTimer() throws OrekitException {
dateDetector = new DateDetector(maxCheck, threshold, iniDate.shiftedBy(-dt)).
withHandler(new ContinueOnEvent<DateDetector>() {
private static final long serialVersionUID = 1L;
public Action eventOccurred(SpacecraftState s, DateDetector dd, boolean increasing)
throws OrekitException {
AbsoluteDate nextDate = s.getDate().shiftedBy(-dt);
......@@ -104,6 +106,7 @@ public class DateDetectorTest {
public void testExceptionTimer() throws OrekitException {
dateDetector = new DateDetector(maxCheck, threshold, iniDate.shiftedBy(dt)).
withHandler(new ContinueOnEvent<DateDetector>() {
private static final long serialVersionUID = 1L;
public Action eventOccurred(SpacecraftState s, DateDetector dd, boolean increasing)
throws OrekitException {
double step = (evtno % 2 == 0) ? 2.*maxCheck : maxCheck/2.;
......
......@@ -68,7 +68,6 @@ import org.orekit.propagation.events.handlers.EventHandler;
import org.orekit.propagation.events.handlers.EventHandler.Action;
import org.orekit.propagation.sampling.OrekitFixedStepHandler;
import org.orekit.propagation.semianalytical.dsst.forces.DSSTAtmosphericDrag;
import org.orekit.propagation.semianalytical.dsst.forces.DSSTCentralBody;
import org.orekit.propagation.semianalytical.dsst.forces.DSSTForceModel;
import org.orekit.propagation.semianalytical.dsst.forces.DSSTSolarRadiationPressure;
import org.orekit.propagation.semianalytical.dsst.forces.DSSTTesseral;
......@@ -261,8 +260,10 @@ public class DSSTPropagatorTest {
final UnnormalizedSphericalHarmonicsProvider provider =
GravityFieldFactory.getUnnormalizedProvider(4, 4);
final Frame earthFrame = CelestialBodyFactory.getEarth().getBodyOrientedFrame();
DSSTForceModel force = new DSSTCentralBody(earthFrame,
Constants.WGS84_EARTH_ANGULAR_VELOCITY, provider);
DSSTForceModel force =
new org.orekit.propagation.semianalytical.dsst.forces.DSSTCentralBody(earthFrame,
Constants.WGS84_EARTH_ANGULAR_VELOCITY,
provider);
// GPS Orbit
final AbsoluteDate initDate = new AbsoluteDate(2007, 4, 16, 0, 46, 42.400,
......@@ -310,9 +311,11 @@ public class DSSTPropagatorTest {
final UnnormalizedSphericalHarmonicsProvider provider =
GravityFieldFactory.getUnnormalizedProvider(4, 4);
final Frame earthFrame = CelestialBodyFactory.getEarth().getBodyOrientedFrame();
DSSTForceModel force = new DSSTCentralBody(earthFrame,
Constants.WGS84_EARTH_ANGULAR_VELOCITY, provider,
12, 8, 8, 12, 12);
DSSTForceModel force =
new org.orekit.propagation.semianalytical.dsst.forces.DSSTCentralBody(earthFrame,
Constants.WGS84_EARTH_ANGULAR_VELOCITY,
provider,
12, 8, 8, 12, 12);
// GPS Orbit
final AbsoluteDate initDate = new AbsoluteDate(2007, 4, 16, 0, 46, 42.400,
......
Markdown is supported
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