.c
The files are all shown as follows, which q2mat
means that the attitude quaternion is converted to a direction cosine matrix, which q2att
means that the attitude quaternion is converted into Euler angles, which q2rv
means that the attitude quaternion is converted into an equivalent rotation vector, which qq2phi
means that the calculation of two quaternions corresponds to The misalignment angle qcombine
is one of the functions, skew
which means to calculate the antisymmetric matrix of a vector, which qmulq
means the multiplication of the quaternion, which is the function of dv2atti
the two-vector attitude determination, which qupdt
is the function of updating the quaternion by using the rotation vector in the attitude update of the inertial navigation, and the rest For functions, see Function Remarks and Symbols.
/*------------------------------------------------------------------------------
* attconvert : attitude transform functions
*
* Copyright (C) 2022-2023 by xxx, All rights reserved.
* version : 1.0
* history : 2022/08/18 1.0 attconvert ver.1.0.0
-----------------------------------------------------------------------------*/
#include <stdarg.h>