Skip to content

Commit

Permalink
Fix RX bandwidth settings in gnuradio code and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nowls committed Oct 7, 2024
1 parent 3276165 commit 799d71d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cariboulite_source_test::cariboulite_source_test () {
this->tb = gr::make_top_block("Cariboulite Source Test");

// Blocks:
this->caribouLite_caribouLiteSource_0 = caribouLite::caribouLiteSource::make(0, false, 40.0, 2500000.0, 4000000.0, 900000000.0);
this->caribouLite_caribouLiteSource_0 = caribouLite::caribouLiteSource::make(0, false, 40.0, 2000000.0, 4000000.0, 900000000.0);

this->blocks_null_sink_0 = blocks::null_sink::make(sizeof(gr_complex)*1);

Expand Down
2 changes: 1 addition & 1 deletion software/gr-caribouLite/examples/read_samples.grc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ blocks:
freq: '905000000.0'
maxoutbuf: '0'
minoutbuf: '0'
rx_bw: '2500000.0'
rx_bw: '2000000.0'
rx_gain: '40.0'
sample_rate: '4000000.0'
states:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ parameters:
- id: rx_bw
label: Rx bandwidth [Hz]
dtype: float
default: 2500000.0
default: 2000000.0

- id: sample_rate
label: Sample rate [Hz]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace gr {
static sptr make(int channel=0,
bool enable_agc=false,
float rx_gain=40,
float rx_bw=2500000,
float rx_bw=2000000,
float sample_rate=4000000,
float freq=900000000,
bool provide_meta = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void bind_caribouLiteSource(py::module& m)
py::arg("channel") = 0,
py::arg("enable_agc") = false,
py::arg("rx_gain") = 40,
py::arg("rx_bw") = 2500000,
py::arg("rx_bw") = 2000000,
py::arg("sample_rate") = 4000000,
py::arg("freq") = 900000000,
py::arg("provide_meta") = false,
Expand Down

0 comments on commit 799d71d

Please sign in to comment.