From 74c114e455b29b413c30ff9da865c09e39cb96dd Mon Sep 17 00:00:00 2001 From: Mark Whitehorn Date: Sat, 9 Feb 2019 12:43:07 -0700 Subject: [PATCH] Tools: autotest: use frame and VehicleInfo in AutoTestQuadPlane --- Tools/autotest/quadplane.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/quadplane.py b/Tools/autotest/quadplane.py index bdcc93ed15..b9e612eb55 100644 --- a/Tools/autotest/quadplane.py +++ b/Tools/autotest/quadplane.py @@ -8,6 +8,7 @@ from pymavlink import mavutil from common import AutoTest from pysim import util +from pysim import vehicleinfo # get location of scripts testdir = os.path.dirname(os.path.realpath(__file__)) @@ -55,7 +56,9 @@ class AutoTestQuadPlane(AutoTest): self.mavproxy_logfile = self.open_mavproxy_logfile() - defaults_file = os.path.join(testdir, 'default_params/quadplane.parm') + vinfo = vehicleinfo.VehicleInfo() + defaults_file = vinfo.options["ArduPlane"]["frames"][self.frame]["default_params_filename"] + self.sitl = util.start_SITL(self.binary, wipe=True, model=self.frame,