APM:Libraries
libraries
AP_NavEKF
Models
GimbalEstimatorExample
calcQ.c
Go to the documentation of this file.
1
t3
= q0*q0;
2
t4
= q1*q1;
3
t5
= q2*q2;
4
t6
= q3*q3;
5
t2
=
t3
+
t4
+
t5
+
t6
;
6
t7
=
t2
*
t2
;
7
t11
= q0*q3*2.0;
8
t12
= q1*q2*2.0;
9
t8
=
t11
-
t12
;
10
t13
= q0*q2*2.0;
11
t14
= q1*q3*2.0;
12
t9
=
t13
+
t14
;
13
t10
=
t3
+
t4
-
t5
-
t6
;
14
t15
= q0*q1*2.0;
15
t16
=
t11
+
t12
;
16
t17
= dvxNoise*
t10
*
t16
;
17
t18
=
t3
-
t4
+
t5
-
t6
;
18
t19
= q2*q3*2.0;
19
t20
=
t15
-
t19
;
20
t21
=
t15
+
t19
;
21
t22
=
t3
-
t4
-
t5
+
t6
;
22
t23
=
t13
-
t14
;
23
t24
= dvzNoise*
t9
*
t22
;
24
t25
=
t24
-dvxNoise*
t10
*
t23
-dvyNoise*
t8
*
t21
;
25
t26
= dvyNoise*
t18
*
t21
;
26
t27
=
t26
-dvxNoise*
t16
*
t23
-dvzNoise*
t20
*
t22
;
27
A0
[0][0] = daxNoise*
t7
;
28
A0
[1][1] = dayNoise*
t7
;
29
A0
[2][2] = dazNoise*
t7
;
30
A0
[3][3] = dvxNoise*(
t10
*
t10
)+dvyNoise*(
t8
*
t8
)+dvzNoise*(
t9
*
t9
);
31
A0
[3][4] =
t17
-dvzNoise*
t9
*(
t15
-q2*q3*2.0)-dvyNoise*
t8
*
t18
;
32
A0
[3][5] =
t25
;
33
A0
[4][3] =
t17
-dvyNoise*
t8
*
t18
-dvzNoise*
t9
*
t20
;
34
A0
[4][4] = dvxNoise*(
t16
*
t16
)+dvyNoise*(
t18
*
t18
)+dvzNoise*(
t20
*
t20
);
35
A0
[4][5] =
t27
;
36
A0
[5][3] =
t25
;
37
A0
[5][4] =
t27
;
38
A0
[5][5] = dvxNoise*(
t23
*
t23
)+dvyNoise*(
t21
*
t21
)+dvzNoise*(
t22
*
t22
);
t17
t17
Definition:
calcQ.c:16
t7
t7
Definition:
calcQ.c:6
t26
t26
Definition:
calcQ.c:25
t25
t25
Definition:
calcQ.c:24
t13
t13
Definition:
calcQ.c:10
t22
t22
Definition:
calcQ.c:21
t16
t16
Definition:
calcQ.c:15
t4
t4
Definition:
calcQ.c:2
t5
t5
Definition:
calcQ.c:3
A0
A0[0][0]
Definition:
calcQ.c:27
t8
t8
Definition:
calcQ.c:9
t19
t19
Definition:
calcQ.c:18
t21
t21
Definition:
calcQ.c:20
t14
t14
Definition:
calcQ.c:11
t18
t18
Definition:
calcQ.c:17
t27
t27
Definition:
calcQ.c:26
t20
t20
Definition:
calcQ.c:19
t23
t23
Definition:
calcQ.c:22
t15
t15
Definition:
calcQ.c:14
t3
t3
Definition:
calcQ.c:1
t11
t11
Definition:
calcQ.c:7
t6
t6
Definition:
calcQ.c:4
t2
t2
Definition:
calcQ.c:5
t9
t9
Definition:
calcQ.c:12
t12
t12
Definition:
calcQ.c:8
t24
t24
Definition:
calcQ.c:23
t10
t10
Definition:
calcQ.c:13
Generated on Sun Jun 17 2018 14:18:50 for APM:Libraries by
1.8.13