mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-17 20:33:50 +00:00
Optional harmonic mixing
This commit is contained in:
parent
d6ef96914a
commit
49e0b901fd
8 changed files with 76 additions and 14 deletions
|
|
@ -817,8 +817,15 @@ void VNA::StartCalibrationMeasurement(Calibration::Measurement m)
|
|||
|
||||
void VNA::ConstrainAndUpdateFrequencies()
|
||||
{
|
||||
if(settings.f_stop > Device::Info().limits_maxFreq) {
|
||||
settings.f_stop = Device::Info().limits_maxFreq;
|
||||
auto pref = Preferences::getInstance();
|
||||
double maxFreq;
|
||||
if(pref.Acquisition.harmonicMixing) {
|
||||
maxFreq = Device::Info().limits_maxFreqHarmonic;
|
||||
} else {
|
||||
maxFreq = Device::Info().limits_maxFreq;
|
||||
}
|
||||
if(settings.f_stop > maxFreq) {
|
||||
settings.f_stop = maxFreq;
|
||||
}
|
||||
if(settings.f_start > settings.f_stop) {
|
||||
settings.f_start = settings.f_stop;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue