# Hello guys,

i was looking for a software to make the calibration of my data and i found the magmaster develloped by YURI, i was looking to the open source code and i don't understand some stuff, i don't know if someone did already understood the code of the magmaster,

I'd like to know how did he done to have the rotation matrix:

because i saw that the rotation matrix on his code is in the form of:

// Rotation matrix--------------------------------------------------------------------------------------            // rotation_matrix[a][b], a - number of the rows, b - number of the columbs

rotation_matrix = new double;            rotation_matrix = new double;            rotation_matrix = new double;

//Deviding by main value, for example for X axis - deviding by X coordinate, for Y axis by Y coordinate, for Z axis by Z cordinate

rotation_matrix = Xvector / Xvector; rotation_matrix = Yvector / Yvector; rotation_matrix = Zvector / Zvector;  rotation_matrix = Xvector / Xvector; rotation_matrix = Yvector / Yvector; rotation_matrix = Zvector / Zvector;            rotation_matrix = Xvector / Xvector; rotation_matrix = Yvector / Yvector; rotation_matrix = Zvector / Zvector;            //Matrix inversion            rotation_matrix = InvertMatrix(rotation_matrix);

I know that in the rotation matrix we find cos and sin but in his rotation matrix he works with the coordonate of vector so i don't understand.

can someone explain me please.

sorry for my bad english.

Thank you in advance

Views: 58

## Top Discussions

1 ### Parafoil Return to Point Descent Vehicle

2 ### Off Brand Ardupilot

3 ### How to program 6 flying modes with JETI radios

4 ### Telemetry and HD video over 4G

5 ### Will AHRS_ORIENTATION=8 for Arducopter 3.2.1 on APM 2.5 using a traditional Heli

6 ### UAV surveying and mapping becomes a new trend

7 ### Swashplateless MAV mode for Arducopter

8 ### Heavy Duty Compact Pan Tilt Unit w/RX and antenna \$325 + Shipping

9 ### Need Help for CC3D controller

10 ## Groups

3164 members

1468 members

630 members

280 members

• ### PIXHAWK

1123 members

A list of all T3 contests is here. The current round, the Vertical Horizontal one, is here