autotest: add a home_relative_loc_neu method

This commit is contained in:
Peter Barker 2024-06-21 14:05:02 +10:00 committed by Peter Barker
parent 0056ef2d90
commit 744da0aec7

View File

@ -5450,6 +5450,12 @@ class TestSuite(ABC):
self.location_offset_ne(ret, n, e)
return ret
def home_relative_loc_neu(self, n, e, u):
ret = self.home_position_as_mav_location()
self.location_offset_ne(ret, n, e)
ret.alt += u
return ret
def zero_throttle(self):
"""Set throttle to zero."""
if self.is_rover():