Joystick managed by Marlin

Steve’s neat ESP Now based wireless pendant with very fast jogging reminded me of this topic.

Anyone happily using joysticks with V1E Marlin on their MPCNC and/or LR3? Or has keyboard, or something else been good enough, or better even? Joysticks seem cool, and fun, curious how much people value them.

I should read the code, but am curious how joystick movement ends up triggering motion.
Are G0 commands injected/prioritized or handled differently by Marlin compared to commands coming from a serial connected host (e.g. Repetier or ESP3D?).

Trying to understand whether there’s a low latency trick/advantage available by joystick code being embedded within Marlin, compared to what’s possible for commands sent from Repetier/ESP3D for example.

Edit: Re-read Topic’s first post and some code focused posts. Read through joystick.cpp, .h and saw how inject_jog_moves is called in idle loop. Nice! Currently doubting a serial connected host (e.g. ESP3D) will be able to achieve as fine grained smooth control as a joystick hooked to the ADC pins. Please confirm/correct my understanding? Am still curious to see how responsive things could be from ESP3D though, may try some experiments…

1 Like