We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe050b2 commit 7177cc3Copy full SHA for 7177cc3
gnc/control/controller_estimator.m
@@ -35,9 +35,9 @@
35
end
36
37
%% 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);
+ tau = 0.25;
+ delta = (1 - tau) * d_old + tau * delta;
+ w_dot = (1 - tau) * w_dot_old + tau * (w - w_old) / (time - t);
41
42
%% Kalman filter
43
r = pdyn_params * [delta; 1]; % regression
@@ -55,4 +55,5 @@
55
w_dot_old = w_dot;
56
C_l_delta = coeffs(1);
57
C_l_0 = coeffs(2);
58
+
59
0 commit comments