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:
parent
bba1d0b9d9
commit
7b171867af
Tools/autotest
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user