PX4 Firmware
PX4 Autopilot Software http://px4.io
Q_airdata.c
Go to the documentation of this file.
1
float
t3
= ve-vwe;
2
float
t4
= q0*q0;
3
float
t5
= q1*q1;
4
float
t6
= q2*q2;
5
float
t7
= q3*q3;
6
float
t8
= vd-vwd;
7
float
t9
= q0*q1*2.0f;
8
float
t10
= q2*q3*2.0f;
9
float
t11
= vn-vwn;
10
float
t13
= q0*q2*2.0f;
11
float
t14
= q1*q3*2.0f;
12
float
t18
=
t4
-
t5
-
t6
+
t7
;
13
float
t19
=
t8
*
t18
;
14
float
t20
=
t9
-
t10
;
15
float
t21
=
t3
*
t20
;
16
float
t22
=
t13
+
t14
;
17
float
t23
=
t11
*
t22
;
18
float
t2
=
t19
-
t21
+
t23
;
19
float
t15
= q0*q3*2.0f;
20
float
t16
= q1*q2*2.0f;
21
float
t24
=
t9
+
t10
;
22
float
t25
=
t4
-
t5
+
t6
-
t7
;
23
float
t26
=
t3
*
t25
;
24
float
t27
=
t8
*
t24
;
25
float
t28
=
t15
-
t16
;
26
float
t29
=
t11
*
t28
;
27
float
t12
=
t26
+
t27
-
t29
;
28
float
t30
=
t13
-
t14
;
29
float
t31
=
t4
+
t5
-
t6
-
t7
;
30
float
t32
=
t11
*
t31
;
31
float
t33
=
t8
*
t30
;
32
float
t34
=
t15
+
t16
;
33
float
t35
=
t3
*
t34
;
34
float
t17
=
t32
-
t33
+
t35
;
35
float
t44
=
t2
*
t18
*2.0f;
36
float
t45
=
t12
*
t24
*2.0f;
37
float
t46
=
t17
*
t30
*2.0f;
38
float
t36
=
t44
+
t45
-
t46
;
39
float
t37
=
t2
*
t2
;
40
float
t38
=
t12
*
t12
;
41
float
t39
=
t17
*
t17
;
42
float
t40
=
t37
+
t38
+
t39
;
43
float
t41
= 1.0f/
t40
;
44
float
t48
=
t12
*
t25
*2.0f;
45
float
t49
=
t2
*
t20
*2.0f;
46
float
t50
=
t17
*
t34
*2.0f;
47
float
t42
=
t48
-
t49
+
t50
;
48
float
t52
=
t17
*
t31
*2.0f;
49
float
t53
=
t2
*
t22
*2.0f;
50
float
t54
=
t12
*
t28
*2.0f;
51
float
t43
=
t52
+
t53
-
t54
;
52
float
t47
=
t36
*
t36
;
53
float
t51
=
t42
*
t42
;
54
float
t55
=
t43
*
t43
;
55
float
t57
= 1.0f/(
t17
*
t17
);
56
float
t58
= 1.0f/
t17
;
57
float
t63
=
t18
*
t58
;
58
float
t64
=
t2
*
t30
*
t57
;
59
float
t56
=
t63
+
t64
;
60
float
t66
=
t22
*
t58
;
61
float
t67
=
t2
*
t31
*
t57
;
62
float
t59
=
t66
-
t67
;
63
float
t60
=
t37
*
t57
;
64
float
t61
=
t60
+1.0f;
65
float
t62
= 1.0f/(
t61
*
t61
);
66
float
t65
=
t56
*
t56
;
67
float
t68
=
t59
*
t59
;
68
float
t70
=
t20
*
t58
;
69
float
t71
=
t2
*
t34
*
t57
;
70
float
t69
=
t70
+
t71
;
71
float
t72
=
t69
*
t69
;
72
float
t78
=
t25
*
t58
;
73
float
t79
=
t12
*
t34
*
t57
;
74
float
t73
=
t78
-
t79
;
75
float
t81
=
t28
*
t58
;
76
float
t82
=
t12
*
t31
*
t57
;
77
float
t74
=
t81
+
t82
;
78
float
t75
=
t38
*
t57
;
79
float
t76
=
t75
+1.0f;
80
float
t77
= 1.0f/(
t76
*
t76
);
81
float
t80
=
t73
*
t73
;
82
float
t83
=
t74
*
t74
;
83
float
t85
=
t24
*
t58
;
84
float
t86
=
t12
*
t30
*
t57
;
85
float
t84
=
t85
+
t86
;
86
float
t87
=
t84
*
t84
;
87
float
tas_var
=
t41
*
t47
*vd_var*0.25f+
t41
*
t51
*ve_var*0.25f+
t41
*
t55
*vn_var*0.25f+
t41
*
t47
*vwd_var*0.25f+
t41
*
t51
*vwe_var*0.25f+
t41
*
t55
*vwn_var*0.25f;
88
float
aoa_var
=
t62
*
t65
*vd_var+
t62
*
t72
*ve_var+
t62
*
t68
*vn_var+
t62
*
t65
*vwd_var+
t62
*
t72
*vwe_var+
t62
*
t68
*vwn_var;
89
float
aos_var
=
t77
*
t87
*vd_var+
t77
*
t80
*ve_var+
t77
*
t83
*vn_var+
t77
*
t87
*vwd_var+
t77
*
t80
*vwe_var+
t77
*
t83
*vwn_var;
t33
float t33
Definition:
Q_airdata.c:31
t3
float t3
Definition:
Q_airdata.c:1
t59
float t59
Definition:
Q_airdata.c:62
t26
float t26
Definition:
Q_airdata.c:23
t22
float t22
Definition:
Q_airdata.c:16
t82
float t82
Definition:
Q_airdata.c:76
t86
float t86
Definition:
Q_airdata.c:84
t11
float t11
Definition:
Q_airdata.c:9
t30
float t30
Definition:
Q_airdata.c:28
t70
float t70
Definition:
Q_airdata.c:68
t40
float t40
Definition:
Q_airdata.c:42
t24
float t24
Definition:
Q_airdata.c:21
t72
float t72
Definition:
Q_airdata.c:71
t8
float t8
Definition:
Q_airdata.c:6
t23
float t23
Definition:
Q_airdata.c:17
t73
float t73
Definition:
Q_airdata.c:74
t87
float t87
Definition:
Q_airdata.c:86
t17
float t17
Definition:
Q_airdata.c:34
t39
float t39
Definition:
Q_airdata.c:41
t78
float t78
Definition:
Q_airdata.c:72
t81
float t81
Definition:
Q_airdata.c:75
t31
float t31
Definition:
Q_airdata.c:29
t74
float t74
Definition:
Q_airdata.c:77
t38
float t38
Definition:
Q_airdata.c:40
t57
float t57
Definition:
Q_airdata.c:55
t67
float t67
Definition:
Q_airdata.c:61
t28
float t28
Definition:
Q_airdata.c:25
t5
float t5
Definition:
Q_airdata.c:3
t84
float t84
Definition:
Q_airdata.c:85
t61
float t61
Definition:
Q_airdata.c:64
t43
float t43
Definition:
Q_airdata.c:51
t14
float t14
Definition:
Q_airdata.c:11
t71
float t71
Definition:
Q_airdata.c:69
t4
float t4
Definition:
Q_airdata.c:2
t50
float t50
Definition:
Q_airdata.c:46
t68
float t68
Definition:
Q_airdata.c:67
aoa_var
float aoa_var
Definition:
Q_airdata.c:88
t49
float t49
Definition:
Q_airdata.c:45
t79
float t79
Definition:
Q_airdata.c:73
t16
float t16
Definition:
Q_airdata.c:20
t27
float t27
Definition:
Q_airdata.c:24
t77
float t77
Definition:
Q_airdata.c:80
t52
float t52
Definition:
Q_airdata.c:48
t37
float t37
Definition:
Q_airdata.c:39
t75
float t75
Definition:
Q_airdata.c:78
t12
float t12
Definition:
Q_airdata.c:27
t83
float t83
Definition:
Q_airdata.c:82
t65
float t65
Definition:
Q_airdata.c:66
t41
float t41
Definition:
Q_airdata.c:43
t34
float t34
Definition:
Q_airdata.c:32
t51
float t51
Definition:
Q_airdata.c:53
t44
float t44
Definition:
Q_airdata.c:35
t7
float t7
Definition:
Q_airdata.c:5
t21
float t21
Definition:
Q_airdata.c:15
t9
float t9
Definition:
Q_airdata.c:7
t53
float t53
Definition:
Q_airdata.c:49
t76
float t76
Definition:
Q_airdata.c:79
t36
float t36
Definition:
Q_airdata.c:38
tas_var
float tas_var
Definition:
Q_airdata.c:87
t18
float t18
Definition:
Q_airdata.c:12
t15
float t15
Definition:
Q_airdata.c:19
t29
float t29
Definition:
Q_airdata.c:26
t85
float t85
Definition:
Q_airdata.c:83
t60
float t60
Definition:
Q_airdata.c:63
t64
float t64
Definition:
Q_airdata.c:58
t32
float t32
Definition:
Q_airdata.c:30
t46
float t46
Definition:
Q_airdata.c:37
t54
float t54
Definition:
Q_airdata.c:50
t25
float t25
Definition:
Q_airdata.c:22
t69
float t69
Definition:
Q_airdata.c:70
t62
float t62
Definition:
Q_airdata.c:65
t48
float t48
Definition:
Q_airdata.c:44
t42
float t42
Definition:
Q_airdata.c:47
t56
float t56
Definition:
Q_airdata.c:59
t45
float t45
Definition:
Q_airdata.c:36
t13
float t13
Definition:
Q_airdata.c:10
aos_var
float aos_var
Definition:
Q_airdata.c:89
t58
float t58
Definition:
Q_airdata.c:56
t63
float t63
Definition:
Q_airdata.c:57
t35
float t35
Definition:
Q_airdata.c:33
t10
float t10
Definition:
Q_airdata.c:8
t66
float t66
Definition:
Q_airdata.c:60
t80
float t80
Definition:
Q_airdata.c:81
t20
float t20
Definition:
Q_airdata.c:14
t19
float t19
Definition:
Q_airdata.c:13
t6
float t6
Definition:
Q_airdata.c:4
t55
float t55
Definition:
Q_airdata.c:54
t2
float t2
Definition:
Q_airdata.c:18
t47
float t47
Definition:
Q_airdata.c:52
src
lib
ecl
EKF
matlab
scripts
Inertial Nav EKF
Q_airdata.c
Generated by
1.8.13