public async Task Start(UGV ugv) { Device = ugv; Device.Light("Open", 0); await Task.Delay(10000); Device.Light("Close", 0); }
public void Quit() { Device = null; }
/// <summary> /// 接管控制 /// </summary> /// <param name="ugv"></param> public async Task Start(UGV ugv) { Device = ugv; await Connect(); }
/// <summary> /// 放弃控制权 /// </summary> public void Quit() { NetClient.RemoveAllRemoteAddress(); Device = null; }