Pid Controller, Control Theory, Embedded Systems.
plot(ans.Sim_Y(:,1), ans.Sim_Y(:,2), 'r'); xlim([6 15]); ylim([100 240]); title('PI Controller'); xlabel('Time [s]'); ylabel('Motor Speed [RPM]'); grid on; legend('Target Speed [RPM]', 'Simulation Motor Speed [RPM]'); When only the P controller is implemented, there is a steady-state error as shown