Skip to content

Commit

Permalink
alt alt test
Browse files Browse the repository at this point in the history
  • Loading branch information
lthall committed Sep 28, 2024
1 parent 7347692 commit 786aac3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Tools/autotest/arducopter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11990,6 +11990,32 @@ def CommonOrigin(self):
# restart GPS driver
self.reboot_sitl()

def AltHoldTwice(self):
'''test taking off and landing in althold'''
self.customise_SITL_commandline(
[],
defaults_filepath=self.model_defaults_filepath('Callisto'),
model="octa-quad:@ROMFS/models/Callisto.json",
wipe=True,
)

self.change_mode('ALT_HOLD')

self.wait_ready_to_arm()
self.arm_vehicle()
self.set_rc(3, 2000)
self.wait_altitude(5, 100, relative=True)
self.set_rc(3, 1000)
self.wait_disarmed()

self.wait_ready_to_arm()
self.arm_vehicle()
self.set_rc(3, 2000)
self.delay_sim_time(10)
self.wait_altitude(5, 100, relative=True)
self.set_rc(3, 1000)
self.wait_disarmed()

def tests2b(self): # this block currently around 9.5mins here
'''return list of all tests'''
ret = ([
Expand Down Expand Up @@ -12095,6 +12121,7 @@ def tests2b(self): # this block currently around 9.5mins here
self.MAV_CMD_MISSION_START_p1_p2,
self.ScriptingAHRSSource,
self.CommonOrigin,
self.AltHoldTwice,
])
return ret

Expand Down

0 comments on commit 786aac3

Please sign in to comment.