You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This C program is a work-in-progress of a translated C code from MATLAB. It contains a header file that provides the functions for matrix calculations. It also contains functions that convert degrees to radians and radians to degrees. The code is able to create a 3-2-1 Euler rotation matrix that can be used to express a position vector expressed in body frame coordinates to the position vector expressed in inertial frame coordinates. The code recreates only some of the outputs from the MATLAB program, as it is unfinished, but is able to read off the same statements using printf().
Libraries/Header File
The code uses a header file called MatLib. This header file contains several functions in which recreates functions from MATLAB that can do matrix calculations similarly to MATLAB. This header file must be included in the same folder as the project folder. There is no need to add any additional libraries.
Softwares
The MATLAB code that was recreated was using the MATLAB (Ideally R2020b or later) and MATLAB Aerospace Toolbox. The C Program software that was used to recreate the program but in C was Codeblocks.