From b0e5bfc32da34f38ae9c6e3a7d5ecaaf599a4533 Mon Sep 17 00:00:00 2001 From: Yaapu Date: Sat, 8 Feb 2020 16:31:10 -0800 Subject: [PATCH] autotest:FRSkySPort: added support for VARIO 0x30 and GPS 0x800 sensor types This adds support for the VARIO sensor 0x30 and GPS sensor 0x800 to the autotest suite --- Tools/autotest/common.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index 43e8f1b98d..530cb59e17 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -510,10 +510,10 @@ class FRSkySPort(FRSky): 0x04: "Fuel", 0x05: "Temp2", 0x10: "Baro Alt BP", - 0x13: "GPS_LAT_BP", - 0x1B: "GPS_LAT_AP", 0x21: "BARO_ALT_AP", + 0x30: "VARIO", 0x39: "VFAS", + 0x800: "GPS", } self.sensors_to_poll = [ @@ -4532,14 +4532,14 @@ switch value''' # This, at least makes sure we're getting some of each # message. wants = { - 0x02: lambda x : True, - 0x04: lambda x : True, - 0x05: lambda x : True, - 0x10: lambda x : True, - 0x13: lambda x : True, - 0x1B: lambda x : True, - 0x21: lambda x : True, - 0x39: lambda x : True, + 0x02: lambda x : True, + 0x04: lambda x : True, + 0x05: lambda x : True, + 0x10: lambda x : True, + 0x21: lambda x : True, + 0x30: lambda x : True, + 0x39: lambda x : True, + 0x800: lambda x : True, } tstart = self.get_sim_time_cached() last_wanting_print = 0