mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +01:00
GCS:Scope: Backward Compatibility: Set Interpolation to minimum (1) when not set in config file
This commit is contained in:
parent
15c1ca4af1
commit
716bb8ec56
@ -66,6 +66,7 @@ ScopeGadgetConfiguration::ScopeGadgetConfiguration(QString classId, QSettings* q
|
|||||||
plotCurveConf->color = color;
|
plotCurveConf->color = color;
|
||||||
plotCurveConf->yScalePower = qSettings->value("yScalePower").toInt();
|
plotCurveConf->yScalePower = qSettings->value("yScalePower").toInt();
|
||||||
plotCurveConf->yInterpolationSamples = qSettings->value("yInterpolationSamples").toInt();
|
plotCurveConf->yInterpolationSamples = qSettings->value("yInterpolationSamples").toInt();
|
||||||
|
if (!plotCurveConf->yInterpolationSamples) plotCurveConf->yInterpolationSamples = 1; // fallback for backward compatibility with earlier versions
|
||||||
plotCurveConf->yMinimum = qSettings->value("yMinimum").toDouble();
|
plotCurveConf->yMinimum = qSettings->value("yMinimum").toDouble();
|
||||||
plotCurveConf->yMaximum = qSettings->value("yMaximum").toDouble();
|
plotCurveConf->yMaximum = qSettings->value("yMaximum").toDouble();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user