From 37b216a8713ac2fdb78bb6b74a59dfc816e87714 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Fri, 12 Feb 2021 02:02:56 -0700 Subject: [PATCH] lf_cisco_dfs.py : added gain to command line --- py-scripts/lf_cisco_dfs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/py-scripts/lf_cisco_dfs.py b/py-scripts/lf_cisco_dfs.py index 0bc850f6..c4d70437 100755 --- a/py-scripts/lf_cisco_dfs.py +++ b/py-scripts/lf_cisco_dfs.py @@ -1435,6 +1435,7 @@ class L3VariableTime(Realm): sweep_time_ = "0" if_gain_ = "40" bb_gain_ = "20" + gain_ = "0" logg.info("dfs_send_radar") @@ -1448,7 +1449,7 @@ class L3VariableTime(Realm): 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)) child.sendline(command_hackRF) child.expect([pexpect.TIMEOUT], timeout=1) # do not delete this for it allows for subprocess to see output