Class MRPControllerSoftwareChain
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
This software chain defines the controller for the MRP feedback, which can get some reaction wheels and pass the control into the feedback PID loop.
public class MRPControllerSoftwareChain : ControllerSoftwareChain
- Inheritance
-
MRPControllerSoftwareChain
Fields
Out_GuidanceMRPControllerMsg
Defines the configuration for this software chain.
public GuidanceMRPControllerMessage? Out_GuidanceMRPControllerMsg
Field Value
Methods
Configure()
The configure function must be implemented which will be used whenever the configuration should be reconnected and developed.
public override void Configure()
GetCommandTorqueMessage()
Returns the output command torque message from the software chain. This will be the output message of some controller.
public override CommandTorqueMessage? GetCommandTorqueMessage()
Returns
- CommandTorqueMessage
The command torque message on the software chain
OnCreate()
Called when the object is created from the controller and has been attached to the parent object. By this point, it has been registered to the simulation and will run after the constructor.
protected override void OnCreate()
OnLoad(double)
Called after all of the data has been loaded from a save state on this object. This enables any post-load operations to be performed and extra data to be loaded from the metadata.
protected override void OnLoad(double time)
Parameters
time
double[s] The current clock time of the simulation
SetAttitudeErrorMsg(AttitudeErrorMessage?)
Sets the attitude error message input for the controller chain to the value of a specific error message from the pointing chain.
public override void SetAttitudeErrorMsg(AttitudeErrorMessage? msg)
Parameters
msg
AttitudeErrorMessageThe error message from the pointing chain
SetAttitudeReferenceMsg(AttitudeReferenceMessage?)
Sets the attitude reference message input for the controller chain to the value of a specific guidance message from the pointing chain.
public override void SetAttitudeReferenceMsg(AttitudeReferenceMessage? msg)
Parameters
msg
AttitudeReferenceMessageThe reference message from the pointing chain