|
|
|
@ -3392,6 +3392,8 @@ class AutoTestCopter(AutoTest):
@@ -3392,6 +3392,8 @@ class AutoTestCopter(AutoTest):
|
|
|
|
|
self.guided_achieve_heading(135) |
|
|
|
|
|
|
|
|
|
self.start_subtest("move the vehicle using set_position_target_global_int") |
|
|
|
|
# the following numbers are 5-degree-latitude and 5-degrees |
|
|
|
|
# longitude - just so that we start to really move a lot. |
|
|
|
|
self.fly_guided_move_global_relative_alt(5, 5, 10) |
|
|
|
|
|
|
|
|
|
self.start_subtest("move the vehicle using MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED") |
|
|
|
@ -3900,6 +3902,9 @@ class AutoTestCopter(AutoTest):
@@ -3900,6 +3902,9 @@ class AutoTestCopter(AutoTest):
|
|
|
|
|
self.delay_sim_time(5) |
|
|
|
|
start = self.mav.location() |
|
|
|
|
self.progress("Moving to guided/position controller") |
|
|
|
|
# the following numbers are 1-degree-latitude and |
|
|
|
|
# 0-degrees longitude - just so that we start to |
|
|
|
|
# really move a lot. |
|
|
|
|
self.fly_guided_move_global_relative_alt(1, 0, 0) |
|
|
|
|
self.guided_achieve_heading(0) |
|
|
|
|
(roi_lat, roi_lon) = mavextra.gps_offset(start.lat, |
|
|
|
|