diff --git a/locales/en/messages.json b/locales/en/messages.json index 1b3e9f77..8ae441ee 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -2829,7 +2829,7 @@ "message": "Acro Trainer Angle Limit" }, "pidTuningAcroTrainerAngleLimitHelp": { - "message": "Adds a new angle limiting mode for pilots who are learning to fly in acro mode. The range valid is 10-80 (a value of 0 deactivates it)" + "message": "Adds a new angle limiting mode for pilots who are learning to fly in acro mode. The range valid is 10-80 and must be activated with a switch in the $t(tabAuxiliary.message) tab." }, "configHelp2": { diff --git a/src/js/tabs/pid_tuning.js b/src/js/tabs/pid_tuning.js index 15ef3eb4..3a193795 100644 --- a/src/js/tabs/pid_tuning.js +++ b/src/js/tabs/pid_tuning.js @@ -234,20 +234,11 @@ TABS.pid_tuning.initialize = function (callback) { var acroTrainerAngleLimitNumberElement = $('input[name="acroTrainerAngleLimit-number"]'); var acroTrainerAngleLimitRangeElement = $('input[name="acroTrainerAngleLimit-range"]'); - var validateAcroTrainerAngle = function(value) { - // The minimum acro trainer angle is 10, but we must let zero too to deactivate it - if (value > 0 && value < 10) { - value = 10; - } - acroTrainerAngleLimitRangeElement.val(value); - acroTrainerAngleLimitNumberElement.val(value); - } - acroTrainerAngleLimitNumberElement.change(function () { - validateAcroTrainerAngle($(this).val()); + acroTrainerAngleLimitRangeElement.val($(this).val()); }); acroTrainerAngleLimitRangeElement.change(function () { - validateAcroTrainerAngle($(this).val()); + acroTrainerAngleLimitNumberElement.val($(this).val()); }); acroTrainerAngleLimitNumberElement.val(ADVANCED_TUNING.acroTrainerAngleLimit).change(); diff --git a/src/tabs/pid_tuning.html b/src/tabs/pid_tuning.html index afe4673b..d1d91db5 100644 --- a/src/tabs/pid_tuning.html +++ b/src/tabs/pid_tuning.html @@ -340,8 +340,8 @@ - - + +