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;
11 t12 = t4+t9;
16 t17 = t4-t9;
19 t18 = 1.0/(t20*t20);
21 t22 = 1.0/pow(t11-t19][2.0);
22 t23 = q1*t3*2.0;
23 t24 = q2*t2*2.0;
25 t26 = 1.0/t20;
26 t27 = q1*t2*2.0;
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;
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
Definition: calcH_YAWGPS.c:12
t34
Definition: calcH_YAWGPS.c:33
t10
Definition: calcH_YAWGPS.c:9
t24
Definition: calcH_YAWGPS.c:23
t28
Definition: calcH_YAWGPS.c:27
t9
Definition: calcH_YAWGPS.c:8
t11
Definition: calcH_YAWGPS.c:10
t3
Definition: calcH_YAWGPS.c:2
t19
Definition: calcH_YAWGPS.c:17
t6
Definition: calcH_YAWGPS.c:5
t29
Definition: calcH_YAWGPS.c:28
t21
Definition: calcH_YAWGPS.c:20
t2
Definition: calcH_YAWGPS.c:1
t27
Definition: calcH_YAWGPS.c:26
t33
Definition: calcH_YAWGPS.c:32
t22
Definition: calcH_YAWGPS.c:21
t31
Definition: calcH_YAWGPS.c:30
t15
Definition: calcH_YAWGPS.c:14
Dual< Scalar, N > cos(const Dual< Scalar, N > &a)
Definition: Dual.hpp:286
t16
Definition: calcH_YAWGPS.c:15
t8
Definition: calcH_YAWGPS.c:7
t20
Definition: calcH_YAWGPS.c:18
t26
Definition: calcH_YAWGPS.c:25
t5
Definition: calcH_YAWGPS.c:4
t14
Definition: calcH_YAWGPS.c:13
t35
Definition: calcH_YAWGPS.c:34
t30
Definition: calcH_YAWGPS.c:29
t32
Definition: calcH_YAWGPS.c:31
t18
Definition: calcH_YAWGPS.c:19
t4
Definition: calcH_YAWGPS.c:3
A0[0][0]
Definition: calcH_YAWGPS.c:35
t12
Definition: calcH_YAWGPS.c:11
t17
Definition: calcH_YAWGPS.c:16
t23
Definition: calcH_YAWGPS.c:22
Dual< Scalar, N > sin(const Dual< Scalar, N > &a)
Definition: Dual.hpp:279
t7
Definition: calcH_YAWGPS.c:6
t25
Definition: calcH_YAWGPS.c:24