Class RWTorqueMappingSoftware
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
[Nominal] Defines the software for the reaction wheel motor torque. This module maps a desired torque to control the spacecraft, and maps it to the available wheels using a minimum norm inverse fit. Previously named ReactionWheelMotorTorqueSoftware.
public class RWTorqueMappingSoftware : Software
- Inheritance
-
RWTorqueMappingSoftware
Constructors
RWTorqueMappingSoftware()
Default constructor
protected RWTorqueMappingSoftware()
Fields
ControlAxes_B
[-] A matrix of the control unit axis
[Unit(UnitType.NONE)]
public Matrix3 ControlAxes_B
Field Value
In_CommandTorqueMsg
Vehicle control (LR) Input message
public CommandTorqueMessage? In_CommandTorqueMsg
Field Value
In_RWArrayAvailabilityMsg
RWs availability input message [OPTIONAL]
public RWArrayAvailabilityMessage? In_RWArrayAvailabilityMsg
Field Value
In_RWArrayConfigMsg
RW Array configuration input message
public RWArrayConfigMessage? In_RWArrayConfigMsg
Field Value
Out_MotorTorqueArrayMsg
RW motor torque output message for the reaction wheels
public MotorTorqueArrayMessage? Out_MotorTorqueArrayMsg
Field Value
Methods
Initialise()
This method is called whenever some key parameters are changed and any new local variables are required to be recalculated. This can be called by the software chains if a configuration of some values are updated.
public override void Initialise()
OnBegin(double)
Called when the object is beginning ticking for the first time. This is when the simulation calls the very first tick and will run before the update call.
protected override void OnBegin(double time)
Parameters
time
double[s] Current time of the simulation before the tick
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
OnUpdate(double, double)
Called when the object should update from the simulation tick. This will take in a time and a step, where the time is the time of the clock before updating the object.
protected override void OnUpdate(double time, double step)