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
458faa70
Commit
458faa70
authored
5 years ago
by
Jason Merlo
Browse files
Options
Downloads
Patches
Plain Diff
Removed debug printing
parent
e9c331c6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyratk/trackers/tracker.py
+3
-10
3 additions, 10 deletions
pyratk/trackers/tracker.py
with
3 additions
and
10 deletions
pyratk/trackers/tracker.py
+
3
−
10
View file @
458faa70
...
@@ -13,13 +13,6 @@ from pyratk.datatypes.geometry import Point
...
@@ -13,13 +13,6 @@ from pyratk.datatypes.geometry import Point
# DEBUG
# DEBUG
USE_LPF
=
True
USE_LPF
=
True
RED
=
"
\033
[1;31m
"
BLUE
=
"
\033
[1;34m
"
CYAN
=
"
\033
[1;36m
"
GREEN
=
"
\033
[0;32m
"
RESET
=
"
\033
[0;0m
"
BOLD
=
"
\033
[;1m
"
class
Tracker2D
(
object
):
class
Tracker2D
(
object
):
"""
Class to track detections using 4 doppler measurements.
"""
"""
Class to track detections using 4 doppler measurements.
"""
...
@@ -125,7 +118,7 @@ class Tracker2D(object):
...
@@ -125,7 +118,7 @@ class Tracker2D(object):
# Assign vector length to measured Doppler velocity
# Assign vector length to measured Doppler velocity
dr
=
r_hat
*
radar
.
drho
/
np
.
sin
(
phi
)
dr
=
r_hat
*
radar
.
drho
/
np
.
sin
(
phi
)
print
(
"
dr:
\t
"
,
dr
)
#
print("dr:\t", dr)
# Add radar measurement vector to average
# Add radar measurement vector to average
average_velocity_vector
+=
dr
average_velocity_vector
+=
dr
...
@@ -136,7 +129,7 @@ class Tracker2D(object):
...
@@ -136,7 +129,7 @@ class Tracker2D(object):
self
.
location
.
q
[:,
1
]
=
average_velocity_vector
self
.
location
.
q
[:,
1
]
=
average_velocity_vector
self
.
location
.
q
[:,
0
]
+=
self
.
location
.
q
[:,
1
]
*
self
.
data_mgr
.
source
.
update_period
self
.
location
.
q
[:,
0
]
+=
self
.
location
.
q
[:,
1
]
*
self
.
data_mgr
.
source
.
update_period
print
(
'
(tracker.py) v_bar:
\t
'
,
self
.
location
.
q
[:,
1
])
#
print('(tracker.py) v_bar:\t', self.location.q[:, 1])
# print(self.location)
# print(self.location)
# ====== CONTROL METHODS ================================================= #
# ====== CONTROL METHODS ================================================= #
...
@@ -153,7 +146,7 @@ class Tracker2D(object):
...
@@ -153,7 +146,7 @@ class Tracker2D(object):
# Add state matrix to TimeSeries
# Add state matrix to TimeSeries
self
.
ts_location
.
append
(
self
.
location
.
q
)
self
.
ts_location
.
append
(
self
.
location
.
q
)
print
(
"
(tracker.py) initial_location:
\n
"
,
self
.
ts_location
[
0
])
#
print("(tracker.py) initial_location: \n", self.ts_location[0])
def
reset
(
self
):
def
reset
(
self
):
"""
Reset all temporal elements.
"""
"""
Reset all temporal elements.
"""
...
...
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