From 5f762aa8761366c2816425b15572cf3d272a5160 Mon Sep 17 00:00:00 2001 From: pxzleo Date: Thu, 21 Sep 2017 09:30:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA24=E6=9E=B6=E5=90=8C=E6=97=B6=E9=A3=9E?= =?UTF-8?q?=E8=A1=8C=EF=BC=8C=E5=87=8F=E5=B0=8F=E9=80=9A=E8=AE=AF=E9=87=8F?= =?UTF-8?q?=EF=BC=8C12=E6=9E=B6rtk=E5=9C=B0=E9=9D=A2=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=94=B9=E4=B8=BAname=E5=B0=8F=E4=BA=8E50?= =?UTF-8?q?=E5=8F=91=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs b/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs index 645fc34..74a966d 100644 --- a/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs +++ b/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs @@ -255,7 +255,10 @@ namespace Plane.FormationCreator.ViewModels //分发到每个飞机 foreach (var copter in _copterManager.Copters) { - await copter.InjectGpsDataAsync(packet, (ushort)packet.Length); + int iid = Convert.ToInt32(copter.Name); + //临时用来区分RTK发送数据 + if (iid<50) + await copter.InjectGpsDataAsync(packet, (ushort)packet.Length); }