joywheel.comp - Joystick wheel processor

More
1 year 2 months ago #333863 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.

More
1 year 2 months ago #333890 by andronick83
Added pins:
enable IN BIT - Enable joywheel
multiplier IN FLOAT - Output signal multiplier. For reverse: -1.0

[img

Please Log in to join the conversation.

More
1 year 2 months ago #334122 by andypugh
Imaginative idea.

Please Log in to join the conversation.

Time to create page: 0.082 seconds
Powered by Kunena Forum