pixelpusher / liveprinter

Livecoding for 3D printers
GNU Affero General Public License v3.0
40 stars 5 forks source link

Use flowrate instead of layerheight? #62

Open pixelpusher opened 1 year ago

pixelpusher commented 1 year ago

New Prusa & Cura versions use constant flowrates, instead of speed limiting. LivePrinter uses speed limiting currently, but it's set to very slow (could easily be > 100 mm/s !)

Cura's code for handling it:

const double mm3_per_sec = path.getExtrusionMM3perMM() * speed;
            if (max_mm3_per_sec > 0 && mm3_per_sec > max_mm3_per_sec)
            {
                speed *= max_mm3_per_sec / mm3_per_sec;
            }