Open LarsThunberg opened 11 months ago
Good catch Lars.
@ast Did you have any free time to look at this?
I found the gain is hard coded in Setting.cpp.
// Default to lowest gain, probably the safest.
setGain(SOAPY_SDR_RX, 0, 0);
setGainMode(SOAPY_SDR_RX, 0, false);
The method SoapySDR::Device::setGain(const int dir, const size_t channel, double gain).
Using this information we can set the gain in the following way:
setGain(sdr, SOAPY_SDR_RX, 0, 9.0)
Hi, I have built the branch v2 and using for SatNOGS Raspberry PI 4, according to this thread: https://community.libre.space/t/new-airspy-r2-mini-driver-development/9768/26
I'm not sure if the gain setting is working, or if I'm using the wrong parameter settings. For example I'm using this setting in SatNOGS:
Changing the "LIN" value does not seem change any gain, as seen in the waterfall for a SatNOGS observation. The debug info from SatNOGS is the following:
And the question is what does
SoapyAirspy::setGain(1, 0, 0.000000)
mean?