mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-25 06:24:50 +00:00
lf_cisco_dfs.py : added gain to command line
This commit is contained in:
@@ -1435,6 +1435,7 @@ class L3VariableTime(Realm):
|
|||||||
sweep_time_ = "0"
|
sweep_time_ = "0"
|
||||||
if_gain_ = "40"
|
if_gain_ = "40"
|
||||||
bb_gain_ = "20"
|
bb_gain_ = "20"
|
||||||
|
gain_ = "0"
|
||||||
|
|
||||||
|
|
||||||
logg.info("dfs_send_radar")
|
logg.info("dfs_send_radar")
|
||||||
@@ -1448,7 +1449,7 @@ class L3VariableTime(Realm):
|
|||||||
|
|
||||||
child.expect(r'\$')
|
child.expect(r'\$')
|
||||||
|
|
||||||
command_hackRF = "sudo python lf_hackrf.py --pulse_width {} --pulse_interval {} --pulse_count {} --sweep_time {} --freq {} --if_gain {} --bb_gain {}".format(width_,interval_,count_,sweep_time_,frequency_,if_gain_,bb_gain_)
|
command_hackRF = "sudo python lf_hackrf.py --pulse_width {} --pulse_interval {} --pulse_count {} --sweep_time {} --freq {} --if_gain {} --bb_gain {} --gain {}".format(width_,interval_,count_,sweep_time_,frequency_,if_gain_,bb_gain_,gain_)
|
||||||
print("hackrf command {}".format(command_hackRF))
|
print("hackrf command {}".format(command_hackRF))
|
||||||
child.sendline(command_hackRF)
|
child.sendline(command_hackRF)
|
||||||
child.expect([pexpect.TIMEOUT], timeout=1) # do not delete this for it allows for subprocess to see output
|
child.expect([pexpect.TIMEOUT], timeout=1) # do not delete this for it allows for subprocess to see output
|
||||||
|
|||||||
Reference in New Issue
Block a user