Merged in f5soh/librepilot/update_credits (pull request #529)
[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);