Skip to content

Commit 7177cc3

Browse files
committed
fixed variable name consistency
1 parent fe050b2 commit 7177cc3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

gnc/control/controller_estimator.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
end
3636

3737
%% lowpass command and measurement
38-
alpha = 0.25;
39-
delta = (1-alpha) * d_old + alpha * delta;
40-
w_dot = (1-alpha) * w_dot_old + alpha * (w - w_old) / (time - t);
38+
tau = 0.25;
39+
delta = (1 - tau) * d_old + tau * delta;
40+
w_dot = (1 - tau) * w_dot_old + tau * (w - w_old) / (time - t);
4141

4242
%% Kalman filter
4343
r = pdyn_params * [delta; 1]; % regression
@@ -55,4 +55,5 @@
5555
w_dot_old = w_dot;
5656
C_l_delta = coeffs(1);
5757
C_l_0 = coeffs(2);
58+
5859
end

0 commit comments

Comments
 (0)