| 1 |
From: Markus Wanner <[email protected]> |
| 2 |
Date: Mon, 28 Dec 2020 09:42:58 +0100 |
| 3 |
Subject: Revert test_gps.cxx to the last known working version |
| 4 |
|
| 5 |
Revert all changes to test_gps.cxx between 2020.5.4 and 2020.5.5 due |
| 6 |
to the missing method pointAlongRouteNorm. This patch should be |
| 7 |
removed again once upstream fixes this. |
| 8 |
--- |
| 9 |
test_suite/unit_tests/Instrumentation/test_gps.cxx | 5 +++-- |
| 10 |
1 file changed, 3 insertions(+), 2 deletions(-) |
| 11 |
|
| 12 |
diff --git a/test_suite/unit_tests/Instrumentation/test_gps.cxx b/test_suite/unit_tests/Instrumentation/test_gps.cxx |
| 13 |
index 43d9278..cc9597d 100644 |
| 14 |
--- a/test_suite/unit_tests/Instrumentation/test_gps.cxx |
| 15 |
+++ b/test_suite/unit_tests/Instrumentation/test_gps.cxx |
| 16 |
@@ -1728,9 +1728,10 @@ void GPSTests::testCourseLegIntermediateWaypoint() |
| 17 |
|
| 18 |
SGGeod decelPos = fp->pointAlongRoute(2, -15.0); |
| 19 |
fp->insertWayptAtIndex(new BasicWaypt(decelPos, "DECEL", fp), 2); |
| 20 |
- fp->setCurrentIndex(2); // DECEL |
| 21 |
+ fp->setCurrentIndex(3); // BLACA |
| 22 |
|
| 23 |
- SGGeod initPos = fp->pointAlongRouteNorm(1, 0.1); |
| 24 |
+ // position halfway between EGAA and EGPF |
| 25 |
+ SGGeod initPos = fp->pointAlongRoute(2, -5); |
| 26 |
FGTestApi::setPositionAndStabilise(initPos); |
| 27 |
|
| 28 |
auto gpsNode = globals->get_props()->getNode("instrumentation/gps"); |