Browse Source

autotest: fix Rover syntax for Python2

Apparently ** is Python3-only
apm_2208
Peter Barker 3 years ago committed by Randy Mackay
parent
commit
876cc77808
  1. 8
      Tools/autotest/rover.py

8
Tools/autotest/rover.py

@ -5789,10 +5789,12 @@ Brakes have negligible effect (with=%0.2fm without=%0.2fm delta=%0.2fm)
# the following magic numbers correspond to the post locations in SITL # the following magic numbers correspond to the post locations in SITL
home_string = "%s,%s,%s,%s" % (51.8752066, 14.6487840, 54.15, 315) home_string = "%s,%s,%s,%s" % (51.8752066, 14.6487840, 54.15, 315)
self.set_parameters({ rangefinder_params = {
"SIM_SONAR_ROT": 6, "SIM_SONAR_ROT": 6,
**(self.analog_rangefinder_parameters()), }
}) rangefinder_params.update(self.analog_rangefinder_parameters())
self.set_parameters(rangefinder_params)
self.customise_SITL_commandline([ self.customise_SITL_commandline([
"--home", home_string, "--home", home_string,
]) ])

Loading…
Cancel
Save