File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5959% 2) JIPDA*
6060% 3) Approximate GNN-JIPDA
6161% 4) Approximate JIPDA
62- % 5) Naïve nearest neighbor JIPDA.
62+ % 5) Naive nearest neighbor JIPDA.
6363% 6) Approximate naïve nearest neighbor JIPDA.
6464% algSel2 An optional parameter that further specifies the algorithm
6565% used when algSel1=3,4. If omitted but algSel1 is specified,
224224% Allocate space for the return variables.
225225xUpdate= zeros(xDim ,numTar );
226226PUpdate= zeros(xDim ,xDim ,numTar );
227- if (algSel1 == 1 || algSel1 == 3 )% If a GNN estimate is used in place of the mean
227+ if (algSel1 == 0 || algSel1 == 3 )% If a GNN estimate is used in place of the mean
228228 % Perform 2D assignment
229229 ALog= log(A );
230230 tar2Meas= assign2D(ALog ,true );
Original file line number Diff line number Diff line change 9090 q3= (1 /(4 * q2 ))*(R23 + R32 );
9191else
9292 q3= 0.5 * sqrt(1 - R11 - R22 + R33 );
93- q0= (1 /(4 * q2 ))*(R12 - R21 );
94- q1= (1 /(4 * q2 ))*(R31 + R13 );
95- q2= (1 /(4 * q2 ))*(R23 + R32 );
93+ q0= (1 /(4 * q3 ))*(R12 - R21 );
94+ q1= (1 /(4 * q3 ))*(R31 + R13 );
95+ q2= (1 /(4 * q3 ))*(R23 + R32 );
9696end
9797
9898% The above implementation provides a left-handed quaternion, so the sign of
Original file line number Diff line number Diff line change 88% angUpFromLevel A length numPts vector of elevations above the local
99% tangent plane in radians.
1010%
11- % OUTPUTS: u A 3XnumPts set of unit vectors in local ENU coordinates
12- % corresponding to the directions given in heading and
13- % angUpFromLevel.
11+ % OUTPUTS: u A 3XnumPts set of unit vectors in local ENU coordinates
12+ % corresponding to the directions given in heading and
13+ % angUpFromLevel.
1414%
1515% The transformation is just a specific definition of the spherical
1616% coordinate system. There is no need for information on the shape of the
3636cosEl= cos(angUpFromLevel );
3737sinEl= sin(angUpFromLevel );
3838
39- u= [cos (heading ).*cosEl ;
40- sin (heading ).*cosEl ;
39+ u= [sin (heading ).*cosEl ;
40+ cos (heading ).*cosEl ;
4141 sinEl ];
4242
4343end
You can’t perform that action at this time.
0 commit comments