serialize method
Implementation
@override
ByteData serialize() {
var data_ = ByteData(mavlinkEncodedLength);
data_.setUint32(0, utctime, Endian.little);
data_.setInt32(4, gpslat, Endian.little);
data_.setInt32(8, gpslon, Endian.little);
data_.setInt32(12, gpsalt, Endian.little);
data_.setInt32(16, baroaltmsl, Endian.little);
data_.setUint32(20, accuracyhor, Endian.little);
data_.setUint16(24, accuracyvert, Endian.little);
data_.setUint16(26, accuracyvel, Endian.little);
data_.setInt16(28, velvert, Endian.little);
data_.setInt16(30, velns, Endian.little);
data_.setInt16(32, velew, Endian.little);
data_.setUint16(34, state, Endian.little);
data_.setUint16(36, squawk, Endian.little);
data_.setUint8(38, gpsfix);
data_.setUint8(39, numsats);
data_.setUint8(40, emergencystatus);
return data_;
}