[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] tx_samples.cc is not accepting the gain parameter inp
From: |
srinivas naga vutukuri |
Subject: |
[Discuss-gnuradio] tx_samples.cc is not accepting the gain parameter input. |
Date: |
Tue, 19 Jan 2010 18:15:08 +0530 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
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 <address@hidden(none)>
Date: Tue, 19 Jan 2010 17:55:49 +0530
Subject: [PATCH] Signed-off-by: srinivas naga vutukuri <address@hidden>
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Discuss-gnuradio] tx_samples.cc is not accepting the gain parameter input.,
srinivas naga vutukuri <=