1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 06:15:13 +03:00

Fixed bug in yaw rate curve display for version < 2.8.1

This commit is contained in:
mikeller 2016-06-30 22:15:35 +12:00
parent ecfb1bcbca
commit e77de7dba7

View file

@ -412,6 +412,8 @@ TABS.pid_tuning.initialize = function (callback) {
var rateElementYaw = 1; var rateElementYaw = 1;
if (CONFIG.flightControllerIdentifier == "BTFL" && semver.gte(CONFIG.flightControllerVersion, "2.8.1")) { if (CONFIG.flightControllerIdentifier == "BTFL" && semver.gte(CONFIG.flightControllerVersion, "2.8.1")) {
rateElementYaw = $('.pid_tuning input[name="rc_rate_yaw"]'); rateElementYaw = $('.pid_tuning input[name="rc_rate_yaw"]');
} else {
rateElementYaw = rateElement;
} }
drawRateCurve(rateElement, sRateElementRoll, expoElement, rcCurveElement); drawRateCurve(rateElement, sRateElementRoll, expoElement, rcCurveElement);