停用模拟飞机的心跳任务,提高效率
This commit is contained in:
parent
c254013048
commit
1308b31717
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user