Skip to content

Commit

Permalink
Update pid_tuning.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRosser committed Apr 7, 2024
1 parent 75774ca commit 55538a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/tabs/pid_tuning.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 55538a2

Please sign in to comment.