thrustRWDesat#
Executive Summary#
This algorithm is used to control both the RCS and DV thrusters when executing a trajectory adjustment.
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 |
---|---|---|
rwSpeedInMsg |
RWSpeedMsgPayload |
RW speed input message |
rwConfigInMsg |
RWConstellationMsgPayload |
RW configuration input message |
thrConfigInMsg |
THRArrayConfigMsgPayload |
Thruster configuration input message |
vecConfigInMsg |
VehicleConfigMsgPayload |
spacecraft configuration input message |
thrCmdOutMsg |
THRArrayOnTimeCmdMsgPayload |
thruster array commanded on time output message |
Class ThrustRWDesat#
-
class ThrustRWDesat : public SysModel#
module configuration message
Public Functions
-
void updateState(uint64_t callTime) override#
This method takes in the current oberved reaction wheel angular velocities.
- Parameters:
callTime – The clock time at which the function was called (nanoseconds)
- Returns:
void
Public Members
-
ReadFunctor<RWSpeedMsgPayload> rwSpeedInMsg#
(-) The name of the input RW speeds message
-
ReadFunctor<RWConstellationMsgPayload> rwConfigInMsg#
[-] The name of the RWA configuration message
-
ReadFunctor<THRArrayConfigMsgPayload> thrConfigInMsg#
[-] The name of the thruster configuration message
-
ReadFunctor<VehicleConfigMsgPayload> vecConfigInMsg#
[-] The name of the input spacecraft mass properties message
-
Message<THRArrayOnTimeCmdMsgPayload> thrCmdOutMsg#
(-) The name of the output thrust command block
-
double rwAlignMap[3 * MAX_EFF_CNT]#
(-) Alignment of the reaction wheel spin axes
-
double thrAlignMap[3 * MAX_EFF_CNT]#
(-) Alignment of the vehicle thrusters
-
double thrTorqueMap[3 * MAX_EFF_CNT]#
(-) Alignment of the vehicle thruster torques
-
double maxFiring#
(s) Maximum time to fire a jet for
-
double thrFiringPeriod#
(s) The amount of time to rest between thruster firings
-
int numRWAs#
(-) Number of reaction wheels being desaturated
-
int numThrusters#
(-) Number of thrusters available in the align map
-
double accumulatedImp[3]#
(s) The accumulated firing in the body frame
-
double currDMDir[3]#
(-) The current direction of momentum reduction
-
double totalAccumFiring#
(s) The total thruster duration we’ve commanded
-
double DMThresh#
(r/s) The point at which to stop decrementing momentum
-
uint64_t previousFiring#
(ns) Time that the last firing command was given
-
BSKLogger bskLogger = {}#
BSK Logging.
-
void updateState(uint64_t callTime) override#