From 55538a22114fbf286df0521b033d2cbc47493d97 Mon Sep 17 00:00:00 2001 From: ChrisRosser <41840611+ChrisRosser@users.noreply.github.com> Date: Sun, 7 Apr 2024 16:34:29 +0100 Subject: [PATCH] Update pid_tuning.js --- src/js/tabs/pid_tuning.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/tabs/pid_tuning.js b/src/js/tabs/pid_tuning.js index dd64ad90f9b..6544f6b9b57 100644 --- a/src/js/tabs/pid_tuning.js +++ b/src/js/tabs/pid_tuning.js @@ -1783,7 +1783,7 @@ pid_tuning.initialize = function (callback) { context.moveTo(0, canvasHeight); if (throttleLimitType === THROTTLE_LIMIT_TYPES.CLIP){ const throttleClipY = canvasHeight * (1 - throttleLimitPercent); - thrpos.y = thrpos.y > throttleClipY ? throttleClipY : thrpos.y; + thrpos.y = thrpos.y < throttleClipY ? throttleClipY : thrpos.y; const clipPos = throttleLimitPercent <= mid ? getPosfromYBezier(throttleClipY,canvasHeight,midYl, midY) : getPosfromYBezier(throttleClipY,midY, midYr, topY);