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