I don't think you are allowed to hook two writing HAL pins to a reading pin ?
So you need a mux somewhere that switches between your gamepad, keyboard, and pyvcp panel.
Hi having some newbie difficulties
I'am trying to setup axis to allow jogging from keyboard,pyvcp panel and my
pendant (gamepad). i can get both pyvcp and input(gampad) to function along with keyboard jogging but cant get all three to function. is there a way i can logic the gampad or pyvcp using maybe gamepad button or pyvcp choice. have used what i can find on the wiki page. tried hal joystick w/encoder sigs prior and found it to be a bit sluggish. have been working with halui and input at this point. my gamepad only offers x,y and i think 7 buttons so i will need to do some creative coding for a Z or use buttons to select axis to jog or something.
example code only not the exact syntax:
my pyvcp
net remote-jog-plus halui-jog-plus <=pyvcp
my gamepad
net remote-jog-plus halui-jog-plus <=input-jog-plus
thanks gads
Last edited by Gads; 04-14-2008 at 06:46 AM.
I don't think you are allowed to hook two writing HAL pins to a reading pin ?
So you need a mux somewhere that switches between your gamepad, keyboard, and pyvcp panel.
it should work like this...
net remote-jog-plus halui-jog-plus <= pyvcp.my-button
net remote-jog-plus <= input-jog-plus
take a look on this page for an example
http://wiki.linuxcnc.org/cgi-bin/emc..._A_MPG_Pendant
John