Show Pitch P/I/D and Roll P/I/D in-flight adjustments when using

firmware 1.9.0.  Fix missing 'Roll D' inflight adjustment.

Latest Cleanflight release candidate 1.9.0 now has support for them.
Previously it was unknown if the code was going to be in the 1.9.0 or
1.9.1 release.
10.3.x-maintenance
Dominic Clifton 2015-05-20 00:58:03 +01:00
parent 5f05e4c8cc
commit 6b93e354c8
1 changed files with 2 additions and 2 deletions

View File

@ -67,8 +67,8 @@ TABS.adjustments.initialize = function (callback) {
if (semver.gte(CONFIG.flightControllerVersion, '1.8.0')) {
availableFunctionCount += 2; // pitch and roll rate
if (semver.gte(CONFIG.flightControllerVersion, '1.9.1')) {
availableFunctionCount += 5; // pitch p,i,d and roll p,i,d
if (semver.gte(CONFIG.flightControllerVersion, '1.9.0')) {
availableFunctionCount += 6; // pitch p,i,d and roll p,i,d
}
}