Exemple #1
0
        public Robot()
        {
            com_port              = new SerialPort();
            com_port.ReadTimeout  = 1000;
            com_port.WriteTimeout = 1000;
            com_port.BaudRate     = 56700;
            com_port.DataBits     = 8;
            com_port.Parity       = Parity.None;
            com_port.StopBits     = StopBits.One;

            SCI     = new SCI.SCI(this);
            Leds    = new Leds(this);
            Sensors = new Sensors(this);
        }
Exemple #2
0
        public Robot()
        {
            com_port = new SerialPort();
            com_port.ReadTimeout = 1000;
            com_port.WriteTimeout = 1000;
            com_port.BaudRate = 56700;
            com_port.DataBits = 8;
            com_port.Parity = Parity.None;
            com_port.StopBits = StopBits.One;

            SCI = new SCI.SCI(this);
            Leds = new Leds(this);
            Sensors = new Sensors(this);
        }
Exemple #3
0
 /// <summary>
 /// The constructor.
 /// </summary>
 public PowerLed(Leds _leds)
 {
     leds = _leds;
 }
Exemple #4
0
 /// <summary>
 /// The constructor.
 /// </summary>
 public PowerLed(Leds _leds)
 {
     leds = _leds;
 }