From dc824506ae2a36be59adb28d9b9070571065820e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 1 Nov 2023 10:28:50 +1100 Subject: [PATCH] autotest: add test for correct response to pressure calibration when no airspeed --- Tools/autotest/blimp.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Tools/autotest/blimp.py b/Tools/autotest/blimp.py index 05a8d5fd98..661c4a5162 100644 --- a/Tools/autotest/blimp.py +++ b/Tools/autotest/blimp.py @@ -237,6 +237,15 @@ class AutoTestBlimp(TestSuite): self.disarm_vehicle() + def PREFLIGHT_Pressure(self): + '''test triggering pressure calibration with mavlink command''' + # as airspeed is not instantiated on Blimp we expect to + # instantly get back an accepted. + self.run_cmd( + mavutil.mavlink.MAV_CMD_PREFLIGHT_CALIBRATION, + p3=1, # p3, baro + ) + def tests(self): '''return list of all tests''' # ret = super(AutoTestBlimp, self).tests() @@ -244,6 +253,7 @@ class AutoTestBlimp(TestSuite): ret.extend([ self.FlyManual, self.FlyLoiter, + self.PREFLIGHT_Pressure, ]) return ret