serialize method
Implementation
@override
ByteData serialize() {
var data_ = ByteData(mavlinkEncodedLength);
data_.setUint64(0, batmonTimestamp, Endian.little);
data_.setFloat32(8, temperature, Endian.little);
data_.setUint32(12, safetystatus, Endian.little);
data_.setUint32(16, operationstatus, Endian.little);
data_.setUint16(20, voltage, Endian.little);
data_.setInt16(22, current, Endian.little);
data_.setUint16(24, batterystatus, Endian.little);
data_.setUint16(26, serialnumber, Endian.little);
data_.setUint16(28, cellvoltage1, Endian.little);
data_.setUint16(30, cellvoltage2, Endian.little);
data_.setUint16(32, cellvoltage3, Endian.little);
data_.setUint16(34, cellvoltage4, Endian.little);
data_.setUint16(36, cellvoltage5, Endian.little);
data_.setUint16(38, cellvoltage6, Endian.little);
data_.setUint8(40, soc);
return data_;
}