mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
autotest: added a test for landing a copter with significant AHRS trim
this fails with EKF3
This commit is contained in:
parent
673a60f1ba
commit
a24763a2ba
@ -9657,6 +9657,20 @@ class AutoTestCopter(AutoTest):
|
|||||||
self.context_pop()
|
self.context_pop()
|
||||||
self.reboot_sitl()
|
self.reboot_sitl()
|
||||||
|
|
||||||
|
def AHRSTrimLand(self):
|
||||||
|
'''test land detector with significant AHRS trim'''
|
||||||
|
self.context_push()
|
||||||
|
self.set_parameters({
|
||||||
|
"SIM_ACC_TRIM_X": 0.12,
|
||||||
|
"AHRS_TRIM_X": 0.12,
|
||||||
|
})
|
||||||
|
self.reboot_sitl()
|
||||||
|
self.wait_ready_to_arm()
|
||||||
|
self.takeoff(alt_min=20, mode='LOITER')
|
||||||
|
self.land_and_disarm()
|
||||||
|
self.context_pop()
|
||||||
|
self.reboot_sitl()
|
||||||
|
|
||||||
def tests2b(self): # this block currently around 9.5mins here
|
def tests2b(self): # this block currently around 9.5mins here
|
||||||
'''return list of all tests'''
|
'''return list of all tests'''
|
||||||
ret = ([
|
ret = ([
|
||||||
@ -9710,6 +9724,7 @@ class AutoTestCopter(AutoTest):
|
|||||||
self.ScriptMountPOI,
|
self.ScriptMountPOI,
|
||||||
self.FlyMissionTwice,
|
self.FlyMissionTwice,
|
||||||
self.IMUConsistency,
|
self.IMUConsistency,
|
||||||
|
self.AHRSTrimLand,
|
||||||
])
|
])
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user