Пример #1
0
 public VehicleCommandProtocol(IMavlinkV2Connection connection, CommandProtocolConfig config)
 {
     if (connection == null)
     {
         throw new ArgumentNullException(nameof(connection));
     }
     if (config == null)
     {
         throw new ArgumentNullException(nameof(config));
     }
     _connection = connection;
     _config     = config;
 }
 public MavlinkCommandClient(IMavlinkV2Connection connection, MavlinkClientIdentity identity,
                             IPacketSequenceCalculator seq, CommandProtocolConfig config)
 {
     if (connection == null)
     {
         throw new ArgumentNullException(nameof(connection));
     }
     if (seq == null)
     {
         throw new ArgumentNullException(nameof(seq));
     }
     if (config == null)
     {
         throw new ArgumentNullException(nameof(config));
     }
     _connection = connection;
     _identity   = identity;
     _seq        = seq;
     _config     = config;
 }
Пример #3
0
 public MavlinkCommandClient(IMavlinkV2Connection connection, MavlinkClientIdentity identity,
                             IPacketSequenceCalculator seq, CommandProtocolConfig config) : base(connection, identity, seq, "COMMAND")
 {
     _config = config ?? throw new ArgumentNullException(nameof(config));
 }