|
|
|
@ -1158,10 +1158,10 @@ class AutoTestPlane(AutoTest):
@@ -1158,10 +1158,10 @@ class AutoTestPlane(AutoTest):
|
|
|
|
|
self.progress("Test arming while vehicle outside of inclusion zone") |
|
|
|
|
self.set_parameter("FENCE_TYPE", 4) # Enables polygon fence types |
|
|
|
|
locs = [ |
|
|
|
|
mavutil.location(1.0, 1.0, 0, 0), |
|
|
|
|
mavutil.location(1.0, 1.001, 0, 0), |
|
|
|
|
mavutil.location(1.000, 1.000, 0, 0), |
|
|
|
|
mavutil.location(1.000, 1.001, 0, 0), |
|
|
|
|
mavutil.location(1.001, 1.001, 0, 0), |
|
|
|
|
mavutil.location(1.001, 1.0, 0, 0) |
|
|
|
|
mavutil.location(1.001, 1.000, 0, 0) |
|
|
|
|
] |
|
|
|
|
self.upload_fences_from_locations( |
|
|
|
|
mavutil.mavlink.MAV_CMD_NAV_FENCE_POLYGON_VERTEX_INCLUSION, |
|
|
|
@ -2492,7 +2492,6 @@ class AutoTestPlane(AutoTest):
@@ -2492,7 +2492,6 @@ class AutoTestPlane(AutoTest):
|
|
|
|
|
if (not (m.onboard_control_sensors_health & fence_bit)): |
|
|
|
|
raise NotAchievedException("Fence breach did not clear") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.progress("Fly below floor and check for breach") |
|
|
|
|
self.change_altitude(self.homeloc.alt + cruise_alt - 80) |
|
|
|
|
|
|
|
|
@ -2528,7 +2527,6 @@ class AutoTestPlane(AutoTest):
@@ -2528,7 +2527,6 @@ class AutoTestPlane(AutoTest):
|
|
|
|
|
attempt_fence_breached_disable(start_mode="FBWA", end_mode="FBWA", expected_mode="GUIDED", action=5) |
|
|
|
|
attempt_fence_breached_disable(start_mode="FBWA", end_mode="FBWA", expected_mode="GUIDED", action=6) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def tests(self): |
|
|
|
|
'''return list of all tests''' |
|
|
|
|
ret = super(AutoTestPlane, self).tests() |
|
|
|
|