MtbEffector#

Executive Summary#

This module converts magnetic torque bar dipoles to body torques.

Message Connection Descriptions#

The following table lists all the module input and output messages. The module msg connection is set by the user from python. The msg type contains a link to the message structure definition, while the description provides information on what this message is used for.

Module I/O Messages#

Msg Variable Name

Msg Type

Description

mtbCmdInMsg

MTBCmdMsgPayload

input msg for commanded Magnetic Torque Bar (MTB) dipole array in the magnetic torque bar frame T

magInMsg

MagneticFieldMsgPayload

input msg for magnetic field data in inertial frame N

mtbParamsInMsg

MTBArrayConfigMsgPayload

input msg for layout of magnetic torque bars

mtbOutMsg

MTBMsgPayload

output message containing net torque produced by the torque bars in body frame B components

User Guide#

Note that the MTB input configuration message variable GtMatrix_B must be provided in a row major format.

Class MtbEffector#

class MtbEffector : public SysModel, public DynamicEffector#

This module converts magnetic torque bar dipoles to body torques.

Public Functions

MtbEffector()#

This is the constructor for the module class. It sets default variable values and initializes the various parts of the model

~MtbEffector()#

Module Destructor

void reset(uint64_t currentSimNanos)#

This method is used to reset the module and checks that required input messages are connect.

Returns:

void

void updateState(uint64_t currentSimNanos)#

This is the main method that gets called every time the module is updated. Provide an appropriate description.

Returns:

void

void linkInStates(DynParamManager &states)#

This method is used to link the magnetic torque bar effector to the hub attitude.

Returns:

void

void computeForceTorque(double integTime, double timeStep)#

This method computes the body torque contribution from all magnetic torque bars.

Returns:

void

void WriteOutputMessages(uint64_t CurrentClock)#

Write the magnetic torque bar output message.

Returns:

void

Public Members

Message<MTBMsgPayload> mtbOutMsg#

output message containing net torque produced by the torque bars in Body components

StateData *hubSigma#

Hub/Inertial attitude represented by MRP.

ReadFunctor<MTBCmdMsgPayload> mtbCmdInMsg#

input msg for commanded mtb dipole array in the magnetic torque bar frame T

ReadFunctor<MagneticFieldMsgPayload> magInMsg#

input msg for magnetic field data in inertial frame N

ReadFunctor<MTBArrayConfigMsgPayload> mtbParamsInMsg#

input msg for layout of magnetic torque bars

BSKLogger bskLogger#

&#8212; BSK Logging