autotest: install terrain handlers in TerrainLoiter test

needs terrain, was passing because previous tests were providing hte autopilot with the data
This commit is contained in:
Peter Barker 2024-10-02 16:20:04 +10:00 committed by Peter Barker
parent 653aff7f8a
commit e40ae8e649

View File

@ -2924,6 +2924,7 @@ class AutoTestPlane(vehicle_test_suite.TestSuite):
def TerrainLoiter(self):
'''Test terrain following in loiter'''
self.context_push()
self.install_terrain_handlers_context()
self.set_parameters({
"TERRAIN_FOLLOW": 1, # enable terrain following in loiter
"WP_LOITER_RAD": 2000, # set very large loiter rad to get some terrain changes