1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-25 09:15:42 +03:00

Minor fixes on PID Tuning tab

This commit is contained in:
Pawel Spychalski (DzikuVx) 2020-11-07 17:19:43 +01:00
parent e2f77bbd30
commit a53cbd23ad
4 changed files with 11 additions and 26 deletions

View file

@ -66,11 +66,14 @@ 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) || (MIXER_CONFIG.platformType == PLATFORM_MULTIROTOR && semver.gte(CONFIG.flightControllerVersion, "2.6.0"));
return (MIXER_CONFIG.platformType == PLATFORM_AIRPLANE || MIXER_CONFIG.platformType == PLATFORM_ROVER || MIXER_CONFIG.platformType == PLATFORM_BOAT) || ((MIXER_CONFIG.platformType == PLATFORM_MULTIROTOR || MIXER_CONFIG.platformType == PLATFORM_TRICOPTER) && semver.gte(CONFIG.flightControllerVersion, "2.6.0"));
},
isRpyDComponentUsed: function () {
return MIXER_CONFIG.platformType == PLATFORM_MULTIROTOR || MIXER_CONFIG.platformType == PLATFORM_TRICOPTER;
},
isCdComponentUsed: function () {
return FC.isRpyDComponentUsed();
},
resetState: function () {
SENSOR_STATUS = {
isHardwareHealthy: 0,