Skip to content

Commit 46b58db

Browse files
markusgftGiftthaler Markus (CR/PJ-AI-R31)
authored andcommitted
fixed two bugs in state observer and disturbance observer implementations, made minimal example for disturbance observer work.
1 parent ce8974a commit 46b58db

File tree

2 files changed

+96
-0
lines changed

2 files changed

+96
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
2+
experiment_settings
3+
{
4+
dt 0.001
5+
nSteps 6000
6+
w_n 20 ; oscillator resonance frequency
7+
8+
; parameterize the disturbance (frequency increasing over time)
9+
disturbance_frequency 1.0;
10+
disturbance_max 10.0;
11+
12+
; we send a feedforward signal with following frequency and magnitude
13+
uff_frequency 1.0
14+
uff_magnitude
15+
{
16+
(0,0) 500.0
17+
}
18+
}
19+
20+
x0
21+
{
22+
(0,0) 1.0
23+
(1,0) 0.0
24+
}
25+
26+
kalman_weights
27+
{
28+
Qaug
29+
{
30+
scaling 1.0
31+
(0,0) 0.001
32+
(1,1) 0.01
33+
(2,2) 10.0 ; directly reflects the expected disturbance variance
34+
}
35+
R
36+
{
37+
scaling 0.001
38+
(0,0) 0.1
39+
(1,1) 1
40+
}
41+
}
42+
43+
process_noise
44+
{
45+
process_var
46+
{
47+
scaling 0.01
48+
(0,0) 0.01
49+
(1,1) 0.1
50+
}
51+
}
52+
53+
measurement_noise
54+
{
55+
measurement_var
56+
{
57+
scaling 1
58+
(0,0) 0.001
59+
(1,1) 0.01
60+
}
61+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
kalman_weights
2+
{
3+
Q
4+
{
5+
scaling 0.01
6+
(0,0) 0.1
7+
(1,1) 1.0
8+
}
9+
R
10+
{
11+
scaling 1.0
12+
(0,0) 0.1
13+
(1,1) 1.0
14+
}
15+
}
16+
17+
process_noise
18+
{
19+
process_var
20+
{
21+
scaling 0.1
22+
(0,0) 0.05
23+
(1,1) 1.0
24+
}
25+
}
26+
27+
measurement_noise
28+
{
29+
measurement_var
30+
{
31+
scaling 1.0
32+
(0,0) 0.05
33+
(1,1) 1.0
34+
}
35+
}

0 commit comments

Comments
 (0)