Sienci-Labs / gsender

Connect to and control Grbl-based CNCs with ease
https://sienci.com/gsender/
Other
178 stars 41 forks source link

Stuttering movement using game controller #522

Open uzadow opened 2 months ago

uzadow commented 2 months ago

I get stuttering/jerking movement when using a game controller that essentially makes jogging unusable.

Setup: Raspberry Pi, gSender 1.4.7, noname ('shanwan') USB playstation controller.

This worked with a gSender 1.2.2 install - updating to a current Pi OS and gSender broke it.

Any help debugging this would be appreciated, and I'm happy to provide more information if needed :-). Also happy to provide a video of the symptoms if that helps.

Ezekiel-DA commented 2 months ago

Seconding this, but on Windows. Also gSender 1.4.7. Have not tried previous version (this is what I started with since I just got my Longmill MK2 a month or so back), happy to try earlier version is that is helpful for debugging.

uzadow commented 2 months ago

Here's a video of the stepper motor movement - hope that helps.

Downgrading to 1.2.2 fixed this on my end. Still happy to help debug this :-).

https://github.com/Sienci-Labs/gsender/assets/7524857/4d497cf5-6749-43e9-acf1-9ee4c00eb048

hamanjam commented 2 months ago

My Logitech wireless F710 does the same thing. Keyboard ardor shortcuts are fine, just the gamepad stutters bit I believe that has happened in the 1.4.x release. I rarely use the gamepad so it wasn't critical for me to look into anything https://github.com/Sienci-Labs/gsender/assets/45050113/893af968-af7c-40c9-9e94-14f6ba51470c

walidkayhan commented 1 month ago

For versions 1.4.x, we drastically changed how jogging works with gamepads on gSender. One of the new features we added is dynamic jogging, where the speed is dependant on how far you push the thumb sticks on your controller. This can lead to a stuttering affect as we aren't able to send a single long jog command like we did before, but instead have to send many small jog movements one after another.

If you want to eliminate the stuttering, you can play around with the movement distance override setting in your gamepad profile within the settings.

Screenshot 2024-07-09 at 11 27 08 AM

Some users reported setting it to 120% or 150% helped get rid of the jog stuttering on their end but you would need to experiment with it to see which value works best for you :)

uzadow commented 1 month ago

Thanks for your support!

I've tried this now. The stuttering is less at 150% and mostly (but not completely) disappears at 500%. But now, there is an additional issue: If I jog in one direction (e.g., left), stop, and then move in the opposite direction (e.g., right), the movement is sometimes left, stop, then left again, then right.

I've reverted to the old SD card again, but I'm happy to do more tests if it helps.

lappa1 commented 2 weeks ago

Could we please have this dynamic jogging as an option? I personally like to have very accurate control when jogging which is very hard to achieve with dynamic jogging.

mattydboom commented 2 weeks ago

Experienced the same stuttering issue at the default 100% override setting, and upping to 125, 150, 300 all made only marginal improvements. Wasn't until I hit 500% as suggested by @uzadow above that things started moving much more smoothly. You can hear when each jog gets initiated still, but is a vast improvement over the lower settings.

I also haven't noticed any movement in an incorrect direction afterwards either so would say this is a sufficient fix (for me) for now, so wanted to share in case it could help anyone else looking here..... I would never have thought to touch that setting, let alone bump it up so high, and as such think this could be better handled in the UI.