- Posts: 3
- Thank you received: 0
joywheel.comp - Joystick wheel processor
- andronick83
- Topic Author
- Offline
- New Member
-
Less
More
1 year 2 months ago #333863
by andronick83
joywheel.comp - Joystick wheel processor was created by andronick83
Code:
halcompile --install joywheel.comp
Code:
# Load Gamepad
loadusr -W hal_input -KA +Logitech
net joy-rx-pos <= input.0.abs-z-position # float [-1, 1]
net joy-ry-pos <= input.0.abs-rz-position # float [-1, 1]
# Load JoyWheel component
loadrt joywheel names=joywheel-z
addf joywheel-z servo-thread
# Set axis jog parameters
setp axis.z.jog-vel-mode 0
setp axis.z.jog-scale 0.01
net mode-manual halui.mode.is-manual => axis.z.jog-enable
# Connect JoyWheel
setp joywheel-z.deadband 0.90
net joy-rx-pos => joywheel-z.in0
net joy-ry-pos => joywheel-z.in1
net joywheel-z-scale axis.z.jog-scale => joywheel-z.scale
net joywheel-z-out joywheel-z.out => axis.z.jog-counts
Please Log in to join the conversation.
- andronick83
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
1 year 2 months ago #333890
by andronick83
Replied by andronick83 on topic joywheel.comp - Joystick wheel processor
Please Log in to join the conversation.
Time to create page: 0.082 seconds
