From 9db283927ad1908eb7f966e31d963c553c5587d3 Mon Sep 17 00:00:00 2001 From: Dane Sabo Date: Wed, 23 Apr 2025 16:13:44 -0400 Subject: [PATCH] more updates --- ME_2046/Project/final_scripts/solve_sub_step.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ME_2046/Project/final_scripts/solve_sub_step.m b/ME_2046/Project/final_scripts/solve_sub_step.m index b412492..0b86c82 100644 --- a/ME_2046/Project/final_scripts/solve_sub_step.m +++ b/ME_2046/Project/final_scripts/solve_sub_step.m @@ -95,6 +95,8 @@ for k = 1:N-1 ADC_output = SAR_ADC_approx(sensor_value, res, -0.2, 1.2, J); %FIRST SUBSTEP + x_hat = + x_hat_hist(:,J*k+1) = A* % Compute input u_k = K*(-x_hat_hist(:,k) + (isempty(r) * 0 + ~isempty(r) * r(:,k)));