Savitzky-Golay Filter
Fit a small polynomial to the window instead of a flat line. The same least-squares machinery that found your feedforward gains gives a filter that smooths noise without flattening the peaks a moving average destroys.
Explore Control Lab lessons about least-squares, with robotics examples, equations, and interactive experiments.
View all tagsFit a small polynomial to the window instead of a flat line. The same least-squares machinery that found your feedforward gains gives a filter that smooths noise without flattening the peaks a moving average destroys.
Stop guessing your feedforward gains and measure them. Drive the mechanism through known voltages, log the response, and recover kS, kV, and kA by least-squares fit, the same way FRC's SysId does.