PX4 Firmware
PX4 Autopilot Software http://px4.io
calcH_YAWGPS.c
Go to the documentation of this file.
1
t2
=
sin
(ant_yaw);
2
t3
=
cos
(ant_yaw);
3
t4
= q0*q3*2.0;
4
t5
= q0*q0;
5
t6
= q1*q1;
6
t7
= q2*q2;
7
t8
= q3*q3;
8
t9
= q1*q2*2.0;
9
t10
=
t5
+
t6
-
t7
-
t8
;
10
t11
=
t3
*
t10
;
11
t12
=
t4
+
t9
;
12
t13
=
t3
*
t12
;
13
t14
=
t5
-
t6
+
t7
-
t8
;
14
t15
=
t2
*
t14
;
15
t16
=
t13
+
t15
;
16
t17
=
t4
-
t9
;
17
t19
=
t2
*
t17
;
18
t20
=
t11
-
t19
;
19
t18
= 1.0/(
t20
*
t20
);
20
t21
=
t16
*
t16
;
21
t22
= 1.0/pow(
t11
-
t19
][2.0);
22
t23
= q1*
t3
*2.0;
23
t24
= q2*
t2
*2.0;
24
t25
=
t23
+
t24
;
25
t26
= 1.0/
t20
;
26
t27
= q1*
t2
*2.0;
27
t28
=
t21
*
t22
;
28
t29
=
t28
+1.0;
29
t30
= 1.0/
t29
;
30
t31
= q0*
t3
*2.0;
31
t32
=
t31
-q3*
t2
*2.0;
32
t33
= q3*
t3
*2.0;
33
t34
= q0*
t2
*2.0;
34
t35
=
t33
+
t34
;
35
A0
[0][0] = (
t35
/(
t11
-
t2
*(
t4
-q1*q2*2.0))-
t16
*
t18
*
t32
)/(
t18
*
t21
+1.0);
36
A0
[0][1] = -
t30
*(
t26
*(
t27
-q2*
t3
*2.0)+
t16
*
t22
*
t25
);
37
A0
[0][2] =
t30
*(
t25
*
t26
-
t16
*
t22
*(
t27
-q2*
t3
*2.0));
38
A0
[0][3] =
t30
*(
t26
*
t32
+
t16
*
t22
*
t35
);
t13
t13
Definition:
calcH_YAWGPS.c:12
t34
t34
Definition:
calcH_YAWGPS.c:33
t10
t10
Definition:
calcH_YAWGPS.c:9
t24
t24
Definition:
calcH_YAWGPS.c:23
t28
t28
Definition:
calcH_YAWGPS.c:27
t9
t9
Definition:
calcH_YAWGPS.c:8
t11
t11
Definition:
calcH_YAWGPS.c:10
t3
t3
Definition:
calcH_YAWGPS.c:2
t19
t19
Definition:
calcH_YAWGPS.c:17
t6
t6
Definition:
calcH_YAWGPS.c:5
t29
t29
Definition:
calcH_YAWGPS.c:28
t21
t21
Definition:
calcH_YAWGPS.c:20
t2
t2
Definition:
calcH_YAWGPS.c:1
t27
t27
Definition:
calcH_YAWGPS.c:26
t33
t33
Definition:
calcH_YAWGPS.c:32
t22
t22
Definition:
calcH_YAWGPS.c:21
t31
t31
Definition:
calcH_YAWGPS.c:30
t15
t15
Definition:
calcH_YAWGPS.c:14
matrix::cos
Dual< Scalar, N > cos(const Dual< Scalar, N > &a)
Definition:
Dual.hpp:286
t16
t16
Definition:
calcH_YAWGPS.c:15
t8
t8
Definition:
calcH_YAWGPS.c:7
t20
t20
Definition:
calcH_YAWGPS.c:18
t26
t26
Definition:
calcH_YAWGPS.c:25
t5
t5
Definition:
calcH_YAWGPS.c:4
t14
t14
Definition:
calcH_YAWGPS.c:13
t35
t35
Definition:
calcH_YAWGPS.c:34
t30
t30
Definition:
calcH_YAWGPS.c:29
t32
t32
Definition:
calcH_YAWGPS.c:31
t18
t18
Definition:
calcH_YAWGPS.c:19
t4
t4
Definition:
calcH_YAWGPS.c:3
A0
A0[0][0]
Definition:
calcH_YAWGPS.c:35
t12
t12
Definition:
calcH_YAWGPS.c:11
t17
t17
Definition:
calcH_YAWGPS.c:16
t23
t23
Definition:
calcH_YAWGPS.c:22
matrix::sin
Dual< Scalar, N > sin(const Dual< Scalar, N > &a)
Definition:
Dual.hpp:279
t7
t7
Definition:
calcH_YAWGPS.c:6
t25
t25
Definition:
calcH_YAWGPS.c:24
src
lib
ecl
EKF
matlab
scripts
Inertial Nav EKF
calcH_YAWGPS.c
Generated by
1.8.13