Module: ExtPulsedTorque
Executive Summary
Module: dynamicEffector Class used to provide a direct pulsed external torque on body
The module
PDF Description
contains further information on this module’s function,
how to run it, as well as testing.
Message Connection Descriptions
This module has no input or output messages. It is a pure dynamic effector.
-
class ExtPulsedTorque : public SysModel, public DynamicEffector
- #include <ExtPulsedTorque.h>
external pulsed torque module class
Public Functions
-
ExtPulsedTorque()
This is the constructor. It sets some default initializers that can be overriden by the user.
-
~ExtPulsedTorque()
The destructor. Nothing of note is performed here
-
void UpdateState(uint64_t CurrentSimNanos)
Module update method
-
void linkInStates(DynParamManager &statesIn)
link the states
-
void writeOutputMessages(uint64_t currentClock)
This module does not write any output messages.
- Parameters:
currentClock – The current time used for time-stamping the message
- Returns:
void
-
void readInputMessages()
This method is used to read the incoming message and set the associated buffer structure.
- Returns:
void
-
void computeForceTorque(double integTime, double timeStep)
This method is used to compute the RHS forces and torques. Note: the module can set any of these three vecors, or a subset. Regarding the external force, the matrix represnetations in the body (B) and inerial (N) frame components are treated as 2 separate vectors. Only set both if you mean to, as both vectors will be included.
Public Members
-
Eigen::Vector3d pulsedTorqueExternalPntB_B
pulsed torque vector about point B, in B frame components
-
int countOnPulse
number of integration time steps to simulate a pulse
-
int countOff
number of integration time steps to have no pulses
-
BSKLogger bskLogger
— BSK Logging
Private Members
-
int c
numer of time steps for pulse
-
ExtPulsedTorque()