HilActuatorControls.parse constructor
HilActuatorControls.parse(
- ByteData data_
Implementation
factory HilActuatorControls.parse(ByteData data_) {
if (data_.lengthInBytes < HilActuatorControls.mavlinkEncodedLength) {
var len = HilActuatorControls.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 flags = data_.getUint64(8, Endian.little);
var controls = MavlinkMessage.asFloat32List(data_, 16, 16);
var mode = data_.getUint8(80);
return HilActuatorControls(
timeUsec: timeUsec, flags: flags, controls: controls, mode: mode);
}