Skip to content

Commit

Permalink
Add support for my experimental firpfbch2_crcf_set_channel_state
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcliffe committed Oct 16, 2015
1 parent 249e04e commit a4dc449
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/sdr/SDRPostThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ void SDRPostThread::run() {

// Find active demodulators
if (nRunDemods) {

for (int i = 0; i < numChannels; i++) {
firpfbch2_crcf_set_channel_state(channelizer, i, (demodChannelActive[i]>0)?1:0);
}

// channelize data
// firpfbch2 output rate is 2 x ( input rate / channels )
for (int i = 0, iMax = dataSize; i < iMax; i+=numChannels/2) {
Expand Down
6 changes: 3 additions & 3 deletions src/sdr/SoapySDRThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ int SDRThread::getOptimalChannelCount(long long sampleRate) {
optimal_count = 4;
}

if (optimal_count > 16) {
optimal_count = 16;
}
// if (optimal_count > 16) {
// optimal_count = 16;
// }
return optimal_count;
}

Expand Down

0 comments on commit a4dc449

Please sign in to comment.