autotest: fixed MAV_CMD_GUIDED_CHANGE_ALTITUDE

need terrain handlers installed to support terrain targets
This commit is contained in:
Andrew Tridgell 2024-09-29 16:31:41 +10:00
parent 068124358f
commit 6bf69eb7dc
1 changed files with 1 additions and 0 deletions

View File

@ -5533,6 +5533,7 @@ class AutoTestPlane(vehicle_test_suite.TestSuite):
def MAV_CMD_GUIDED_CHANGE_ALTITUDE(self):
'''test handling of MAV_CMD_GUIDED_CHANGE_ALTITUDE'''
self.install_terrain_handlers_context()
self.start_subtest("set home relative altitude")
self.takeoff(30, relative=True)
self.change_mode('GUIDED')