Browse Source

autotest: adjust optical flow speed test

c415-sdk
Andrew Tridgell 4 years ago
parent
commit
5f669e22ff
  1. 6
      Tools/autotest/arducopter.py

6
Tools/autotest/arducopter.py

@ -1772,11 +1772,11 @@ class AutoTestCopter(AutoTest):
# calculate max speed from altitude above the ground # calculate max speed from altitude above the ground
margin = 2.0 margin = 2.0
max_speed = alt * 1.4 + margin max_speed = alt * 1.5 + margin
self.progress("%0.1f: Low Speed: %f (want <= %u)" % self.progress("%0.1f: Low Speed: %f (want <= %u) alt=%.1f" %
(self.get_sim_time_cached() - tstart, (self.get_sim_time_cached() - tstart,
spd, spd,
max_speed)) max_speed, alt))
if spd > max_speed: if spd > max_speed:
raise NotAchievedException(("Speed should be limited by" raise NotAchievedException(("Speed should be limited by"
"EKF optical flow limits")) "EKF optical flow limits"))

Loading…
Cancel
Save