AttitudeQuaternionCov.parse constructor
AttitudeQuaternionCov.parse(
- ByteData data_
Implementation
factory AttitudeQuaternionCov.parse(ByteData data_) {
if (data_.lengthInBytes < AttitudeQuaternionCov.mavlinkEncodedLength) {
var len =
AttitudeQuaternionCov.mavlinkEncodedLength - data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var timeUsec = data_.getUint64(0, Endian.little);
var q = MavlinkMessage.asFloat32List(data_, 8, 4);
var rollspeed = data_.getFloat32(24, Endian.little);
var pitchspeed = data_.getFloat32(28, Endian.little);
var yawspeed = data_.getFloat32(32, Endian.little);
var covariance = MavlinkMessage.asFloat32List(data_, 36, 9);
return AttitudeQuaternionCov(
timeUsec: timeUsec,
q: q,
rollspeed: rollspeed,
pitchspeed: pitchspeed,
yawspeed: yawspeed,
covariance: covariance);
}