选写航点加入,自动关闭rtk功能

This commit is contained in:
xu 2020-05-20 00:43:04 +08:00
parent 62cde39a91
commit 3efb9b719d

View File

@ -1333,6 +1333,14 @@ namespace Plane.FormationCreator.ViewModels
Alert.Show("作为参照的原点未设置,无法写入相对位置!", "提示");
return;
}
var _RtcmInfoViewModel = ServiceLocator.Current.GetInstance<RtcmInfoViewModel>();
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<RtcmInfoViewModel>();
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;