Ejemplo n.º 1
0
        public Thinker(ComPort port)
        {
            _port = port;
            _port.ReceivedResponce += PortOnReceivedResponce;

            //_currentMetaCommand = new ScanMetaCommand();
            //_currentMetaCommand = new SimpleMovementMetaCommand();
            _currentMetaCommand = new ExplorerMetaCommand();
        }
Ejemplo n.º 2
0
 public override void Execute(ComPort port)
 {
     base.Execute(port, Commands.RangeScan, new byte[] { _startDegree, _endDegree });
 }
Ejemplo n.º 3
0
 public override void Execute(ComPort port)
 {
     base.Execute(port, Commands.Status, new byte[] { _degree });
 }
Ejemplo n.º 4
0
 protected void Execute(ComPort port, Commands cmd, byte[] data)
 {
     port.SendCommand(cmd, data);
     Thread.Sleep(Timeout);
 }
Ejemplo n.º 5
0
 public virtual void Execute(ComPort port)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 6
0
 public override void Execute(ComPort port)
 {
     base.Execute(port, Commands.Move, new byte[] { (byte)MoveDirection.Backwards, 0 });
 }
Ejemplo n.º 7
0
 public override void Execute(ComPort port)
 {
     base.Execute(port, Commands.Move, new byte[] { (byte)_direction, _speed, _degree, _stopAfter });
 }