public void CheckRcChannelsRawObject()
        {
            MAVLink.mavlink_rc_channels_raw_t data = new MAVLink.mavlink_rc_channels_raw_t();
            data.chan1_raw    = 1;
            data.chan2_raw    = 2;
            data.chan3_raw    = 3;
            data.chan4_raw    = 4;
            data.chan5_raw    = 5;
            data.chan6_raw    = 6;
            data.chan7_raw    = 7;
            data.chan8_raw    = 8;
            data.port         = 9;
            data.rssi         = 10;
            data.time_boot_ms = 11;

            MavLinkMessage message = createSampleMessage(MAVLink.MAVLINK_MSG_ID.RC_CHANNELS_RAW, data);

            RcChannelsRaw obj = new RcChannelsRaw(message);

            Assert.AreEqual(data.chan1_raw, obj.chan1_raw);
            Assert.AreEqual(data.chan2_raw, obj.chan2_raw);
            Assert.AreEqual(data.chan3_raw, obj.chan3_raw);
            Assert.AreEqual(data.chan4_raw, obj.chan4_raw);
            Assert.AreEqual(data.chan5_raw, obj.chan5_raw);
            Assert.AreEqual(data.chan6_raw, obj.chan6_raw);
            Assert.AreEqual(data.chan7_raw, obj.chan7_raw);
            Assert.AreEqual(data.chan8_raw, obj.chan8_raw);
            Assert.AreEqual(data.port, obj.port);
            Assert.AreEqual(data.rssi, obj.rssi);
            Assert.AreEqual(data.time_boot_ms, obj.time_boot_ms);

            RcChannelsRawDTO dto = DTOFactory.createRcChannelsRawDTO(obj);

            Assert.AreEqual(dto.chan1_raw, obj.chan1_raw);
            Assert.AreEqual(dto.chan2_raw, obj.chan2_raw);
            Assert.AreEqual(dto.chan3_raw, obj.chan3_raw);
            Assert.AreEqual(dto.chan4_raw, obj.chan4_raw);
            Assert.AreEqual(dto.chan5_raw, obj.chan5_raw);
            Assert.AreEqual(dto.chan6_raw, obj.chan6_raw);
            Assert.AreEqual(dto.chan7_raw, obj.chan7_raw);
            Assert.AreEqual(dto.chan8_raw, obj.chan8_raw);
            Assert.AreEqual(dto.port, obj.port);
            Assert.AreEqual(dto.rssi, obj.rssi);
            Assert.AreEqual(dto.time_boot_ms, obj.time_boot_ms);
        }
 public RcChannelsRaw(MavLinkMessage message) : base(null)
 {
     if (message.messid.Equals(this.MessageID))
     {
         MAVLink.mavlink_rc_channels_raw_t data = (MAVLink.mavlink_rc_channels_raw_t)message.data_struct;
         this.chan1_raw    = data.chan1_raw;
         this.chan2_raw    = data.chan2_raw;
         this.chan3_raw    = data.chan3_raw;
         this.chan4_raw    = data.chan4_raw;
         this.chan5_raw    = data.chan5_raw;
         this.chan6_raw    = data.chan6_raw;
         this.chan7_raw    = data.chan7_raw;
         this.chan8_raw    = data.chan8_raw;
         this.port         = data.port;
         this.rssi         = data.rssi;
         this.time_boot_ms = data.time_boot_ms;
     }
 }