Repository navigation
Commit 9327606
committed
Fix t21 sliding mode control: correct reversed u_eq sign
The equivalent control u_eq had all three terms negated, which made the
lambda*e_dot term reinforce (2*lambda*x2) instead of cancel, driving the
system away from the sliding surface (s diverged to ~2e5). Also drop the
redundant k_model*r feedforward term already implied by the x1 term in u_eq.1 parent f234b58 commit 9327606
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
0 commit comments