serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timestamp, Endian.little);
  data_.setFloat32(8, pwrBrdSystemVolt, Endian.little);
  data_.setFloat32(12, pwrBrdServoVolt, Endian.little);
  data_.setFloat32(16, pwrBrdDigitalVolt, Endian.little);
  data_.setFloat32(20, pwrBrdMotLAmp, Endian.little);
  data_.setFloat32(24, pwrBrdMotRAmp, Endian.little);
  data_.setFloat32(28, pwrBrdAnalogAmp, Endian.little);
  data_.setFloat32(32, pwrBrdDigitalAmp, Endian.little);
  data_.setFloat32(36, pwrBrdExtAmp, Endian.little);
  data_.setFloat32(40, pwrBrdAuxAmp, Endian.little);
  data_.setUint8(44, pwrBrdStatus);
  data_.setUint8(45, pwrBrdLedStatus);
  return data_;
}