From 3efb9b719db4aa816392db7393c9e031196d2e20 Mon Sep 17 00:00:00 2001 From: xu Date: Wed, 20 May 2020 00:43:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E5=86=99=E8=88=AA=E7=82=B9=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=EF=BC=8C=E8=87=AA=E5=8A=A8=E5=85=B3=E9=97=ADrtk?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ViewModels/ControlPanelViewModel.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs b/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs index 77be4e4..55df10e 100644 --- a/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs +++ b/Plane.FormationCreator/ViewModels/ControlPanelViewModel.cs @@ -1333,6 +1333,14 @@ namespace Plane.FormationCreator.ViewModels Alert.Show("作为参照的原点未设置,无法写入相对位置!", "提示"); return; } + var _RtcmInfoViewModel = ServiceLocator.Current.GetInstance(); + if (_RtcmInfoViewModel.RtcmManager.Rtcmthreadrun) + { + Alert.Show("RTK数据正在发送,将自动关闭!", "提示"); + await _RtcmInfoViewModel.RtcmManager.Close(); + } + + int taskcount = _flightTaskManager.Tasks.Count; if (taskcount < 2) return; foreach (var copter in _copterManager.AcceptingControlCopters) @@ -1358,6 +1366,13 @@ namespace Plane.FormationCreator.ViewModels Alert.Show("作为参照的原点未设置,无法写入相对位置!", "提示"); return; } + var _RtcmInfoViewModel = ServiceLocator.Current.GetInstance(); + if (_RtcmInfoViewModel.RtcmManager.Rtcmthreadrun) + { + Alert.Show("RTK数据正在发送,将自动关闭!", "提示"); + await _RtcmInfoViewModel.RtcmManager.Close(); + } + int coptercount = _copterManager.Copters.Count; int taskcount = _flightTaskManager.Tasks.Count; if (taskcount < 2) return;