mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +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:
commit
4e6a67fe82
@ -419,12 +419,12 @@ void ConfigTxPIDWidget::updateSpinBoxProperties(int selectedPidOption)
|
|||||||
minPID->setDecimals(0);
|
minPID->setDecimals(0);
|
||||||
maxPID->setDecimals(0);
|
maxPID->setDecimals(0);
|
||||||
} else if (isAcroPlusFactorOption(selectedPidOption)) {
|
} else if (isAcroPlusFactorOption(selectedPidOption)) {
|
||||||
minPID->setRange(0, 1);
|
minPID->setRange(0, 100);
|
||||||
maxPID->setRange(0, 1);
|
maxPID->setRange(0, 100);
|
||||||
minPID->setSingleStep(0.01);
|
minPID->setSingleStep(1);
|
||||||
maxPID->setSingleStep(0.01);
|
maxPID->setSingleStep(1);
|
||||||
minPID->setDecimals(2);
|
minPID->setDecimals(0);
|
||||||
maxPID->setDecimals(2);
|
maxPID->setDecimals(0);
|
||||||
} else {
|
} else {
|
||||||
minPID->setRange(0, 99.99);
|
minPID->setRange(0, 99.99);
|
||||||
maxPID->setRange(0, 99.99);
|
maxPID->setRange(0, 99.99);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user