|
|
|
@ -1038,27 +1038,6 @@ class AutoTestPlane(AutoTest):
@@ -1038,27 +1038,6 @@ class AutoTestPlane(AutoTest):
|
|
|
|
|
raise NotAchievedException("fence status incorrect; %s want=%u got=%u" % |
|
|
|
|
(name, want, got)) |
|
|
|
|
|
|
|
|
|
def do_fence_en_or_dis_able(self, value, want_result=mavutil.mavlink.MAV_RESULT_ACCEPTED): |
|
|
|
|
if value: |
|
|
|
|
p1 = 1 |
|
|
|
|
else: |
|
|
|
|
p1 = 0 |
|
|
|
|
self.run_cmd(mavutil.mavlink.MAV_CMD_DO_FENCE_ENABLE, |
|
|
|
|
p1, # param1 |
|
|
|
|
0, # param2 |
|
|
|
|
0, # param3 |
|
|
|
|
0, # param4 |
|
|
|
|
0, # param5 |
|
|
|
|
0, # param6 |
|
|
|
|
0, # param7 |
|
|
|
|
want_result=want_result) |
|
|
|
|
|
|
|
|
|
def do_fence_enable(self, want_result=mavutil.mavlink.MAV_RESULT_ACCEPTED): |
|
|
|
|
self.do_fence_en_or_dis_able(True, want_result=want_result) |
|
|
|
|
|
|
|
|
|
def do_fence_disable(self, want_result=mavutil.mavlink.MAV_RESULT_ACCEPTED): |
|
|
|
|
self.do_fence_en_or_dis_able(False, want_result=want_result) |
|
|
|
|
|
|
|
|
|
def wait_circling_point_with_radius(self, loc, want_radius, epsilon=5.0, min_circle_time=5, timeout=120): |
|
|
|
|
on_radius_start_heading = None |
|
|
|
|
average_radius = 0.0 |
|
|
|
|