Browse Source

Tools: copter: update exception for rangefinder test

c415-sdk
Pierre Kancir 6 years ago committed by Peter Barker
parent
commit
aba594fe2d
  1. 2
      Tools/autotest/arducopter.py

2
Tools/autotest/arducopter.py

@ -2144,7 +2144,7 @@ class AutoTestCopter(AutoTest): @@ -2144,7 +2144,7 @@ class AutoTestCopter(AutoTest):
blocking=True)
if abs(m_r.distance - m_p.relative_alt/1000) > 1:
raise NotAchievedException("rangefinder/global position int mismatch")
raise NotAchievedException("rangefinder/global position int mismatch %0.2f vs %0.2f", (m_r.distance, m_p.relative_alt/1000))
self.land_and_disarm()

Loading…
Cancel
Save