MountConfigure.parse constructor
MountConfigure.parse(
- ByteData data_
Implementation
factory MountConfigure.parse(ByteData data_) {
if (data_.lengthInBytes < MountConfigure.mavlinkEncodedLength) {
var len = MountConfigure.mavlinkEncodedLength - data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var targetSystem = data_.getUint8(0);
var targetComponent = data_.getUint8(1);
var mountMode = data_.getUint8(2);
var stabRoll = data_.getUint8(3);
var stabPitch = data_.getUint8(4);
var stabYaw = data_.getUint8(5);
return MountConfigure(
targetSystem: targetSystem,
targetComponent: targetComponent,
mountMode: mountMode,
stabRoll: stabRoll,
stabPitch: stabPitch,
stabYaw: stabYaw);
}