Commit ea0f5e59 by Corey Koval

Taking power into account for LOB color

parent 87560d07
# 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).
......
...@@ -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)
......
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