From 36ff950b12a039ae0b96bfa4bc34d315f5caa0fd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 12 Mar 2013 15:04:48 +1100 Subject: [PATCH] Plane: fixed MAVLink target IDs in fence point message thanks to Kevin Hester for finding this --- ArduPlane/GCS_Mavlink.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/GCS_Mavlink.pde b/ArduPlane/GCS_Mavlink.pde index 5bbc96deda..c7056e7096 100644 --- a/ArduPlane/GCS_Mavlink.pde +++ b/ArduPlane/GCS_Mavlink.pde @@ -1687,7 +1687,7 @@ mission_failed: send_text_P(SEVERITY_LOW,PSTR("bad fence point")); } else { Vector2l point = get_fence_point_with_index(packet.idx); - mavlink_msg_fence_point_send(chan, 0, 0, packet.idx, g.fence_total, + mavlink_msg_fence_point_send(chan, msg->sysid, msg->compid, packet.idx, g.fence_total, point.x*1.0e-7, point.y*1.0e-7); } break;