Hi,
I observed that tx_samples.cc is not accepting the gain input parameter
(ie., -g option). I just changed like this in my code.
Its working, so posting the changes. If it is acceptable please take it.
best regards,
srinivas.
>From 9ece309953d389b2c1d14680475b0a0662e6f09a Mon Sep 17 00:00:00 2001
From: srinivas naga vutukuri <sriniv...@srinivasv-laptop.(none)>
Date: Tue, 19 Jan 2010 17:55:49 +0530
Subject: [PATCH] Signed-off-by: srinivas naga vutukuri <srinivas.vutuk...@gmail.com>
Changes made to accept -g option in tx_samples.cc file.
---
usrp2/host/apps/tx_samples.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/usrp2/host/apps/tx_samples.cc b/usrp2/host/apps/tx_samples.cc
index 5c3728f..3e41bbf 100644
--- a/usrp2/host/apps/tx_samples.cc
+++ b/usrp2/host/apps/tx_samples.cc
@@ -150,6 +150,10 @@ main(int argc, char **argv)
interp = strtol(optarg, 0, 0);
break;
+ case 'g':
+ gain = strtod(optarg, 0);
+ break;
+
case 'S':
if (!strtod_si(optarg, &tmp)){
std::cerr << "invalid number: " << optarg << std::endl;
--
1.6.3.3
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio