1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

Merged in f5soh/librepilot/laurent/LP-165_Txpid_acro+_ranges (pull request #102)

LP-165 TxPID Acro+ ranges
This commit is contained in:
Lalanne Laurent 2015-11-05 18:12:39 +01:00
commit 4e6a67fe82

View File

@ -419,12 +419,12 @@ void ConfigTxPIDWidget::updateSpinBoxProperties(int selectedPidOption)
minPID->setDecimals(0);
maxPID->setDecimals(0);
} else if (isAcroPlusFactorOption(selectedPidOption)) {
minPID->setRange(0, 1);
maxPID->setRange(0, 1);
minPID->setSingleStep(0.01);
maxPID->setSingleStep(0.01);
minPID->setDecimals(2);
maxPID->setDecimals(2);
minPID->setRange(0, 100);
maxPID->setRange(0, 100);
minPID->setSingleStep(1);
maxPID->setSingleStep(1);
minPID->setDecimals(0);
maxPID->setDecimals(0);
} else {
minPID->setRange(0, 99.99);
maxPID->setRange(0, 99.99);