Table of Contents

Class RWVoltageMappingSoftware

Namespace
NominalSystems.Classes
Assembly
NominalSystems.Classes.dll

[Nominal] This module assumes a set of voltages are sent to the RW motors to control their speed. It includes a simple voltage dead-band.


public class RWVoltageMappingSoftware : Software
Inheritance
RWVoltageMappingSoftware

Constructors

RWVoltageMappingSoftware()

Default constructor

protected RWVoltageMappingSoftware()

Fields

In_MotorTorqueArrayMsg

The input motor torque message required for the reaction wheels

public MotorTorqueArrayMessage? In_MotorTorqueArrayMsg

Field Value

MotorTorqueArrayMessage

In_RWArrayAvailabilityMsg

The reaction wheel availability for whether the data is toggled on or off [OPTIONAL]

public RWArrayAvailabilityMessage? In_RWArrayAvailabilityMsg

Field Value

RWArrayAvailabilityMessage

In_RWArrayConfigMsg

The reaction wheel configuration

public RWArrayConfigMessage? In_RWArrayConfigMsg

Field Value

RWArrayConfigMessage

In_RWArraySpeedMsg

The reaction wheel speeds message [OPTIONAL]

public RWArraySpeedMessage? In_RWArraySpeedMsg

Field Value

RWArraySpeedMessage

K

[V/Nm] Torque tracking gain for closed loop control

[Unit("V/Nm")]
public double K

Field Value

double

MaxVoltage

[V] Maximum output voltage

[Unit(UnitType.VOLT)]
public double MaxVoltage

Field Value

double

MinVoltage

[V] Minimum voltage below which the torque is zero

[Unit(UnitType.VOLT)]
public double MinVoltage

Field Value

double

Out_MotorVoltageArrayMsg

The Output voltage from the Reaction Wheel Motors

public MotorVoltageArrayMessage? Out_MotorVoltageArrayMsg

Field Value

MotorVoltageArrayMessage

Methods

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

OnSave()

Called before the object is saved into the save state. This ensures that any additional metadata can be saved on the object before it is automatically serialized.

protected override void OnSave()

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)

Parameters

time double

[s] Current time of the simulation before the update

step double

[s] The time-step to update during this tick