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.
[UniverseParent(typeof(ReactionWheelArray))]
public class ReactionWheelArrayPowerModel : PowerNodeModel
- Inheritance
-
ReactionWheelArrayPowerModel
Constructors
ReactionWheelArrayPowerModel()
Construct a motor power model
protected ReactionWheelArrayPowerModel()
Fields
BaseResistance
Specifies the base level resistance for the power model.
[Unit(UnitType.OHM)]
public double BaseResistance
Field Value
In_MotorVoltageArrayMsg
Incoming array of voltage commands that map to torques
public MotorVoltageArrayMessage? In_MotorVoltageArrayMsg
Field Value
LookUpTableData
Stores the data from the lookup table for the purposes of serialization and deserialization.
[Hidden]
public List<JObject> LookUpTableData
Field Value
- List<JObject>
Out_MotorVoltageArrayMsg
Outgoing array of voltage commands that will map to torques
public MotorVoltageArrayMessage? Out_MotorVoltageArrayMsg
Field Value
Properties
NumEntries
The number of entries added to the lookup table
[Unit(UnitType.NONE)]
[ReadOnly]
public int NumEntries { get; }
Property Value
Methods
AddLookupTableEntry(double, double)
Add entry to lookup table.
public void AddLookupTableEntry(double voltageCmd, double powerDraw)
Parameters
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)