PX4 Firmware
PX4 Autopilot Software http://px4.io
rotVarVec.c
Go to the documentation of this file.
1
t2
= q0*q0;
2
t3
=
acos
(q0);
3
t4
= -
t2
+1.0;
4
t5
=
t2
-1.0;
5
t6
= 1.0/
t5
;
6
t7
= q1*
t6
*2.0;
7
t8
= 1.0/pow(
t4
,3.0/2.0);
8
t9
= q0*q1*
t3
*
t8
*2.0;
9
t10
=
t7
+
t9
;
10
t11
= 1.0/
sqrt
(
t4
);
11
t12
= q2*
t6
*2.0;
12
t13
= q0*q2*
t3
*
t8
*2.0;
13
t14
=
t12
+
t13
;
14
t15
= q3*
t6
*2.0;
15
t16
= q0*q3*
t3
*
t8
*2.0;
16
t17
=
t15
+
t16
;
17
A0
[0][0] =
t10
*(P_l_0_c_0_r_*
t10
+P_l_1_c_0_r_*
t3
*
t11
*2.0)+
t3
*
t11
*(P_l_0_c_1_r_*
t10
+P_l_1_c_1_r_*
t3
*
t11
*2.0)*2.0;
18
A0
[1][0] =
t14
*(P_l_0_c_0_r_*
t14
+P_l_2_c_0_r_*
t3
*
t11
*2.0)+
t3
*
t11
*(P_l_0_c_2_r_*
t14
+P_l_2_c_2_r_*
t3
*
t11
*2.0)*2.0;
19
A0
[2][0] =
t17
*(P_l_0_c_0_r_*
t17
+P_l_3_c_0_r_*
t3
*
t11
*2.0)+
t3
*
t11
*(P_l_0_c_3_r_*
t17
+P_l_3_c_3_r_*
t3
*
t11
*2.0)*2.0;
matrix::acos
Dual< Scalar, N > acos(const Dual< Scalar, N > &a)
Definition:
Dual.hpp:309
t5
t5
Definition:
rotVarVec.c:4
t4
t4
Definition:
rotVarVec.c:3
t15
t15
Definition:
rotVarVec.c:14
t12
t12
Definition:
rotVarVec.c:11
t17
t17
Definition:
rotVarVec.c:16
t7
t7
Definition:
rotVarVec.c:6
t6
t6
Definition:
rotVarVec.c:5
A0
A0[0][0]
Definition:
rotVarVec.c:17
t3
t3
Definition:
rotVarVec.c:2
t2
t2
Definition:
rotVarVec.c:1
t10
t10
Definition:
rotVarVec.c:9
t8
t8
Definition:
rotVarVec.c:7
t16
t16
Definition:
rotVarVec.c:15
t9
t9
Definition:
rotVarVec.c:8
t13
t13
Definition:
rotVarVec.c:12
t14
t14
Definition:
rotVarVec.c:13
matrix::sqrt
Dual< Scalar, N > sqrt(const Dual< Scalar, N > &a)
Definition:
Dual.hpp:188
t11
t11
Definition:
rotVarVec.c:10
src
lib
ecl
EKF
matlab
scripts
Inertial Nav EKF
rotVarVec.c
Generated by
1.8.13