mirror of https://github.com/ArduPilot/ardupilot
autotest: add trivial autotest for TSYS01 temperature
This commit is contained in:
parent
44a622ea7f
commit
6433647d9e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue