FAQs

Note: The following issues pertain to the first version of the book. These issues will be fixed in the second printing of the text.

These functions are part of the Mapping toolbox for Matlab. Here are substitute functions: deg2dms , dms2mat It is recommended to place these functions in the folder GNSS_SDR/geoFunctions. 

These functions are inside of the files Scurve.m and multEnvBOC.m respectively. 

Use generateCAcode.m instead (from GNSS_SDR/include folder). 
Setting "Number of bytes to skip" is not set properly in settings GUI. 
A variable is misspelled at line 180 in file setSettings.m. The text settings.skipNuberOfBytes should be corrected to: settings.skipNumberOfBytes

The problem occurs in one of the functions for coordinate transformations - cart2geo.m. For some reason the function fails to approximate height precise enough. Further investigations are needed. At the moment a quick fix would be to modify the function cart2geo.m as shown here (starting at line 30):

h = 0.1; oldh = 0;
iterations = 0;
while abs(h-oldh) > 1.e-12

oldh = h;
N = c/sqrt(1+ex2*cos(phi)^2);
phi = atan(Z/((sqrt(X^2+Y^2)*(1-(2-f(i))*f(i)*N/(N+h)))));
h = sqrt(X^2+Y^2)/cos(phi)-N;

iterations = iterations +1;

if iterations > 100

fprintf('Failed to approximate h with desired precision. h-oldh: %e. \n', h-oldh);
break;

end

end