Algorithm 2 Proposed Kalman-based filter with velocity observation measurement update. |
-
1:
System Initialization.
-
2:
Load Initial Values.
-
3:
Compute State transition matrix.
-
4:
Compute Prior state .
-
5:
Compute Prior error covariance.
-
6:
Integrate quaternion .
-
7:
if (30) is satisfied (GM available) then
-
8:
Calculate the residual (17).
-
9:
if (31) is satisfied (ZARU update available) then
-
10:
Update the residual (21).
-
11:
end if
-
12:
Calculate Kalman gain, Update Error covariance.
-
13:
Calculate state .
-
14:
Update quaternion with (6).
-
15:
end if
-
16:
if (Step is detected) then
-
17:
if (29) is satisfied () then
-
18:
Calculate the residual (24).
-
19:
Calculate Kalman gain, Update Error covariance.
-
20:
Calculate state .
-
21:
Update quaternion with (6).
-
22:
end if
-
23:
end if
-
24:
Goto 3.
|