5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-03 14:38:30 -04:00

Tools: autotest: set new ARSPD_ENABLE param where needed

This commit is contained in:
Iampete1 2022-12-31 01:10:39 +00:00 committed by Andrew Tridgell
parent bba1d0b9d9
commit 7b171867af
2 changed files with 4 additions and 0 deletions

View File

@ -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()

View File

@ -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()