Tools/autotest: Use clearer method of setting parameters

Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
This commit is contained in:
Paul Riseborough 2022-09-14 17:16:04 +10:00 committed by Randy Mackay
parent f367fe5a73
commit 8fbea44afd
1 changed files with 7 additions and 5 deletions

View File

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