serialize method
Implementation
@override
ByteData serialize() {
var data_ = ByteData(mavlinkEncodedLength);
data_.setFloat32(0, dischargeMinimumVoltage, Endian.little);
data_.setFloat32(4, chargingMinimumVoltage, Endian.little);
data_.setFloat32(8, restingMinimumVoltage, Endian.little);
data_.setFloat32(12, chargingMaximumVoltage, Endian.little);
data_.setFloat32(16, chargingMaximumCurrent, Endian.little);
data_.setFloat32(20, nominalVoltage, Endian.little);
data_.setFloat32(24, dischargeMaximumCurrent, Endian.little);
data_.setFloat32(28, dischargeMaximumBurstCurrent, Endian.little);
data_.setFloat32(32, designCapacity, Endian.little);
data_.setFloat32(36, fullChargeCapacity, Endian.little);
data_.setUint16(40, cycleCount, Endian.little);
data_.setUint16(42, weight, Endian.little);
data_.setUint8(44, id);
data_.setUint8(45, batteryFunction);
data_.setUint8(46, type);
data_.setUint8(47, stateOfHealth);
data_.setUint8(48, cellsInSeries);
MavlinkMessage.setInt8List(data_, 49, manufactureDate);
MavlinkMessage.setInt8List(data_, 58, serialNumber);
MavlinkMessage.setInt8List(data_, 90, name);
return data_;
}