Cleanup, demod limits, prevent negative freq, move iq resampler process back to demodulator pre thread

This commit is contained in:
Charles J. Cliffe
2015-01-04 13:20:31 -05:00
parent e2e261f1c0
commit 44bee1f553
16 changed files with 200 additions and 160 deletions
+4 -1
View File
@@ -145,9 +145,12 @@ void SDRThread::threadMain() {
switch (command.cmd) {
case SDRThreadCommand::SDR_THREAD_CMD_TUNE:
std::cout << "Set frequency: " << command.int_value << std::endl;
freq_changed = true;
new_freq = command.int_value;
if (new_freq < SRATE / 2) {
new_freq = SRATE / 2;
}
std::cout << "Set frequency: " << new_freq << std::endl;
break;
default:
break;