停用模拟飞机的心跳任务,提高效率

This commit is contained in:
xu 2020-01-28 15:47:27 +08:00
parent c254013048
commit 1308b31717

View File

@ -150,7 +150,15 @@ namespace Plane.Copters
await TaskUtils.Delay(UPDATE_INTERVAL).ConfigureAwait(false);
}
});
++HeartbeatCount;
GpsFixType = GpsFixType.Fix3D;
GpsHdop = 1;
IsGpsAccurate = true;
HasSwitchedToGpsMode = true;
/*
// 持续假装收到飞行器发来的心跳。
Task.Run(async () =>
{
@ -176,6 +184,7 @@ namespace Plane.Copters
await TaskUtils.Delay(HEARTBEAT_INTERVAL).ConfigureAwait(false);
}
});
*/
}
public IConnection Connection { get; set; }