Tudat/Astrodynamics/Propagators/rotationalMotionQuaternionsStateDerivative.cpp
//! Function to obtain the time derivative of quaternions of body-fixed to inertial frame
Function to obtain the time derivative of quaternions of body-fixed to inertial frame
Function to obtain the time derivative of quaternions of body - fixed to inertial frame
Eigen::Vector4d calculateQuaternionDerivative( const Eigen::Vector4d& currentQuaternionsToBaseFrame,
                                               const Eigen::Vector3d& angularVelocityVectorInBodyFixedFrame )
{
    return getQuaterionToQuaternionRateMatrix( angularVelocityVectorInBodyFixedFrame ) * currentQuaternionsToBaseFrame;
}
Eigen :: Vector4d calculateQuaternionDerivative ( const Eigen :: Vector4d & currentQuaternionsToBaseFrame , const Eigen :: Vector3d & angularVelocityVectorInBodyFixedFrame ) { return getQuaterionToQuaternionRateMatrix ( angularVelocityVectorInBodyFixedFrame ) * currentQuaternionsToBaseFrame ; }
Function to obtain the time derivative of quaternions of body-fixed to inertial frame
Function to obtain the time derivative of quaternions of body - fixed to inertial frame