CameraTrigger.parse constructor
CameraTrigger.parse(
- ByteData data_
Implementation
factory CameraTrigger.parse(ByteData data_) {
if (data_.lengthInBytes < CameraTrigger.mavlinkEncodedLength) {
var len = CameraTrigger.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 seq = data_.getUint32(8, Endian.little);
return CameraTrigger(timeUsec: timeUsec, seq: seq);
}