Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
df-aggregator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
df-aggregator
Commits
ea0f5e59
Commit
ea0f5e59
authored
Jan 02, 2021
by
Corey Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Taking power into account for LOB color
parent
87560d07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
README.md
README.md
+2
-2
df-aggregator.py
df-aggregator.py
+2
-1
No files found.
README.md
View file @
ea0f5e59
# DF Aggregator
# DF Aggregator
## Recent Changes:
## Recent Changes:
-
The LOB for each receiver on the map is now red for low confidence LOBs and green
-
The LOB for each receiver on the map is now red for low confidence
/power
LOBs and green
for high confidence LOBs.
for high confidence
/power
LOBs.
-
Receivers on map update every 2.5 Seocnds.
-
Receivers on map update every 2.5 Seocnds.
-
To customize this change
`refreshrate`
at the top of
`static/receiver_configurator.js`
.
-
To customize this change
`refreshrate`
at the top of
`static/receiver_configurator.js`
.
-
For previous changes see the
[
Change Log
](
CHANGELOG.md
)
.
-
For previous changes see the
[
Change Log
](
CHANGELOG.md
)
.
...
...
df-aggregator.py
View file @
ea0f5e59
...
@@ -530,6 +530,7 @@ def write_rx_czml():
...
@@ -530,6 +530,7 @@ def write_rx_czml():
response
.
set_header
(
'Cache-Control'
,
'no-cache, no-store, must-revalidate, max-age=0'
)
response
.
set_header
(
'Cache-Control'
,
'no-cache, no-store, must-revalidate, max-age=0'
)
height
=
50
height
=
50
min_conf
=
ms
.
min_conf
min_conf
=
ms
.
min_conf
min_power
=
ms
.
min_power
green
=
[
0
,
255
,
0
,
255
]
green
=
[
0
,
255
,
0
,
255
]
red
=
[
255
,
0
,
0
,
255
]
red
=
[
255
,
0
,
0
,
255
]
receiver_point_packets
=
[]
receiver_point_packets
=
[]
...
@@ -546,7 +547,7 @@ def write_rx_czml():
...
@@ -546,7 +547,7 @@ def write_rx_czml():
for
index
,
x
in
enumerate
(
receivers
):
for
index
,
x
in
enumerate
(
receivers
):
if
x
.
isActive
and
ms
.
receiving
:
if
x
.
isActive
and
ms
.
receiving
:
lob_color
=
green
if
x
.
confidence
>
min_conf
else
red
lob_color
=
green
if
x
.
confidence
>
min_conf
and
x
.
power
>
min_power
else
red
lob_start_lat
=
x
.
latitude
lob_start_lat
=
x
.
latitude
lob_start_lon
=
x
.
longitude
lob_start_lon
=
x
.
longitude
lob_stop_lat
,
lob_stop_lon
=
v
.
direct
(
lob_start_lat
,
lob_start_lon
,
x
.
doa
,
d
)
lob_stop_lat
,
lob_stop_lon
=
v
.
direct
(
lob_start_lat
,
lob_start_lon
,
x
.
doa
,
d
)
...
...
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