Рефактор

This commit is contained in:
sasha80
2024-11-13 08:18:10 +03:00
parent a3a818d273
commit dd0080714c

View File

@@ -171,18 +171,17 @@ func get_all_nodes(root):
func map_threat_to_bip(th: threats.Threat, bip: Control):
var freq = th.freq
var sector_key = null
var sector_width = 50.0
for key in fs_freq:
var freq_range = fs_freq[key]
var num_values = (freq_range[1]- freq_range[0]) / sector_width
if freq_range[0] <= freq and freq <= freq_range[1]:
sector_key = key
break
if sector_key!= null:
radius_internal = fs_freq[sector_key][2]
radius_outter = fs_freq[sector_key][3]
freq_low = fs_freq[sector_key][0]
freq_high = fs_freq[sector_key][1]
if sector_key != null:
var fsf = fs_freq[sector_key]
radius_internal = fsf[2]
radius_outter = fsf[3]
freq_low = fsf[0]
freq_high = fsf[1]
bip.position = tools.pos_calc(
th.freq,
th.aoa,