Tools: autotest: skip rudder disarm for balancebot
This commit is contained in:
parent
5f315aab59
commit
b4af1dae0f
@ -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'''
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user