Skip to content

Commit de6059f

Browse files
author
Crouse
committed
Bug fixes.
1 parent 5214cfb commit de6059f

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

Assignment_Algorithms/singleScanUpdateWithExistence.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
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,
@@ -224,7 +224,7 @@
224224
%Allocate space for the return variables.
225225
xUpdate=zeros(xDim,numTar);
226226
PUpdate=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);

Coordinate_Systems/Rotations/rotMat2Quat.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@
9090
q3=(1/(4*q2))*(R23+R32);
9191
else
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);
9696
end
9797

9898
%The above implementation provides a left-handed quaternion, so the sign of

Coordinate_Systems/geogHeading2ENUVec.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
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
@@ -36,8 +36,8 @@
3636
cosEl=cos(angUpFromLevel);
3737
sinEl=sin(angUpFromLevel);
3838

39-
u=[cos(heading).*cosEl;
40-
sin(heading).*cosEl;
39+
u=[sin(heading).*cosEl;
40+
cos(heading).*cosEl;
4141
sinEl];
4242

4343
end

0 commit comments

Comments
 (0)