autotest: add trivial autotest for TSYS01 temperature

This commit is contained in:
Peter Barker 2021-01-04 11:49:58 +11:00 committed by Peter Barker
parent 44a622ea7f
commit 6433647d9e
1 changed files with 6 additions and 0 deletions

View File

@ -231,6 +231,12 @@ class AutoTestSub(AutoTest):
self.disarm_vehicle()
self.progress("Manual dive OK")
m = self.mav.recv_match(type='SCALED_PRESSURE3', blocking=True)
if m is None:
raise NotAchievedException("Did not get SCALED_PRESSURE3")
if m.temperature != 2650:
raise NotAchievedException("Did not get correct TSYS01 temperature")
def dive_mission(self, filename):
self.progress("Executing mission %s" % filename)
self.load_mission(filename)