Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Martin Karlsson
turtlerob1
Commits
8f7e77eb
Commit
8f7e77eb
authored
Sep 24, 2015
by
Fredrik Bagge Carlsson
Browse files
removed crap
parent
a0ee462f
Changes
1
Hide whitespace changes
Inline
Side-by-side
track_audio.m
View file @
8f7e77eb
...
...
@@ -68,23 +68,7 @@ addpath('./ekfukf-toolbox');
figure
(
1
)
signal
=
...
% get signal here
% Get signal length and number of frames
nSamples
=
size
(
signal
,
1
);
nFrames
=
floor
(
nSamples
/
(
simParams
.
frameSize
*
fsHz
));
% Initialize the auditory front-end
simParams
.
sampleRate
=
fsHz
;
simParams
.
signalDuration
=
nSamples
/
fsHz
;
[
dataObj
,
managerObj
]
=
initializeParameters
(
simParams
);
% Get localization measurements
managerObj
.
processSignal
(
signal
);
azimuthDistribution
=
...
squeeze
(
dataObj
.
azimuthDistribution
{
1
}
.
Data
(:));
% Use -90 to align coordinate system
measuredLocations
=
argmax
(
azimuthDistribution
,
2
)
-
90
;
N
=
length
(
measuredLocations
);
N
=
100
;
% Initialize posterior mean and covariance
posteriorMean
=
zeros
(
size
(
A
,
1
),
N
);
...
...
@@ -107,6 +91,7 @@ for l = 1:N
posteriorMean
(:,
l
)
=
x
;
posteriorCovariance
(:,
:,
l
)
=
P
;
pause
(
0.5
)
end
% Plot measurements
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment