autotest: add test for correct response to pressure calibration when no airspeed

This commit is contained in:
Peter Barker 2023-11-01 10:28:50 +11:00 committed by Peter Barker
parent 9d9b95af15
commit dc824506ae
1 changed files with 10 additions and 0 deletions

View File

@ -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