Skip to content

Commit

Permalink
Tools: autotest: use frame and VehicleInfo in AutoTestQuadPlane
Browse files Browse the repository at this point in the history
  • Loading branch information
kd0aij authored and peterbarker committed Feb 10, 2019
1 parent 513964c commit 74c114e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tools/autotest/quadplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from common import AutoTest
from pysim import util
from pysim import vehicleinfo

# get location of scripts
testdir = os.path.dirname(os.path.realpath(__file__))
Expand Down Expand Up @@ -55,7 +56,9 @@ def init(self):

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,
Expand Down

0 comments on commit 74c114e

Please sign in to comment.