Example #1
0
        public override IExciter Activate()
        {
            _sending = true;

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

            return(this);
        }
Example #2
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();
            });
        }