-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix multiple connects causing erratic plots #195
Fix multiple connects causing erratic plots #195
Conversation
@osresearch @lostPixels @edouard-gillet @jimmykl @ostwilkens @julienes (and @oskay for good measure 😃 ) You had all reported erratic plots with You can install from this pull request, or the fork (which adds brushless servo support too). |
Nice, good catch. |
Thank you very much for your feedback. I took a break from the plotter, I hadn't had a chance to try it out. So I updated Saxi today with this new version, and my servo motor doesn't respond at all. I can launch a drawing, the arm moves, but no up and down. I don't know if it worked for anyone else. |
Strange, I've not seen that fail. Are you on a brushed or brushless motor? You might want to try https://github.com/alexrudd2/saxi, since that has an option to switch between both. |
Yes, I have the brushless motor. I've tried it on my mac and on the raspberry, but in both cases, I can just launch the plot, but the servo motor doesn't work. I'll try again to install version 0.14 to see if it works like before already. I'll tell you again quickly. |
Ah, yeah that explains it. Use the fork: https://github.com/alexrudd2/saxi. It works well for several people, and we intend to merge back here when @nornagon gets some time. :) There's a new checkbox to switch between brushed and brushless. |
Yes, I installed this version and uninstalled version 0.14. I have the checkbox, but the Servo motor doesn't respond. But if it works for the others, I'll try to find out why. I tested with inkscape to see if the Servo worked, and yes, it does. |
Strange. Does it work with |
that looks like its It is possible the runtime checkbox is not fully working, I should test again. |
Ok, this way it works for both, mac and raspberry PI |
See alexrudd2#113. Closes #194. Closes #131
summary
saxi
is usually OK on a fast laptop, but can cause erratic and jerky plots on smaller devices like a Raspberry Pi. This PR smooths things out.details
0.0.15
code creates up to 5 duplicate WebSocket connections, as an unintended side effort of adding WebSerial. They occur even when WebSerial isn't being used.This PR removes the duplicates with two ways:
[]
as the second argument touseEffect
.SaxiDriver.connect()
call in a flag so it doesn't get called multiple times inRoot()
.