serialize method
Implementation
@override
ByteData serialize() {
var data_ = ByteData(mavlinkEncodedLength);
data_.setUint32(0, timestamp, Endian.little);
data_.setInt32(4, latitude, Endian.little);
data_.setInt32(8, longitude, Endian.little);
data_.setUint16(12, customMode, Endian.little);
data_.setInt16(14, altitude, Endian.little);
data_.setInt16(16, targetAltitude, Endian.little);
data_.setUint16(18, targetDistance, Endian.little);
data_.setUint16(20, wpNum, Endian.little);
data_.setUint16(22, failureFlags, Endian.little);
data_.setUint8(24, type);
data_.setUint8(25, autopilot);
data_.setUint8(26, heading);
data_.setUint8(27, targetHeading);
data_.setUint8(28, throttle);
data_.setUint8(29, airspeed);
data_.setUint8(30, airspeedSp);
data_.setUint8(31, groundspeed);
data_.setUint8(32, windspeed);
data_.setUint8(33, windHeading);
data_.setUint8(34, eph);
data_.setUint8(35, epv);
data_.setInt8(36, temperatureAir);
data_.setInt8(37, climbRate);
data_.setInt8(38, battery);
data_.setInt8(39, custom0);
data_.setInt8(40, custom1);
data_.setInt8(41, custom2);
return data_;
}