Skip to content
Snippets Groups Projects
Commit aad8de72 authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Updated test after refinement change.

parent 0bebf129
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,8 @@ public abstract class AbstractAlgorithmTest {
// test direct localization
Vector3D position = state.getPVCoordinates(earth.getBodyFrame()).getPosition();
Vector3D los = groundP.subtract(position);
GeodeticPoint result = algorithm.intersection(earth, position, los);
GeodeticPoint result = algorithm.refineIntersection(earth, position, los,
algorithm.intersection(earth, position, los));
checkIntersection(position, los, result);
Assert.assertEquals(0.0, groundP.distance(earth.transform(result)), 2.0e-9);
......@@ -110,7 +111,8 @@ public abstract class AbstractAlgorithmTest {
// test direct localization
Vector3D position = state.getPVCoordinates(earth.getBodyFrame()).getPosition();
Vector3D los = groundP.subtract(position);
GeodeticPoint result = algorithm.intersection(earth, position, los);
GeodeticPoint result = algorithm.refineIntersection(earth, position, los,
algorithm.intersection(earth, position, los));
checkIntersection(position, los, result);
Assert.assertEquals(0.0, groundP.distance(earth.transform(result)), 2.0e-9);
......@@ -144,7 +146,8 @@ public abstract class AbstractAlgorithmTest {
Vector3D position = state.getPVCoordinates(earth.getBodyFrame()).getPosition();
Vector3D los = groundP.subtract(position);
GeodeticPoint result = algorithm.intersection(earth, position, los);
GeodeticPoint result = algorithm.refineIntersection(earth, position, los,
algorithm.intersection(earth, position, los));
checkIntersection(position, los, result);
Assert.assertEquals(0.0, groundP.distance(earth.transform(result)), 2.0e-9);
......
......@@ -38,7 +38,8 @@ public class DuvenhageAlgorithmTest extends AbstractAlgorithmTest {
final IntersectionAlgorithm algorithm = createAlgorithm(updater, 8);
Vector3D position = new Vector3D(-3787079.6453602533, 5856784.405679551, 1655869.0582939098);
Vector3D los = new Vector3D( 0.5127552821932051, -0.8254313129088879, -0.2361041470463311);
GeodeticPoint intersection = algorithm.intersection(earth, position, los);
GeodeticPoint intersection = algorithm.refineIntersection(earth, position, los,
algorithm.intersection(earth, position, los));
checkIntersection(position, los, intersection);
}
......@@ -48,7 +49,8 @@ public class DuvenhageAlgorithmTest extends AbstractAlgorithmTest {
final IntersectionAlgorithm algorithm = createAlgorithm(updater, 8);
Vector3D position = new Vector3D(-3787079.6453602533, 5856784.405679551, 1655869.0582939098);
Vector3D los = new Vector3D( 0.42804005978915904, -0.8670291034054828, -0.2550338037664377);
GeodeticPoint intersection = algorithm.intersection(earth, position, los);
GeodeticPoint intersection = algorithm.refineIntersection(earth, position, los,
algorithm.intersection(earth, position, los));
checkIntersection(position, los, intersection);
}
......
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