diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-03-25 14:22:37 +0300 |
---|---|---|
committer | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-03-25 14:22:37 +0300 |
commit | cd20d12392811ef92fe0f60c6184c31f483fc07e (patch) | |
tree | d2bc4c61456924129a7ca760d1252004bfeed2bb | |
parent | b61d91b50d1efe4cc303c2e9838de9fb54148d26 (diff) |
uhd: Use full DAC scale with UmTRX to improve signal quality.
-rw-r--r-- | Transceiver52M/UHDDevice.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Transceiver52M/UHDDevice.cpp b/Transceiver52M/UHDDevice.cpp index b003f27..a7bf53d 100644 --- a/Transceiver52M/UHDDevice.cpp +++ b/Transceiver52M/UHDDevice.cpp @@ -37,7 +37,8 @@ #define B2XX_BASE_RT GSMRATE #define B100_BASE_RT 400000 #define USRP2_BASE_RT 390625 -#define TX_AMPL 0.3 +#define USRP_TX_AMPL 0.3 +#define UMTRX_TX_AMPL 0.7 #define SAMPLE_BUF_SZ (1 << 20) #define UMTRX_VGA1_DEF -18 @@ -289,7 +290,7 @@ public: inline TIMESTAMP initialWriteTimestamp() { return ts_initial * sps; } inline TIMESTAMP initialReadTimestamp() { return ts_initial; } - inline double fullScaleInputValue() { return 32000 * TX_AMPL; } + inline double fullScaleInputValue() { return (dev_type==UMTRX) ? (32000 * UMTRX_TX_AMPL) : (32000 * USRP_TX_AMPL); } inline double fullScaleOutputValue() { return 32000; } double setRxGain(double db, size_t chan); |