Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2020-07-13 20:10:41 +0300
committerPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2020-07-13 20:10:41 +0300
commitd8196c544525dc89af54fcb0f488614797afb5f4 (patch)
tree98cdcdf673956a9ac65c840f211c2d2807af1336 /js
parenta711632fd2c46d08555c60ff01467deca04c360f (diff)
Allow setting CD/FF gains for multirotors
Diffstat (limited to 'js')
-rw-r--r--js/fc.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/fc.js b/js/fc.js
index 65327feb..f4ff6a42 100644
--- a/js/fc.js
+++ b/js/fc.js
@@ -66,10 +66,10 @@ var FC = {
MAX_SERVO_RATE: 125,
MIN_SERVO_RATE: 0,
isRpyFfComponentUsed: function () {
- return MIXER_CONFIG.platformType == PLATFORM_AIRPLANE || MIXER_CONFIG.platformType == PLATFORM_ROVER || MIXER_CONFIG.platformType == PLATFORM_BOAT;
+ return (MIXER_CONFIG.platformType == PLATFORM_AIRPLANE || MIXER_CONFIG.platformType == PLATFORM_ROVER || MIXER_CONFIG.platformType == PLATFORM_BOAT) || (MIXER_CONFIG.platformType == PLATFORM_MULTIROTOR && semver.gte(CONFIG.flightControllerVersion, "2.6.0"));
},
isRpyDComponentUsed: function () {
- return !FC.isRpyFfComponentUsed();
+ return MIXER_CONFIG.platformType == PLATFORM_MULTIROTOR || MIXER_CONFIG.platformType == PLATFORM_TRICOPTER;
},
resetState: function () {
SENSOR_STATUS = {