示例#1
0
 private void servosConnectMenuItem_Click(object sender, EventArgs e)
 {
     if (servos.IsConnected)
     {
         servos.Disconnect();
     }
     else
     {
         servos.Connect();
     }
 }
示例#2
0
        public MainForm()
        {
            InitializeComponent();

            client = new CRobotClient(this);
            servos = new CServosController(this);
            motors = new CMotorsController(this);

            servos.Connect();
            motors.Connect();
        }
示例#3
0
        //CRbotoHost host;
        public MainForm()
        {
            InitializeComponent();

            client = new CRobotClient(this);
            servos = new CServosController(this);
            motors = new CMotorsController(this);

            servos.Connect();
            motors.Connect();
        }