Labrador/Old Matlab Interface/keep_in_sync.m

11 lines
243 B
Mathematica
Raw Normal View History

2016-09-07 07:36:43 +01:00
if libk_error
dropped_packets = dropped_packets + 1;
if (dropped_packets > 10)
break
%resynchronise
%dropped_packets = 0;
%waveform_exists = 0;
end
else
dropped_packets = 4*dropped_packets/5;
end