From 7b171867afb3122a44f69838b3e4c431d30a2884 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sat, 31 Dec 2022 01:10:39 +0000 Subject: [PATCH] Tools: autotest: set new ARSPD_ENABLE param where needed --- Tools/autotest/common.py | 3 +++ Tools/autotest/helicopter.py | 1 + 2 files changed, 4 insertions(+) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index 8d32865126..e0be72e87a 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -2957,6 +2957,9 @@ class AutoTest(ABC): '''test sending of HIGH_LATENCY2''' # set airspeed sensor type to DLVR for air temperature message testing + if not self.is_plane(): + # Plane does not have enable parameter + self.set_parameter("ARSPD_ENABLE", 1) self.set_parameter("ARSPD_BUS", 2) self.set_parameter("ARSPD_TYPE", 7) self.reboot_sitl() diff --git a/Tools/autotest/helicopter.py b/Tools/autotest/helicopter.py index c86286d1fa..b2f1edddf1 100644 --- a/Tools/autotest/helicopter.py +++ b/Tools/autotest/helicopter.py @@ -397,6 +397,7 @@ class AutoTestHelicopter(AutoTestCopter): raise NotAchievedException("Airspeed mismatch (as1=%f as2=%f)" % (airspeed[0], airspeed[1])) # Copter's airspeed sensors are off by default + self.set_parameter("ARSPD_ENABLE", 1) self.set_parameter("ARSPD_TYPE", 2) # Analog airspeed driver self.set_parameter("ARSPD_PIN", 1) # Analog airspeed driver pin for SITL self.reboot_sitl()