4 axis with joypad
13 Apr 2016 14:21 #73231
by Rufus
4 axis with joypad was created by Rufus
need help in the control of a 4 -axis with a joypad
not get it out because I do not know how I 4 axis ( a) must programing in the hal
not get it out because I do not know how I 4 axis ( a) must programing in the hal
Please Log in or Create an account to join the conversation.
14 Apr 2016 06:40 #73273
by Rick G
Replied by Rick G on topic 4 axis with joypad
Please Log in or Create an account to join the conversation.
14 Apr 2016 11:16 - 14 Apr 2016 11:36 #73293
by Rufus
Replied by Rufus on topic 4 axis with joypad
sorry for my english
I can not find is , the control command for a axis
I can not find is , the control command for a axis
net jog-z-down halui.jog.2.plus <= input.0.btn-x
net jog-z-up halui.jog.2.minus <= input.0.btn-a
this is the z axis, run perfect, i cant not find the halui.jog (?) for the a axis
my button for the a axis is
input.0.btn-z-not
input.0.btn-y-not
my hal for my joypad, is run perfectly
loadusr -W hal_input -KRAL Gamepad
setp halui.jog-speed 10
loadrt sum2 count=1
loadrt mux4 count=1
loadrt or2 count=2
loadrt not count=1
addf sum2.0 servo-thread
addf not.0 servo-thread
addf or2.0 servo-thread
addf or2.1 servo-thread
addf mux4.0 servo-thread
# achsen fahren
setp mux4.0.in0 0
setp mux4.0.in1 10
setp mux4.0.in2 100
setp mux4.0.in3 700
net speed-button-1 or2.0.in0 input.0.btn-tl
net speed-button-2 or2.1.in0 input.0.btn-tr
net speed-1 mux4.0.sel0 <= or2.0.out
net speed-2 mux4.0.sel1 <= or2.1.out
net speed-out halui.jog-speed <= mux4.0.out
setp input.0.abs-y-scale -127.5
net jog-x halui.jog.0.analog <= input.0.abs-x-position
net jog-y halui.jog.1.analog <= input.0.abs-y-position
net jog-z-down halui.jog.2.plus <= input.0.btn-x
net jog-z-up halui.jog.2.minus <= input.0.btn-a
Last edit: 14 Apr 2016 11:36 by BigJohnT. Reason: ad code tags
Please Log in or Create an account to join the conversation.
14 Apr 2016 14:29 #73302
by andypugh
Replied by andypugh on topic 4 axis with joypad
The A axis would be jogged by halui.jog.3......
Please Log in or Create an account to join the conversation.
14 Apr 2016 17:38 #73318
by Rufus
Replied by Rufus on topic 4 axis with joypad
thanks , thanks, i am so blind,
Please Log in or Create an account to join the conversation.
Time to create page: 0.123 seconds