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;
float t33
Definition: Q_airdata.c:31
float t3
Definition: Q_airdata.c:1
float t59
Definition: Q_airdata.c:62
float t26
Definition: Q_airdata.c:23
float t22
Definition: Q_airdata.c:16
float t82
Definition: Q_airdata.c:76
float t86
Definition: Q_airdata.c:84
float t11
Definition: Q_airdata.c:9
float t30
Definition: Q_airdata.c:28
float t70
Definition: Q_airdata.c:68
float t40
Definition: Q_airdata.c:42
float t24
Definition: Q_airdata.c:21
float t72
Definition: Q_airdata.c:71
float t8
Definition: Q_airdata.c:6
float t23
Definition: Q_airdata.c:17
float t73
Definition: Q_airdata.c:74
float t87
Definition: Q_airdata.c:86
float t17
Definition: Q_airdata.c:34
float t39
Definition: Q_airdata.c:41
float t78
Definition: Q_airdata.c:72
float t81
Definition: Q_airdata.c:75
float t31
Definition: Q_airdata.c:29
float t74
Definition: Q_airdata.c:77
float t38
Definition: Q_airdata.c:40
float t57
Definition: Q_airdata.c:55
float t67
Definition: Q_airdata.c:61
float t28
Definition: Q_airdata.c:25
float t5
Definition: Q_airdata.c:3
float t84
Definition: Q_airdata.c:85
float t61
Definition: Q_airdata.c:64
float t43
Definition: Q_airdata.c:51
float t14
Definition: Q_airdata.c:11
float t71
Definition: Q_airdata.c:69
float t4
Definition: Q_airdata.c:2
float t50
Definition: Q_airdata.c:46
float t68
Definition: Q_airdata.c:67
float aoa_var
Definition: Q_airdata.c:88
float t49
Definition: Q_airdata.c:45
float t79
Definition: Q_airdata.c:73
float t16
Definition: Q_airdata.c:20
float t27
Definition: Q_airdata.c:24
float t77
Definition: Q_airdata.c:80
float t52
Definition: Q_airdata.c:48
float t37
Definition: Q_airdata.c:39
float t75
Definition: Q_airdata.c:78
float t12
Definition: Q_airdata.c:27
float t83
Definition: Q_airdata.c:82
float t65
Definition: Q_airdata.c:66
float t41
Definition: Q_airdata.c:43
float t34
Definition: Q_airdata.c:32
float t51
Definition: Q_airdata.c:53
float t44
Definition: Q_airdata.c:35
float t7
Definition: Q_airdata.c:5
float t21
Definition: Q_airdata.c:15
float t9
Definition: Q_airdata.c:7
float t53
Definition: Q_airdata.c:49
float t76
Definition: Q_airdata.c:79
float t36
Definition: Q_airdata.c:38
float tas_var
Definition: Q_airdata.c:87
float t18
Definition: Q_airdata.c:12
float t15
Definition: Q_airdata.c:19
float t29
Definition: Q_airdata.c:26
float t85
Definition: Q_airdata.c:83
float t60
Definition: Q_airdata.c:63
float t64
Definition: Q_airdata.c:58
float t32
Definition: Q_airdata.c:30
float t46
Definition: Q_airdata.c:37
float t54
Definition: Q_airdata.c:50
float t25
Definition: Q_airdata.c:22
float t69
Definition: Q_airdata.c:70
float t62
Definition: Q_airdata.c:65
float t48
Definition: Q_airdata.c:44
float t42
Definition: Q_airdata.c:47
float t56
Definition: Q_airdata.c:59
float t45
Definition: Q_airdata.c:36
float t13
Definition: Q_airdata.c:10
float aos_var
Definition: Q_airdata.c:89
float t58
Definition: Q_airdata.c:56
float t63
Definition: Q_airdata.c:57
float t35
Definition: Q_airdata.c:33
float t10
Definition: Q_airdata.c:8
float t66
Definition: Q_airdata.c:60
float t80
Definition: Q_airdata.c:81
float t20
Definition: Q_airdata.c:14
float t19
Definition: Q_airdata.c:13
float t6
Definition: Q_airdata.c:4
float t55
Definition: Q_airdata.c:54
float t2
Definition: Q_airdata.c:18
float t47
Definition: Q_airdata.c:52