From 54521fbbcb892ff3e3adcca851df61594bc9dde3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 2 Jan 2020 14:47:17 +1100 Subject: [PATCH] autotest: correct sub output on test failure --- Tools/autotest/ardusub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/autotest/ardusub.py b/Tools/autotest/ardusub.py index 6a6d110145..b8fcad4033 100644 --- a/Tools/autotest/ardusub.py +++ b/Tools/autotest/ardusub.py @@ -92,7 +92,7 @@ class AutoTestSub(AutoTest): self.progress('Altitude hold done: %f' % (previous_altitude)) return if abs(m.alt - previous_altitude) > delta: - raise NotAchievedException("Altitude not maintained: want %.2f (~%.2f) got=%.2f" % (m, delta, m.alt)) + raise NotAchievedException("Altitude not maintained: want %.2f (+/- %.2f) got=%.2f" % (previous_altitude, delta, m.alt)) def test_alt_hold(self): """Test ALT_HOLD mode