Macro to approximate filament on spool

Hi everyone, a while ago i derived this formula to approximate the length/mass of filament on a spool, by measuring it. At the time i wrote a python and c++ program to do the calculation for me. However i barely used it. I recently switched to klipper and thought it would be a great idea to make it a macro, since you are already on your PC. The maco can be found here: GitHub - WatchingWatches/Filament-approximation: This formula approximates the lengh of filament on your spool . You don’t have to take all of the measurements every time you use it. You only need to measure the r_2 parameter everytime. The others can be saved for every spool. Inside of the file there are two examples on how to do so. You can add as many as you want. The results of the calculation will be printed in your console.

1 Like