Thanks. It is C++ code using Armadillo for linear algebra and BLAS/LAPACK subroutines. Source code is a bit messy, but will try to clean it up and put it on a different repo when I find the time.
The code is C++ code, It could be ported to an MCU if there is a fairly recent C* compiler (C11+). But the algorithms are quite expensive, there are multiple matrix inversions, the size of the matrices been as large as the data you put in into the tool. typically between 500 and 10000 data points.
Could you go into a bit more detail regarding the webassembly implementation in:
pidtuner.github.io/pid/v1.0.6/pid_tuner_wasm.wasm
Is it in C, C++, rust? Could you give a brief description of the internal logic?