An Optimal Carrier-Phase Smoothing Code Algorithm for Low-Cost Single-Frequency Receivers (Journal of surveying engineering)