@@ -64,6 +64,7 @@ const {
6464 zpitchactive,
6565 xstepperactive,
6666 zstepperactive,
67+ currentToolIndex,
6768 updateHALOut
6869} = useHAL ()
6970
@@ -431,7 +432,6 @@ function setFinalNumber(value: number) {
431432 break
432433 case TurningEntryType .turningFeedRate :
433434 setTurningParameter (TurningEntryType .turningFeedRate , value )
434- updatePitchFromTurning ()
435435 break
436436 case TurningEntryType .turningStepDown :
437437 setTurningParameter (TurningEntryType .turningStepDown , value )
@@ -833,13 +833,6 @@ const pitchClicked = (axis: string) => {
833833 if (xpitchangle .value > 0 ) {
834834 xpitch .value = pitchForAngle (zpitch .value , xpitchangle .value )
835835 }
836- // If we're in turning mode, also update the turning feed rate parameter
837- if (
838- selectedMenu .value === MenuType .cannedCycles &&
839- selectedCannedCycle .value === CannedCycle .turning
840- ) {
841- turningFeedRate .value = value
842- }
843836 }
844837 break
845838 case ' x' :
@@ -1078,11 +1071,6 @@ const turningResetClicked = () => {
10781071}
10791072
10801073const updatePitchFromTurning = () => {
1081- // Update feed rate display for turning (feed rate is in mm/rev)
1082- if (turningFeedRate .value !== null ) {
1083- zpitch .value = Math .abs (turningFeedRate .value )
1084- }
1085-
10861074 // Minimal cross feed for turning
10871075 xpitch .value = 0.001
10881076 xpitchangle .value = 0
@@ -1218,6 +1206,8 @@ onUnmounted(() => {
12181206 :cursorpos =" cursorpos"
12191207 :diameter-mode =" diameterMode"
12201208 :show-x-pitch =" true"
1209+ :show-z-pitch =" true"
1210+ :tool-index =" currentToolIndex"
12211211 @number-clicked =" numberClicked"
12221212 @zero-clicked =" zeroClicked"
12231213 @pitch-clicked =" pitchClicked"
@@ -1441,6 +1431,8 @@ onUnmounted(() => {
14411431 :cursorpos =" cursorpos"
14421432 :diameter-mode =" diameterMode"
14431433 :show-x-pitch =" false"
1434+ :show-z-pitch =" false"
1435+ :tool-index =" currentToolIndex"
14441436 @number-clicked =" numberClicked"
14451437 @zero-clicked =" zeroClicked"
14461438 @pitch-clicked =" pitchClicked"
0 commit comments