Comments (4)
but that is pretty much it
turns out this is not quite true, I do compute a norm in an apparently inefficient way.
doesn't take away the fact the the gcode file is going to be massive and I'd definitely rather be piping it
cheers!
from printrun.
Being able to pipe the gcode as it's being generated would IMHO be a very useful feature
Maybe I did not understand what you are trying to achieve but, could you not simply call printcore.send_now(command)
for every G-code command
you generate and at the same rate you generate them? If you generate them faster than your CNC can move, commands will be simply added to a queue. If not, the CNC would pause in between commands.
from printrun.
I guess you understood well. I didn't go deep enough in the code, my apology.
Just raises one question though... having a queue is OK (as long as we have enough memory and don't OOM the host, but this is pretty straightforward) ; however having the machine stop between instructions can be a problem, and then it would be preferable to rather slow it down (feedrate throttling).
What I did see however is that Marlin has this new format for ACK messages, such as b'ok P15 B3'
where the numbers represent the size of some internal queues, and we could use this to throttle the feedrate to unsure that a queue is never empty and the machine always knows what to do next. Is there something like that in printcore?
from printrun.
you know what? we'll mark this issue as closed.. I am writing a urwid-based interface for machines (it already does some throttling, but at a slightly different level), I got it to work fine on one (defective) board, but not on the new one (and printcore was tested ok on the new board.
Now that I know a little more about printcore I'll try to use it in my program (I was re-inventing the wheel somewhat), then I'll deal with the feedrate throttling issue and submit a patch if required.
Cheers
from printrun.
Related Issues (20)
- Unstable behavior if there's no controlling terminal HOT 4
- 3D view broken in own-compiled package, Debian repo version is good -- part deux! HOT 12
- Text fields and buttons lack padding around their contents, and other minor UI issues HOT 1
- UI hangs after some time, print continues HOT 2
- ValueError: could not convert string to float: line 1995 pronterface.py HOT 46
- Pronterface - Errno 6 Device not configured HOT 5
- My Laser uses the RS 232C communication protocol and not G-Code HOT 10
- Thank you for making pronterface printrun and allowing me to connect the laptop to the 3D printer HOT 2
- Running Pronterface on Aarch64 and Trying Other Tools in the Suite HOT 6
- filament reload error HOT 2
- Moved the custom buttons over too far, and now i have broke the whole program HOT 7
- Cannot download on MAC HOT 8
- Pause from G-Code HOT 3
- Is there a Pause Flag on RPC server? HOT 7
- Plater shortcuts not working and missing tips
- printrun HOT 1
- AttributeError: 'NoneType' object has no attribute 'write HOT 3
- Do not disable extruder on exit HOT 8
- Multiple printer config files HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from printrun.