thrMomentumManagement#
Executive Summary#
This module reads in the Reaction Wheel (RW) speeds, determines the net RW momentum, and then determines the amount of angular momentum that must be dumped.
A separate thruster firing logic module called thrMomentumDumping will later on compute the thruster on cycling. The module
PDF Description
contains further information on this module’s function, how to run it, as well as testing.
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.
Msg Variable Name |
Msg Type |
Description |
---|---|---|
deltaHOutMsg |
CmdTorqueBodyMsgPayload |
output message with the requested inertial angular momentum change |
rwSpeedsInMsg |
RWSpeedMsgPayload |
reaction wheel speed input message |
rwConfigDataInMsg |
RWArrayConfigMsgPayload |
name of the RWA configuration message |
Class ThrMomentumManagement#
-
class ThrMomentumManagement : public SysModel#
Module configuration message definition.
Public Functions
-
void reset(uint64_t callTime) override#
This method performs a complete reset of the module. Local module variables that retain time varying states between function calls are reset to their default values.
- Parameters:
callTime – The clock time at which the function was called (nanoseconds)
- Returns:
void
-
void updateState(uint64_t callTime) override#
The RW momentum level is assessed to determine if a momentum dumping maneuver is required. This checking only happens once after the reset function is called. To run this again afterwards, the reset function must be called again.
- Parameters:
callTime – The clock time at which the function was called (nanoseconds)
- Returns:
void
Public Members
-
int initRequest#
[-] status flag of the momentum dumping management
-
RWArrayConfigMsgPayload rwConfigParams#
[-] struct to store message containing RW config parameters in body B frame
-
double hs_min#
[Nms] minimum RW cluster momentum for dumping
-
Message<CmdTorqueBodyMsgPayload> deltaHOutMsg#
The name of the output message.
-
ReadFunctor<RWSpeedMsgPayload> rwSpeedsInMsg#
[] The name for the reaction wheel speeds message
-
ReadFunctor<RWArrayConfigMsgPayload> rwConfigDataInMsg#
[-] The name of the RWA configuration message
-
BSKLogger bskLogger = {}#
BSK Logging.
-
void reset(uint64_t callTime) override#