Research Article
The Coarse-Position-Free Coarse-Time Positioning Method for BDS Receiver
Pseudocode 1
Pseudo code for generating the 3-satellite code phase ambiguity search space.
idp = 1; | for xSol = -PrDiffCs(1) : PrDiffCs(1) | if abs(xSol) <= (PrDiffCs(3) - PrDiffCs(2)) | for ySol = -PrDiffCs(2) : PrDiffCs(2) | PrCodeInt(idp, 2) = PrCodeInt(idp, 1) + xSol; | PrCodeInt(idp, 3) = PrCodeInt(idp, 1) + ySol; | idp = idp + 1; | end | elseif abs(xSol) > (PrDiffCs(3) - PrDiffCs(2)) | if xSol > 0 | for ySol = -(PrDiffCs(3) - xSol) : PrDiffCs(2) | PrCodeInt(idp, 2) = PrCodeInt(idp, 1) + xSol; | PrCodeInt(idp, 3) = PrCodeInt(idp, 1) + ySol; | idp = idp + 1; | end | elseif xSol < 0 | for ySol = -PrDiffCs(2) : (PrDiffCs(3) + xSol) | PrCodeInt(idp, 2) = PrCodeInt(idp, 1) + xSol; | PrCodeInt(idp, 3) = PrCodeInt(idp, 1) + ySol; | idp = idp + 1; | end | end | end | end |
|