PX4 Firmware
PX4 Autopilot Software http://px4.io
calcMAGD.c File Reference

Go to the source code of this file.

Variables

 t2 = magE*magE
 
 t3 = magN*magN
 
 t4 = t2+t3
 
 t5 = P[16][16]*t2
 
 t6 = P[17][17]*t3
 
 t7 = t2*t2
 
 t8 = R_DECL*t7
 
 t9 = t3*t3
 
 t10 = R_DECL*t9
 
 t11 = R_DECL*t2*t3*2.0
 
 t14 = P[16][17]*magE*magN
 
 t15 = P[17][16]*magE*magN
 
 t12 = t5+t6+t8+t10+t11-t14-t15
 
 t13 = 1.0/t12
 
 t16 = conjugate(magE)
 
 t17 = conjugate(magN)
 
 t18 = t16*t16
 
 t19 = t17*t17
 
 t20 = t18+t19
 
 t21 = 1.0/t20
 
 A0 [0][0] = -t4*t13*(P[0][16]*magE-P[0][17]*magN)
 

Variable Documentation

◆ A0

A0[23][0] = -t4*t13*(P[0][16]*magE-P[0][17]*magN)

Definition at line 21 of file calcMAGD.c.

◆ t10

t10 = R_DECL*t9

Definition at line 9 of file calcMAGD.c.

◆ t11

t11 = R_DECL*t2*t3*2.0

Definition at line 10 of file calcMAGD.c.

◆ t12

t12 = t5+t6+t8+t10+t11-t14-t15

Definition at line 13 of file calcMAGD.c.

◆ t13

t13 = 1.0/t12

Definition at line 14 of file calcMAGD.c.

◆ t14

t14 = P[16][17]*magE*magN

Definition at line 11 of file calcMAGD.c.

◆ t15

t15 = P[17][16]*magE*magN

Definition at line 12 of file calcMAGD.c.

◆ t16

t16 = conjugate(magE)

Definition at line 15 of file calcMAGD.c.

◆ t17

t17 = conjugate(magN)

Definition at line 16 of file calcMAGD.c.

◆ t18

t18 = t16*t16

Definition at line 17 of file calcMAGD.c.

◆ t19

t19 = t17*t17

Definition at line 18 of file calcMAGD.c.

◆ t2

t2 = magE*magE

Definition at line 1 of file calcMAGD.c.

◆ t20

t20 = t18+t19

Definition at line 19 of file calcMAGD.c.

◆ t21

t21 = 1.0/t20

Definition at line 20 of file calcMAGD.c.

◆ t3

t3 = magN*magN

Definition at line 2 of file calcMAGD.c.

◆ t4

t4 = t2+t3

Definition at line 3 of file calcMAGD.c.

◆ t5

t5 = P[16][16]*t2

Definition at line 4 of file calcMAGD.c.

◆ t6

t6 = P[17][17]*t3

Definition at line 5 of file calcMAGD.c.

◆ t7

t7 = t2*t2

Definition at line 6 of file calcMAGD.c.

◆ t8

t8 = R_DECL*t7

Definition at line 7 of file calcMAGD.c.

◆ t9

t9 = t3*t3

Definition at line 8 of file calcMAGD.c.