Tools: autotest: add yaw test for motor fail test

This commit is contained in:
Peter Barker 2019-03-25 14:56:02 +11:00 committed by Peter Barker
parent c6b8335392
commit e155ddbeba

View File

@ -1377,6 +1377,9 @@ class AutoTestCopter(AutoTest):
self.progress(" Yaw: %f deg" % int_error_yaw)
self.progress("----")
if int_error_yaw_rate > 0.1:
raise NotAchievedException("Vehicle is spinning")
if alt_delta < -20:
raise NotAchievedException("Vehicle is descending")