flowmpc: Offline Model-Predictive Flow Compensation for FFF Printing
Filament compresses in the melt zone before it exits the nozzle, so printers under- and over-extrude through every acceleration and deceleration. A sliced G-code file is already the printer's entire future trajectory, so this project solves the same pressure-dynamics tracking problem a real-time controller would, once, offline, and bakes the result back into ordinary G-code for a stock, unmodified Bambu Lab X1C. The jointly-optimized speed and flow schedule dominates speed-agnostic compensation on the time/accuracy Pareto front and stays robust under model mismatch.