mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-23 16:25:19 +03:00
Properly select adjustment count
This commit is contained in:
parent
9db2fec934
commit
ae1a2da4b1
1 changed files with 3 additions and 9 deletions
|
@ -64,16 +64,10 @@ TABS.adjustments.initialize = function (callback) {
|
|||
|
||||
// update list of selected functions
|
||||
var functionListOptions = $(functionList).find('option');
|
||||
var availableFunctionCount = 13;
|
||||
var availableFunctionCount = 15;
|
||||
|
||||
if (semver.gte(CONFIG.flightControllerVersion, '1.8.0')) {
|
||||
availableFunctionCount += 2; // pitch and roll rate
|
||||
if (semver.gte(CONFIG.flightControllerVersion, '1.9.0')) {
|
||||
availableFunctionCount += 6; // pitch p,i,d and roll p,i,d
|
||||
if(semver.gte(CONFIG.apiVersion, "1.15.0")){
|
||||
availableFunctionCount += 18;
|
||||
}
|
||||
}
|
||||
if (semver.gte(CONFIG.flightControllerVersion, '1.4.0')) {
|
||||
availableFunctionCount = 21;
|
||||
}
|
||||
|
||||
var functionListOptions = $(functionListOptions).slice(0,availableFunctionCount);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue