diff options
author | Pawel Spychalski (DzikuVx) <pspychalski@gmail.com> | 2020-07-13 20:10:41 +0300 |
---|---|---|
committer | Pawel Spychalski (DzikuVx) <pspychalski@gmail.com> | 2020-07-13 20:10:41 +0300 |
commit | d8196c544525dc89af54fcb0f488614797afb5f4 (patch) | |
tree | 98cdcdf673956a9ac65c840f211c2d2807af1336 /js | |
parent | a711632fd2c46d08555c60ff01467deca04c360f (diff) |
Allow setting CD/FF gains for multirotors
Diffstat (limited to 'js')
-rw-r--r-- | js/fc.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 = { |