diff --git a/locale/en/messages.json b/locale/en/messages.json index 0dbe2f22d..3c41a48c8 100644 --- a/locale/en/messages.json +++ b/locale/en/messages.json @@ -1093,6 +1093,12 @@ "configurationLaunchIdleDelayHelp": { "message": "Set a time delay between raising the throttle for the launch, and the motor starting at idle throttle. Default: 0 [0-60000]" }, + "configurationWiggleWakeIdle": { + "message": "Wiggle to Wake Idle" + }, + "configurationWiggleWakeIdleHelp": { + "message": "If enabled, this feature allows a yaw wiggle of the aircraft to wake up the motors from idle.
0: Disabled (default)
1: 1 wiggle - This setting has a higher detection point, for airplanes without a tail that can be moved easily
2: 2 wiggles - This setting has a lower detection point, but requires the repeated action. This is intended for larger models and airplanes with tails" + }, "configurationLaunchMotorDelay": { "message": "Motor Delay" }, diff --git a/tabs/advanced_tuning.html b/tabs/advanced_tuning.html index dcb2b5c7d..8bea315cb 100644 --- a/tabs/advanced_tuning.html +++ b/tabs/advanced_tuning.html @@ -20,6 +20,11 @@
+
+ + +
+
diff --git a/tabs/advanced_tuning.js b/tabs/advanced_tuning.js index 0dc69cc13..d86b07222 100644 --- a/tabs/advanced_tuning.js +++ b/tabs/advanced_tuning.js @@ -73,6 +73,10 @@ TABS.advanced_tuning.initialize = function (callback) { TABS.advanced_tuning.checkRequirements_IdleThrottle(); }); + $('#wiggleWakeIdle').on('change', function () { + TABS.advanced_tuning.checkRequirements_IdleThrottle(); + }); + $('#rthHomeAltitude').on('keyup', () => { TABS.advanced_tuning.checkRequirements_LinearDescent(); }); @@ -97,7 +101,7 @@ TABS.advanced_tuning.initialize = function (callback) { TABS.advanced_tuning.checkRequirements_IdleThrottle = function() { let idleThrottle = $('#launchIdleThr'); - if ($('#launchIdleDelay').val() > 0 && (idleThrottle.val() == "" || idleThrottle.val() < "1150")) { + if (($('#launchIdleDelay').val() > 0 || $('#wiggleWakeIdle').find(":selected").val() > 0) && (idleThrottle.val() == "" || idleThrottle.val() < "1150")) { idleThrottle.addClass('inputRequiredWarning'); } else { idleThrottle.removeClass('inputRequiredWarning');