Tools: autotest: avoid touch RC*_OPTION on sub

This commit is contained in:
Peter Barker 2019-03-30 09:05:13 +11:00 committed by Peter Barker
parent 954b6ae791
commit 4eaee039f0
1 changed files with 6 additions and 5 deletions

View File

@ -2090,11 +2090,12 @@ class AutoTest(ABC):
# TEST ARMING/DISARM
if not self.is_sub() and not self.is_tracker():
self.set_parameter("ARMING_RUDDER", 2) # allow arm and disarm with rudder on first tests
interlock_channel = 8 # Plane got flighmode_ch on channel 8
if not self.is_heli(): # heli don't need interlock option
interlock_channel = 9
self.set_parameter("RC%u_OPTION" % interlock_channel, 32)
self.set_rc(interlock_channel, 1000)
if self.is_copter():
interlock_channel = 8 # Plane got flighmode_ch on channel 8
if not self.is_heli(): # heli don't need interlock option
interlock_channel = 9
self.set_parameter("RC%u_OPTION" % interlock_channel, 32)
self.set_rc(interlock_channel, 1000)
self.zero_throttle()
# Disable auto disarm for next tests
# Rover and Sub don't have auto disarm