serialize method
Implementation
@override
ByteData serialize() {
var data_ = ByteData(mavlinkEncodedLength);
data_.setFloat32(0, voltage, Endian.little);
data_.setFloat32(4, current, Endian.little);
data_.setFloat32(8, capacityConsumed, Endian.little);
data_.setFloat32(12, capacityRemaining, Endian.little);
data_.setUint32(16, statusFlags, Endian.little);
data_.setInt16(20, temperature, Endian.little);
data_.setUint8(22, id);
data_.setUint8(23, percentRemaining);
return data_;
}