#include <Attitude.h>
The Attitude class allows for the attitude to be stored, retrieved, history logged,
Definition at line 51 of file Attitude.h.
Public Member Functions | |
Attitude () | |
virtual | ~Attitude () |
void | SetStateObject (const AttitudeState &_newAttitudeState) |
AttitudeState | GetStateObject () const |
void | SetControlTorques (const Vector &_ControlTorques) |
Vector | GetControlTorques () const |
Vector | GetTorques () const |
void | SetDynamicsEq (odeFunctor _AttDynEqFuncPtr) |
odeFunctor | GetDynamicsEq () const |
void | SetStateConversion (IntegratedAttitudeStateConversionFunction _ConversionFunction) |
Set the Attitude state conversion function. | |
IntegratedAttitudeStateConversionFunction | GetStateConversion () const |
Get the Attitude state conversion function. | |
Matrix | Propagate (const vector< ssfTime > &_time) |
void | SetPropagator (Propagator *_pPropagator) |
Sets the propagator used for integrating the attitude. | |
bool | IsIntegrateable () |
Returns whether the attitude is integrateable or not. Determined if there is a dynamics equation present. | |
void | SetParameters (const Matrix &_Parameters) |
Matrix | GetParameters () const |
void | SetEnvironment (Environment *_pNewEnvironment) |
Assign the environment to be used when evaluating attitude disturbance torques. The environment contains the list of torque disturbance functions, environment parameters, and central body definition of the spacecraft. This functions sets the pointer (reference) to the environment object. This environment should be the same as the orbit's environment if there is an orbit being modeled. | |
Environment * | GetEnvironment () const |
Return the reference to the environment object of the attitude. This function is useful for returning the current environment that is being used by the attitude. It can be used to inspect and set the environment variables (such as adding torque disturbance functions, setting the central body, or changing environment parameters), or to use the reference for setting another environment (the coupled orbit, or another spacecraft's orbit and attitude that are in the same environment as this spacecraft. | |
ObjectFunctor< Environment > | GetEnvironmentForcesFunctor () |
Returns the function reference (functor) to the function that evaluates the environment disturbance torques. This function is used to get the reference, or function pointer, to the environmental disturbance torque function. The reference may then be evalauated (. | |
AttitudeHistory & | GetHistoryObject () |
Retrieve a reference to the attitude's state history. By returning a reference, no copy is made, which is more efficient than copying a large matrix of states. The user can then inspect the history (. | |
Private Attributes | |
AttitudeState | m_AttitudeState |
Vector | m_ControlTorques |
odeFunctor | m_AttDynEqFuncPtr |
IntegratedAttitudeStateConversionFunction | m_AttitudeStateConversionFunction |
Propagator * | m_pPropagator |
bool | m_Integrateable |
Is the attitude integrateable? (true if it is, false if is not). | |
Matrix | m_Parameters |
Environment * | m_pEnvironment |
Pointer to the Environment object. | |
ObjectFunctor< Environment > | m_EnvironmentForcesFunctor |
Pointer to the Environment forces function. | |
AttitudeHistory | m_AttitudeHistory |
This private data member is the stored attitude state, including [time, rotation, angular velocity]. |
|
Default Constructor Definition at line 19 of file Attitude.cpp. |
|
Default Deconstructor Definition at line 24 of file Attitude.cpp. |
|
Definition at line 34 of file Attitude.cpp. |
|
Definition at line 39 of file Attitude.cpp. |
|
Set the control torques
Definition at line 73 of file Attitude.cpp. |
|
Returns the current set of control torques
Definition at line 79 of file Attitude.cpp. |
|
Return total sum of torques applied to the rigid body
|
|
Set the Dynamics Equation right-hand side file. Also makes the attitude integrateable.
Definition at line 56 of file Attitude.cpp. |
|
Return the pointer to the Dynamics Equation right-hand side
Definition at line 51 of file Attitude.cpp. |
|
Set the Attitude state conversion function.
Definition at line 63 of file Attitude.cpp. |
|
Get the Attitude state conversion function.
Definition at line 68 of file Attitude.cpp. |
|
Propagates the rigid body attitude forward in time.
Definition at line 94 of file Attitude.cpp. |
|
Sets the propagator used for integrating the attitude.
Definition at line 44 of file Attitude.cpp. |
|
Returns whether the attitude is integrateable or not. Determined if there is a dynamics equation present.
Definition at line 102 of file Attitude.cpp. |
|
Definition at line 84 of file Attitude.cpp. |
|
Definition at line 89 of file Attitude.cpp. |
|
Assign the environment to be used when evaluating attitude disturbance torques. The environment contains the list of torque disturbance functions, environment parameters, and central body definition of the spacecraft. This functions sets the pointer (reference) to the environment object. This environment should be the same as the orbit's environment if there is an orbit being modeled.
Definition at line 110 of file Attitude.cpp. |
|
Return the reference to the environment object of the attitude. This function is useful for returning the current environment that is being used by the attitude. It can be used to inspect and set the environment variables (such as adding torque disturbance functions, setting the central body, or changing environment parameters), or to use the reference for setting another environment (the coupled orbit, or another spacecraft's orbit and attitude that are in the same environment as this spacecraft.
Definition at line 116 of file Attitude.cpp. |
|
Returns the function reference (functor) to the function that evaluates the environment disturbance torques. This function is used to get the reference, or function pointer, to the environmental disturbance torque function. The reference may then be evalauated (.
Definition at line 121 of file Attitude.cpp. |
|
Retrieve a reference to the attitude's state history. By returning a reference, no copy is made, which is more efficient than copying a large matrix of states. The user can then inspect the history (.
Definition at line 129 of file Attitude.cpp. |
|
Definition at line 64 of file Attitude.h. |
|
3-element vector of current control torques applied about body primary axes [N-m] Definition at line 87 of file Attitude.h. |
|
pointer to the right-hand side dynamics equation Definition at line 134 of file Attitude.h. |
|
Conversion function for converting from the integrated states to a Rotation and Angular Velocity. Definition at line 137 of file Attitude.h. |
|
Pointer to the propagator Definition at line 140 of file Attitude.h. |
|
Is the attitude integrateable? (true if it is, false if is not).
Definition at line 143 of file Attitude.h. |
|
Definition at line 153 of file Attitude.h. |
|
Pointer to the Environment object.
Definition at line 187 of file Attitude.h. |
|
Pointer to the Environment forces function.
Definition at line 189 of file Attitude.h. |
|
This private data member is the stored attitude state, including [time, rotation, angular velocity].
Definition at line 203 of file Attitude.h. |