为24架同时飞行,减小通讯量,12架rtk地面数据临时改为name小于50发送
This commit is contained in:
parent
c9980242fd
commit
5f762aa876
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user