Merged in f5soh/librepilot/LP-582_Revonano_flexi_i2c (pull request #497)
[librepilot.git] / matlab / revo / unwrap_time.m
blob44961bb193969b966c760dee60c07346d0668c7e
1 function t = unwrap_time(t)
3 wrap = find((t(2:end) - t(1:end-1) ) < -64000);
4 jump = zeros(size(t));
5 jump(wrap+1) = hex2dec('10000');
7 t = t + cumsum(jump);