Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
petmakris committed Jan 29, 2024
1 parent 79cea5b commit 1f6ac78
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
3 changes: 3 additions & 0 deletions config/hal/20-spindle.hal
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ net spindle.velocity <= spindle.encoder.velocity
net spindle.velocity => spindle.0.speed-in
net spindle.velocity => spindle.near.in1

# To PyVCP
net spindle.velocity-rpm <= spindle.encoder.velocity-rpm

net spindle.phase-a <= hm2_7i97.0.inmux.00.input-12 => spindle.encoder.phase-A
net spindle.commanded-speed <= spindle.0.speed-out-rps-abs => spindle.near.in2
net spindle.at-speed <= spindle.near.out => spindle.0.at-speed
Expand Down
28 changes: 15 additions & 13 deletions config/halshow.preferences
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
# Halshow settings
# This file is generated automatically.
wm geometry . 936x1266+974+27
wm geometry . 936x1048+974+27
placeFrames 0.272145144076841
set ::ratio 0.272145144076841
set ::old_w_leftf 503
set ::watchlist {
pin+spindle.encoder.counter-mode
pin+spindle.encoder.counts
pin+spindle.encoder.counts-latched
pin+spindle.encoder.index-enable
pin+spindle.encoder.latch-falling
pin+spindle.encoder.latch-input
pin+spindle.encoder.latch-rising
pin+spindle.encoder.min-speed-estimate
pin+spindle.encoder.missing-teeth
pin+spindle.encoder.phase-A
pin+spindle.encoder.phase-B
pin+spindle.encoder.phase-Z
pin+spindle.encoder.position
pin+spindle.encoder.position-interpolated
pin+spindle.encoder.position-latched
pin+spindle.encoder.position-scale
pin+spindle.encoder.rawcounts
pin+spindle.encoder.reset
pin+spindle.encoder.velocity
pin+spindle.encoder.velocity-rpm
pin+spindle.encoder.x4-mode
pin+spindle.0.at-speed
pin+spindle.0.forward
pin+spindle.0.inhibit
pin+spindle.0.on
pin+spindle.0.reverse
pin+spindle.0.revs
pin+spindle.0.speed-cmd-rps
pin+spindle.0.speed-in
pin+spindle.0.speed-out
pin+spindle.0.speed-out-abs
pin+spindle.0.speed-out-rps
pin+spindle.0.speed-out-rps-abs
pin+spindle.near.in1
pin+spindle.near.in2
}
set ::workmode watchhal
set ::watchInterval 100
Expand Down
6 changes: 3 additions & 3 deletions config/panel.hal
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
net panel.feed-override.value => pyvcp.feed-override
net panel.spindle-speed => pyvcp.spindle-speed
net panel.jog-speed => pyvcp.jog-speed
net panel.feed-override.value => pyvcp.feed-override
net spindle.velocity-rpm => pyvcp.spindle-speed
net panel.jog-speed => pyvcp.jog-speed

0 comments on commit 1f6ac78

Please sign in to comment.