Exemplo n.º 1
0
 private void SendCommand()
 {
     foreach (var command in _commands)
     {
         ExciterCombApi.SendCommand(command.Cmd, command.Param);
         Thread.Sleep(100);
     }
 }
Exemplo n.º 2
0
        public override IExciter Activate()
        {
            _sending = true;

            Task.Factory.StartNew(() =>
            {
                _numberOfCommand = (byte)(_commands.Count);
                ExciterCombApi.StartDataTransfer(_numberOfCommand);
                Thread.Sleep(800);
                SendCommand();
            });

            return(this);
        }
Exemplo n.º 3
0
        public void SetPower(uint combPower)
        {
            _commands = new List <Command>();
            _commands.Add(new Command("CAMP", combPower));

            // Exciter.Updated += OnExciterAcknoledge;
            AmpiltudeOver = false;

            _sending = true;

            Task.Factory.StartNew(() =>
            {
                _numberOfCommand = (byte)(_commands.Count);
                ExciterCombApi.StartDataTransfer(_numberOfCommand);
                Thread.Sleep(800);
                SendCommand();
            });
        }