Exemple #1
0
        public async Task Start(UGV ugv)
        {
            Device = ugv;
            Device.Light("Open", 0);

            await Task.Delay(10000);

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