Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AP-S 2020 - PyRaTk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DELTA
DELTA Low-Cost 5.8GHz FMCW Radar PCB
AP-S 2020 Software
AP-S 2020 - PyRaTk
Commits
7841fbb3
Commit
7841fbb3
authored
4 years ago
by
Stavros Vakalis
Browse files
Options
Downloads
Patches
Plain Diff
we added the mti filter
parent
0f480667
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyratk/radars/radar.py
+9
-5
9 additions, 5 deletions
pyratk/radars/radar.py
pyratk/widgets/range_doppler_widget.py
+3
-3
3 additions, 3 deletions
pyratk/widgets/range_doppler_widget.py
with
12 additions
and
8 deletions
pyratk/radars/radar.py
+
9
−
5
View file @
7841fbb3
...
@@ -92,6 +92,9 @@ class Receiver(object):
...
@@ -92,6 +92,9 @@ class Receiver(object):
self
.
slow_fmax
=
0
self
.
slow_fmax
=
0
self
.
data
=
None
self
.
data
=
None
self
.
fast_fft_len
=
int
(
round
(
self
.
daq
.
sample_rate
*
self
.
transmitter
.
pulses
[
0
].
delay
))
self
.
mti_window
=
np
.
transpose
(
np
.
tile
(
np
.
fft
.
fftshift
(
signal
.
windows
.
chebwin
(
self
.
slow_fft_len
,
at
=
60
)),
self
.
fast_fft_size
).
reshape
((
-
1
,
self
.
slow_fft_len
)))
def
connect_signals
(
self
):
def
connect_signals
(
self
):
# self.daq.reset_signal.connect(self.reset)
# self.daq.reset_signal.connect(self.reset)
...
@@ -189,13 +192,14 @@ class Receiver(object):
...
@@ -189,13 +192,14 @@ class Receiver(object):
# print('dc.shape',dc.shape)
# print('dc.shape',dc.shape)
self
.
fft_mat
=
self
.
compute_fft2
(
self
.
datacube
[
-
1
],
(
self
.
slow_fft_size
,
self
.
fast_fft_size
))
self
.
fft_mat
=
self
.
compute_fft2
(
self
.
datacube
[
-
1
],
(
self
.
slow_fft_size
,
self
.
fast_fft_size
))
#self.fft_mat=np.multiply(self.fft_mat,self.mti_window)
# print('fft_mat.shape', self.fft_mat.shape)
# print('fft_mat.shape', self.fft_mat.shape)
#
if self.datacube[-1].shape == self.datacube[-2].shape:
if
self
.
datacube
[
-
1
].
shape
==
self
.
datacube
[
-
2
].
shape
:
#
if hasattr(self, 'zero_fft_mat'):
if
hasattr
(
self
,
'
zero_fft_mat
'
):
#
self.fft_mat -= self.zero_fft_mat
self
.
fft_mat
-=
self
.
zero_fft_mat
#
else:
else
:
#
self.zero_fft_mat = self.fft_mat
self
.
zero_fft_mat
=
self
.
fft_mat
# Power Thresholding
# Power Thresholding
# if self.cfft_data[vmax_bin] < POWER_THRESHOLD:
# if self.cfft_data[vmax_bin] < POWER_THRESHOLD:
...
...
This diff is collapsed.
Click to expand it.
pyratk/widgets/range_doppler_widget.py
+
3
−
3
View file @
7841fbb3
...
@@ -50,8 +50,8 @@ class RangeDopplerWidget(pg.PlotWidget):
...
@@ -50,8 +50,8 @@ class RangeDopplerWidget(pg.PlotWidget):
# set colormap
# set colormap
self
.
img
.
setLookupTable
(
lut
)
self
.
img
.
setLookupTable
(
lut
)
#
self.img.setLevels([-
7
0, 10]) # Good for drone
self
.
img
.
setLevels
([
-
8
0
,
10
])
# Good for drone
self
.
img
.
setLevels
([
-
10
,
20
])
# Good for drone
#
self.img.setLevels([-10, 20]) # Good for drone
self
.
rescale
()
self
.
rescale
()
...
@@ -102,7 +102,7 @@ class RangeDopplerWidget(pg.PlotWidget):
...
@@ -102,7 +102,7 @@ class RangeDopplerWidget(pg.PlotWidget):
def
update
(
self
):
def
update
(
self
):
self
.
update_map
()
self
.
update_map
()
self
.
update_fps
()
#
self.update_fps()
def
reset
(
self
):
def
reset
(
self
):
# When paused, redraw after reset
# When paused, redraw after reset
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment