mirror of https://github.com/ArduPilot/ardupilot
Tools/autotest: Use clearer method of setting parameters
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
This commit is contained in:
parent
f367fe5a73
commit
8fbea44afd
|
@ -1725,11 +1725,13 @@ class AutoTestPlane(AutoTest):
|
||||||
|
|
||||||
def PitotBlockage(self):
|
def PitotBlockage(self):
|
||||||
'''Test detection and isolation of a blocked pitot tube'''
|
'''Test detection and isolation of a blocked pitot tube'''
|
||||||
self.set_parameter("ARSPD_OPTIONS",15)
|
self.set_parameters({
|
||||||
self.set_parameter("ARSPD_USE",1)
|
"ARSPD_OPTIONS":15,
|
||||||
self.set_parameter("SIM_WIND_SPD",10)
|
"ARSPD_USE": 1,
|
||||||
self.set_parameter("SIM_WIND_DIR",0)
|
"SIM_WIND_SPD": 10,
|
||||||
self.set_parameter("ARSPD_WIND_MAX",15)
|
"SIM_WIND_DIR": 0,
|
||||||
|
"ARSPD_WIND_MAX":15,
|
||||||
|
})
|
||||||
self.wait_ready_to_arm()
|
self.wait_ready_to_arm()
|
||||||
self.change_mode("TAKEOFF")
|
self.change_mode("TAKEOFF")
|
||||||
self.arm_vehicle()
|
self.arm_vehicle()
|
||||||
|
|
Loading…
Reference in New Issue