From 7c084e99551d7e6331c67b3033e5c4d91a704c17 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 17 Dec 2024 17:00:31 +1100 Subject: [PATCH] autotest: use perfect sim gps to avoid races in frsky test can't get mavlink and frsky to agree on a value! --- Tools/autotest/vehicle_test_suite.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Tools/autotest/vehicle_test_suite.py b/Tools/autotest/vehicle_test_suite.py index e847a3e5ce6c2..6ff5fc7c342d5 100644 --- a/Tools/autotest/vehicle_test_suite.py +++ b/Tools/autotest/vehicle_test_suite.py @@ -13738,8 +13738,11 @@ def wait_rpm1(self, min_rpm=None, timeout=10): def FRSkySPort(self): '''Test FrSky SPort mode''' - self.set_parameter("SERIAL5_PROTOCOL", 4) # serial5 is FRSky sport - self.set_parameter("RPM1_TYPE", 10) # enable SITL RPM sensor + self.set_parameters({ + "SERIAL5_PROTOCOL": 4, # serial5 is FRSky sport + "RPM1_TYPE": 10, # enable SITL RPM sensor + "GPS1_TYPE": 100, # use simulated backend for consistent position + }) port = self.spare_network_port() self.customise_SITL_commandline([ "--serial5=tcp:%u" % port # serial5 spews to localhost port