more updates
This commit is contained in:
parent
c388340dbb
commit
9db283927a
@ -95,6 +95,8 @@ for k = 1:N-1
|
|||||||
ADC_output = SAR_ADC_approx(sensor_value, res, -0.2, 1.2, J);
|
ADC_output = SAR_ADC_approx(sensor_value, res, -0.2, 1.2, J);
|
||||||
|
|
||||||
%FIRST SUBSTEP
|
%FIRST SUBSTEP
|
||||||
|
x_hat =
|
||||||
|
x_hat_hist(:,J*k+1) = A*
|
||||||
|
|
||||||
% Compute input
|
% Compute input
|
||||||
u_k = K*(-x_hat_hist(:,k) + (isempty(r) * 0 + ~isempty(r) * r(:,k)));
|
u_k = K*(-x_hat_hist(:,k) + (isempty(r) * 0 + ~isempty(r) * r(:,k)));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user