joywheel.comp - Joystick wheel processor

  • andronick83
  • andronick83's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
24 Aug 2025 17:13 #333863 by andronick83
joywheel.comp - Joystick wheel processor was created by andronick83

halcompile --install joywheel.comp
# 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
Attachments:

Please Log in or Create an account to join the conversation.

  • andronick83
  • andronick83's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
25 Aug 2025 09:35 - 25 Aug 2025 09:36 #333890 by andronick83
Replied by andronick83 on topic joywheel.comp - Joystick wheel processor
Added pins:
enable IN BIT - Enable joywheel
multiplier IN FLOAT - Output signal multiplier. For reverse: -1.0

File Attachment:
Attachments:
Last edit: 25 Aug 2025 09:36 by andronick83.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Time to create page: 0.274 seconds
Powered by Kunena Forum