bi-linear interpolation of a multi-dimensional array
hi,
i'm working on project using pid fine-tune output pwm, want start pid known initial duty pid has deal trimming.
the plan have 16 x 16 array , bi-linear interpolate reasonable level of smoothness.
the breakpoints on each of axis's may not equally spaced, i.e. x axis values may go:
-10, 0, 2, 3, 5, 10, 15, 22, 30, 40....
i've looked @ multimap function, feel it's bit clunky.
is there neater solution out there other writing own library file?
has 1 got pointers?
i'm working on project using pid fine-tune output pwm, want start pid known initial duty pid has deal trimming.
the plan have 16 x 16 array , bi-linear interpolate reasonable level of smoothness.
the breakpoints on each of axis's may not equally spaced, i.e. x axis values may go:
-10, 0, 2, 3, 5, 10, 15, 22, 30, 40....
i've looked @ multimap function, feel it's bit clunky.
is there neater solution out there other writing own library file?
has 1 got pointers?
implementing interpolation matter of few lines of code: https://en.wikipedia.org/wiki/bilinear_interpolation. no need library.
pid pretty robust, assuming system model appropriate , sampling intervals uniform.
what problem trying solve , why think approach solution?
pid pretty robust, assuming system model appropriate , sampling intervals uniform.
what problem trying solve , why think approach solution?
Arduino Forum > Using Arduino > Project Guidance > bi-linear interpolation of a multi-dimensional array
arduino
Comments
Post a Comment