Table of Contents

Class ReactionWheelArrayPowerModel

Namespace
NominalSystems.Classes
Assembly
NominalSystems.Classes.dll

[Nominal] This model creates a map between motor voltage commands and the resulting load on the parent's electrical sub-system. It is a component model that can attach to a reaction wheel to provide the power draw from a system.


public class ReactionWheelArrayPowerModel : UniverseModel<ReactionWheelArray>
Inheritance
ReactionWheelArrayPowerModel

Constructors

ReactionWheelArrayPowerModel()

Construct a motor power model

protected ReactionWheelArrayPowerModel()

Fields

In_MotorVoltageArrayMsg

Incoming array of voltage commands that map to torques

public MotorVoltageArrayMessage? In_MotorVoltageArrayMsg

Field Value

MotorVoltageArrayMessage

In_PowerNodeMsg

Gets a reference to the power node message from the reaction wheels power node mode.

public PowerNodeMessage? In_PowerNodeMsg

Field Value

PowerNodeMessage

Out_MotorVoltageArrayMsg

Outgoing array of voltage commands that will map to torques

public MotorVoltageArrayMessage? Out_MotorVoltageArrayMsg

Field Value

MotorVoltageArrayMessage

PowerSpoofComponent

A reference to the spoof that fakes the voltage draw on the EPS bus

[Hidden]
public PowerComponent? PowerSpoofComponent

Field Value

PowerComponent

Properties

NumEntries

The number of entries added to the lookup table

[Unit(UnitType.NONE)]
[ReadOnly]
public int NumEntries { get; }

Property Value

int

Methods

AddLookupTableEntry(double, double)

Add entry to lookup table.

public void AddLookupTableEntry(double voltageCmd, double powerDraw)

Parameters

voltageCmd double

Input voltage command

powerDraw double

Resulting power draw

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

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