Esempio n. 1
0
        public void SendQueuedCommand(Command command)
        {
            command.SequenceNumber = GetSequenceNumberForCommand();
            commandsToSend.Add(command.CreateCommand(firmwareVersion));

            if (command is SetConfigurationCommand)
            {
                SetControlModeCommand controlModeCommand = new SetControlModeCommand(DroneControlMode.LogControlMode);
                controlModeCommand.SequenceNumber = GetSequenceNumberForCommand();
                commandsToSend.Add(controlModeCommand.CreateCommand(firmwareVersion));
            }
        }
Esempio n. 2
0
 private void SendUnqueuedCommand(Command command)
 {
     command.SequenceNumber = GetSequenceNumberForCommand();
     SendMessage(command.CreateCommand(firmwareVersion));
 }