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