Commit bb034acd by Corey Koval

Getting crazy with the colors now.

parent ea0f5e59
# DF Aggregator # DF Aggregator
## Recent Changes: ## Recent Changes:
- The LOB for each receiver on the map is now red for low confidence/power LOBs and green - The LOB for each receiver on the map changes color based on the power and
for high confidence/power LOBs. 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. - 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).
......
...@@ -532,6 +532,7 @@ def write_rx_czml(): ...@@ -532,6 +532,7 @@ def write_rx_czml():
min_conf = ms.min_conf min_conf = ms.min_conf
min_power = ms.min_power min_power = ms.min_power
green = [0,255,0,255] green = [0,255,0,255]
orange = [255, 140, 0, 255]
red = [255,0,0,255] red = [255,0,0,255]
receiver_point_packets = [] receiver_point_packets = []
lob_packets = [] lob_packets = []
...@@ -547,7 +548,12 @@ def write_rx_czml(): ...@@ -547,7 +548,12 @@ 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 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_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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment