-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix RX bandwidth and sample rate settings
Change RX bandwidth getters, setters, and enum constants to properly encode the analog RX band pass filter settings from the AT86RF215 manual. The driver initializes the radio with the IF shifted by 1.25x by hard coding RF09_RXBWC.IFS=1 and RF24_RXBWC.IFS=1. However, the analog BPF bandwidths are fixed regardless of this setting. Previously the driver assumed that BPF bandwidths should be multiplied by a 1.25x factor. This resulted in setting narrower filtering than desired and caused the IF image to alias into the sampling bandwidth. Recompute bandwidth option midpoints for rounding up or down requested RX bandwidth values to the nearest supported value. Change sample rate getters and setters to use precise values for fractional sample rates 4e6/3 and 2e6/3 rather than rounding to the nearest 1 kHz. Add SoapySDR::Stream::getDigitalFilter function and use it to correctly report RX bandwidth < 160 kHz. Replace fabs (math.h) with std::fabs (cmath) in SoapySDR API for precision. Fix constants in the TX/RX bandwidth getters and setters that were off by 2 orders of magnitude. Fix numeric literal types used in comparisons and return values to match the function signatures.
- Loading branch information
Showing
6 changed files
with
199 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.