Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2010
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. loadusr -W hal_input -KRAL Gamepad
  2.  
  3. # load joyhandle component and attach to threads (in this case 3 instances)
  4. loadrt joyhandle count=3
  5.  
  6. addf joyhandle.0 servo-thread # x
  7. addf joyhandle.1 servo-thread # y
  8. addf joyhandle.2 servo-thread # z
  9.  
  10.  
  11. setp halui.jog-speed 1900 # desired maximum jog speed mm/min
  12.  
  13. # --Start-- These parameters ara used to set up joyhandle
  14. setp halui.jog-deadband 0. # important: default value is 0.2, that would override joyhandle.deadband
  15. setp joyhandle.0.power 3. # select nonlinearity to handele low jog values
  16. setp joyhandle.1.power 3.
  17. setp joyhandle.2.power 4. # in my case the z-axis is set up more sensitive
  18. setp joyhandle.0.deadband 0.1
  19. setp joyhandle.1.deadband 0.1
  20. setp joyhandle.2.deadband 0.1
  21. setp joyhandle.0.scale 1.
  22. setp joyhandle.1.scale -1. # negative values invert jogging
  23. setp joyhandle.2.scale -1. # in my case the z-axis is scaled to lower speed
  24. # --End--
  25.  
  26. # connect hal_input to halui via joyhandle (in case use your own axes-names)
  27. net velX input.0.abs-rx-position => joyhandle.0.in
  28. net velXout joyhandle.0.out => halui.jog.0.analog
  29. net velY input.0.abs-ry-position => joyhandle.1.in
  30. net velYout joyhandle.1.out => halui.jog.1.analog
  31.  
  32. net velZ input.0.abs-z-position => joyhandle.2.in
  33. net velZout joyhandle.2.out => halui.jog.2.analog
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement