Storm32GimbalManagerControlPitchyaw.parse constructor
Storm32GimbalManagerControlPitchyaw.parse(
- ByteData data_
Implementation
factory Storm32GimbalManagerControlPitchyaw.parse(ByteData data_) {
if (data_.lengthInBytes <
Storm32GimbalManagerControlPitchyaw.mavlinkEncodedLength) {
var len = Storm32GimbalManagerControlPitchyaw.mavlinkEncodedLength -
data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var pitch = data_.getFloat32(0, Endian.little);
var yaw = data_.getFloat32(4, Endian.little);
var pitchRate = data_.getFloat32(8, Endian.little);
var yawRate = data_.getFloat32(12, Endian.little);
var deviceFlags = data_.getUint16(16, Endian.little);
var managerFlags = data_.getUint16(18, Endian.little);
var targetSystem = data_.getUint8(20);
var targetComponent = data_.getUint8(21);
var gimbalId = data_.getUint8(22);
var client = data_.getUint8(23);
return Storm32GimbalManagerControlPitchyaw(
pitch: pitch,
yaw: yaw,
pitchRate: pitchRate,
yawRate: yawRate,
deviceFlags: deviceFlags,
managerFlags: managerFlags,
targetSystem: targetSystem,
targetComponent: targetComponent,
gimbalId: gimbalId,
client: client);
}