calcmogul/controls-engineering-in-frc

Why x not y

SpencerGreene opened this issue · 2 comments

Why x not y

Maybe a dumb question but in the PID section:

the \gls{error} at timestep $k$. $e_k$ is defined as $e_k = r_k - x_k$ where

the expansion is shown as e_k = r_k - x_k. Why isn't it e_k = r_k - y_k? The spring equation uses x but the control system example and diagram use y, am I missing something?

The state and output of the PID controller are equivalent in this context, but I'll modify it to use y for consistency.