- %%产生本地伪码(重新插值)
- function [Code_native]=code_native(inputcode_2,fd_estimate,T_interp,T,f0,dot_insert)
- T_native_new=T/(1+fd_estimate/f0);
- T_native_chip_new=T_native_new/1023;
- Modified_Coeffi=1.0e-13;
- Code_native = zeros(1,dot_insert);
- for m=1:dot_insert
- p=floor((m-1)*T_interp/T_native_chip_new+Modified_Coeffi);
- Code_native(m)=inputcode_2(p+1);
- end