zarfld / LinuxCnc_PokeysLibComp

Pokeys comp for LinuxCnc using https://bitbucket.org/mbosnak/pokeyslib.git
MIT License
5 stars 0 forks source link

add MPGJog wheel example .. #10

Closed zarfld closed 2 years ago

zarfld commented 2 years ago

add MPG-Jog on pokeys based on https://linuxcnc.org/docs/stable/html/examples/mpg.html

problems to solve:

not sure if there is already a component which might help.

zarfld commented 2 years ago

for MPGjogging (also continuos Jogging and increment jogging) an extension was needed, as the pokeys component provides a bit for each button only, and linux cnc expects different behaviour (for mpg-jogging axis/joint pins are used for interaction, increment-jog needs halui.joint.?.increment-plus (/minus), continuous-jog uses halui.joint.?.plus(/minus); increment and continuous jog set jog-speed, mpg-jog uses jog-scale and jog-accel-fraction on axis/joint instead) this was packed in an additional kbd48CNC.comp which can be loaded if needed - signal/pin-mapping and component load was done in kbd48CNC.hal - to keep this part seperated from main config