Skip to content

Commit

Permalink
Update src/js/tabs/pid_tuning.js
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis authored Apr 8, 2024
1 parent 6bd1e66 commit b3a75c4
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 @@ -1793,7 +1793,7 @@ pid_tuning.initialize = function (callback) {
context.quadraticCurveTo(midXl, midYl, midX, midY);
context.moveTo(midX, midY);
curveClip = getQuadraticCurvePoint(midX, midY, midXr, midYr, canvasWidth, topY, clipPos);
ctrlX = midX + (curveClip.x - midX) /2;
ctrlX = midX + (curveClip.x - midX) / 2;
ctrlY = midYr + (midY - midYr) * (canvasWidth - curveClip.x) / (canvasWidth - midX);
}
context.quadraticCurveTo(ctrlX, ctrlY, curveClip.x, curveClip.y);
Expand Down

0 comments on commit b3a75c4

Please sign in to comment.