51
Mach4 Plugins / Re: Is it possible to map ‘continuous’ jogging to an analog input?
« on: January 07, 2023, 12:32:52 PM »
Yes, that's what I was thinking as well. I was poking around in the screen editor and found the commands I think.
There is a functionality in the pokeys that allows you to map the analog input to a percentage, I was going to use that to set the jog speed.
The one sticking point I still see is how to update the speed as the joystick at runtime. Ideally i would want something like this:
- enable joystick jogging (another input)
While enabled:
- read joystick position, if not "0" (centered), convert to %
- jog in direction indicated (keyboard/gui command) at % of rapid traverse speed
Continue the while loop until joystick jogging is disabled.
If I use siglib to monitor the register and input, is it safe to assume that it will update at the 50ms rate? That should be fast enough for reasonable manual control.
Seem reasonable?
There is a functionality in the pokeys that allows you to map the analog input to a percentage, I was going to use that to set the jog speed.
The one sticking point I still see is how to update the speed as the joystick at runtime. Ideally i would want something like this:
- enable joystick jogging (another input)
While enabled:
- read joystick position, if not "0" (centered), convert to %
- jog in direction indicated (keyboard/gui command) at % of rapid traverse speed
Continue the while loop until joystick jogging is disabled.
If I use siglib to monitor the register and input, is it safe to assume that it will update at the 50ms rate? That should be fast enough for reasonable manual control.
Seem reasonable?