public void Command_Forward_Backward(int speed, int times, ref Communication TcpClnt) { TcpClnt.Send_Data_By_Client(movement.Motion_Foreward_Backward(speed)); time = times; Time_Thread = new Thread(new ParameterizedThreadStart(Time_Thread_Fcn)); Time_Thread.Start(TcpClnt); }
public void Command_Stop(ref Communication TcpClnt) { TcpClnt.Send_Data_By_Client(movement.Motion_Foreward_Backward(63)); TcpClnt.Send_Data_By_Client(movement.Direction_Right_Left(63)); }