mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
autotest: correct sub output on test failure
This commit is contained in:
parent
54b6e7b264
commit
54521fbbcb
@ -92,7 +92,7 @@ class AutoTestSub(AutoTest):
|
|||||||
self.progress('Altitude hold done: %f' % (previous_altitude))
|
self.progress('Altitude hold done: %f' % (previous_altitude))
|
||||||
return
|
return
|
||||||
if abs(m.alt - previous_altitude) > delta:
|
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):
|
def test_alt_hold(self):
|
||||||
"""Test ALT_HOLD mode
|
"""Test ALT_HOLD mode
|
||||||
|
Loading…
Reference in New Issue
Block a user