Open paukstelis opened 1 year ago
it is literally as simple as plugging in your USB controller and / or connecting your Bluetooth controller to your client computer and then opening your browser and visiting your octoprint server.
I'm using HTML5 to facilitate this functionality: https://github.com/synman/Octoprint-Bettergrblsupport/blob/devel/octoprint_bettergrblsupport/static/js/bettergrblsupport.js#L1313
I'll look into the native keyboard controls too. This is a decent feature request.
it is literally as simple as plugging in your USB controller and / or connecting your Bluetooth controller to your client computer and then opening your browser and visiting your octoprint server.
I'm using HTML5 to facilitate this functionality: https://github.com/synman/Octoprint-Bettergrblsupport/blob/devel/octoprint_bettergrblsupport/static/js/bettergrblsupport.js#L1313
Ahh, sounds good. I just didn't really see it referenced anywhere. I will try it out and add a wiki entry if needed.
how's it working for ya?
how's it working for ya?
I've only used it once so far, so I can't really comment much yet. It wasn't clear if the jog distance impacted the sensitivity of the joystick. X and Y certain worked. I didn't really explore if there were controls for jogging Z (do to the sensitivity issues).
no z jogging... just x and y.... and it's proportional. it'll scale to your max rates based on how far you drive each axis on the gamepad.
Yeah, just saw that once I started looking over your link above. I feel like the latency might have been a bit high, but I'll have to play with it again. Would it be possible to add button events? It would be pretty slick to do +/- 1/0.1 mm Z jogs just using button presses.
Answered my own question. Was quite easy to implement!
targeting keyboard support with 2.3.1
I may further extend this over the coming days. At this point we have parity with the key mappings Octoprint itself exposes. I feel the need to do more though :)
The release notes suggests using USB or BT game controller for jogging. Is there some documentation on how to achieve this? I did search around but didn't find anything immediately. Alternatively, would it be possible to incorporate something like the native OctoPrint keyboard control that allows jogging when in the camera feed window?