more updates

This commit is contained in:
Dane Sabo 2025-04-23 16:13:44 -04:00
parent c388340dbb
commit 9db283927a

View File

@ -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)));