microcontroller_pid
microcontroller_pid
clear
close all
%%% Now we introduce controller for the system. In this program we have Linear
system: x(k+1)=3x(k)+u(k). We are designing P, PI, and PID controllers for this
system.
%%Desired goal/poin
xd=4;
%% Gain parameters
kp=3;ki=1;kd=0.01;