选写航点加入,自动关闭rtk功能
This commit is contained in:
parent
62cde39a91
commit
3efb9b719d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user