I asked grok to convert the javascript program into a esp32 C function on the thought that this is SO much faster than the prior version, that we may be able to eliminate the back and forth to the browser and do everything on the esp32
I have not looked into the resulting code, and some adaptation will be needed to save the results in the right place. but here it is if someone wants to look into that (all 386 lines)
calibrator_esp32_fragment.cpp (13.8 KB)
In the meantime, I’m working on a PR for the UI that lets you select either the maslow classic algorithm or the new one.
I’m running into a bug testing that I think is the firmware, not the UI
PR is Add alternate calibration algorithm with Gauss-Newton Least Squares by Copilot · Pull Request #222 · BarbourSmith/ESP3D-WEBUI · GitHub
binary that seems to be working is at Add alternate calibration algorithm with Gauss-Newton Least Squares · BarbourSmith/ESP3D-WEBUI@f51b878 · GitHub