Tools: autotest: skip rudder disarm for balancebot

This commit is contained in:
Peter Barker 2019-03-06 09:28:59 +11:00 committed by Peter Barker
parent 5f315aab59
commit b4af1dae0f
2 changed files with 12 additions and 2 deletions

View File

@ -58,6 +58,9 @@ class AutoTestBalanceBot(AutoTestRover):
ret[3] = 1500
return ret
def is_balancebot(self):
return True
def tests(self):
'''return list of all tests'''

View File

@ -1838,8 +1838,12 @@ class AutoTest(ABC):
if not self.arm_motors_with_rc_input():
raise NotAchievedException("Failed to arm with RC input")
self.progress("disarm with rc input")
if not self.disarm_motors_with_rc_input():
raise NotAchievedException("Failed to disarm with RC input")
if self.is_balancebot():
self.progress("balancebot can't disarm with RC input")
self.disarm_vehicle()
else:
if not self.disarm_motors_with_rc_input():
raise NotAchievedException("Failed to disarm with RC input")
self.start_subtest("Test arm and disarm with switch")
arming_switch = 7
@ -2177,6 +2181,9 @@ class AutoTest(ABC):
def is_rover(self):
return False
def is_balancebot(self):
return False
def is_heli(self):
return False