This commit is contained in:
Eric Teunis de Boone 2023-01-16 11:00:40 +01:00
parent d87037ae9a
commit 88e172e9bf

View file

@ -280,14 +280,6 @@ if __name__ == "__main__":
# Beacon properties # Beacon properties
f_beacon = args.beacon_frequency # GHz f_beacon = args.beacon_frequency # GHz
# modify beacon power to be beacon_amplitude at 0,0,0
if beacon_radiate_rsq:
dist = lib.distance(tx, Antenna(x=0, y=0, z=0))
ampl = max(1, dist**2)
beacon_amplitudes *= ampl
# Transmitter # Transmitter
remake_tx = True remake_tx = True
@ -299,6 +291,14 @@ if __name__ == "__main__":
# Move it to 0,0,0 (among the antennas) # Move it to 0,0,0 (among the antennas)
tx.x, tx.y = 0, 0 #m tx.x, tx.y = 0, 0 #m
# modify beacon power to be beacon_amplitude at 0,0,0
if beacon_radiate_rsq:
dist = lib.distance(tx, Antenna(x=0, y=0, z=0))
ampl = max(1, dist**2)
beacon_amplitudes *= ampl
# Bandpass for E field blockfilter # Bandpass for E field blockfilter
low_bp = args.passband_low if args.passband_low >= 0 else np.inf # GHz low_bp = args.passband_low if args.passband_low >= 0 else np.inf # GHz
high_bp = args.passband_high if args.passband_high >= 0 else np.inf # GHz high_bp = args.passband_high if args.passband_high >= 0 else np.inf # GHz