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
bb034acd
Commit
bb034acd
authored
Jan 02, 2021
by
Corey Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Getting crazy with the colors now.
parent
ea0f5e59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
README.md
README.md
+5
-2
df-aggregator.py
df-aggregator.py
+7
-1
No files found.
README.md
View file @
bb034acd
# DF Aggregator
## Recent Changes:
-
The LOB for each receiver on the map is now red for low confidence/power LOBs and green
for high confidence/power LOBs.
-
The LOB for each receiver on the map changes color based on the power and
confidence thresholds.
-
Green when both power and confidence are above their thresholds
-
Orange when just power is above it's threshold.
-
Red when power is below it's minimum threshold.
-
Receivers on map update every 2.5 Seocnds.
-
To customize this change
`refreshrate`
at the top of
`static/receiver_configurator.js`
.
-
For previous changes see the
[
Change Log
](
CHANGELOG.md
)
.
...
...
df-aggregator.py
View file @
bb034acd
...
...
@@ -532,6 +532,7 @@ def write_rx_czml():
min_conf
=
ms
.
min_conf
min_power
=
ms
.
min_power
green
=
[
0
,
255
,
0
,
255
]
orange
=
[
255
,
140
,
0
,
255
]
red
=
[
255
,
0
,
0
,
255
]
receiver_point_packets
=
[]
lob_packets
=
[]
...
...
@@ -547,7 +548,12 @@ def write_rx_czml():
for
index
,
x
in
enumerate
(
receivers
):
if
x
.
isActive
and
ms
.
receiving
:
lob_color
=
green
if
x
.
confidence
>
min_conf
and
x
.
power
>
min_power
else
red
if
(
x
.
confidence
>
min_conf
and
x
.
power
>
min_power
):
lob_color
=
green
elif
(
x
.
confidence
<=
min_conf
and
x
.
power
>
min_power
):
lob_color
=
orange
else
:
lob_color
=
red
lob_start_lat
=
x
.
latitude
lob_start_lon
=
x
.
longitude
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