serialize method
Implementation
@override
ByteData serialize() {
var data_ = ByteData(mavlinkEncodedLength);
data_.setUint32(0, customMode, Endian.little);
data_.setInt32(4, latitude, Endian.little);
data_.setInt32(8, longitude, Endian.little);
data_.setInt16(12, roll, Endian.little);
data_.setInt16(14, pitch, Endian.little);
data_.setUint16(16, heading, Endian.little);
data_.setInt16(18, headingSp, Endian.little);
data_.setInt16(20, altitudeAmsl, Endian.little);
data_.setInt16(22, altitudeSp, Endian.little);
data_.setUint16(24, wpDistance, Endian.little);
data_.setUint8(26, baseMode);
data_.setUint8(27, landedState);
data_.setInt8(28, throttle);
data_.setUint8(29, airspeed);
data_.setUint8(30, airspeedSp);
data_.setUint8(31, groundspeed);
data_.setInt8(32, climbRate);
data_.setUint8(33, gpsNsat);
data_.setUint8(34, gpsFixType);
data_.setUint8(35, batteryRemaining);
data_.setInt8(36, temperature);
data_.setInt8(37, temperatureAir);
data_.setUint8(38, failsafe);
data_.setUint8(39, wpNum);
return data_;
}