Browse Source

Tools: autotest: skip rudder disarm for balancebot

master
Peter Barker 6 years ago committed by Peter Barker
parent
commit
b4af1dae0f
  1. 3
      Tools/autotest/balancebot.py
  2. 11
      Tools/autotest/common.py

3
Tools/autotest/balancebot.py

@ -58,6 +58,9 @@ class AutoTestBalanceBot(AutoTestRover): @@ -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'''

11
Tools/autotest/common.py

@ -1838,8 +1838,12 @@ class AutoTest(ABC): @@ -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): @@ -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

Loading…
Cancel
Save