Class TransmitterPowerModel
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
[Nominal] This model creates a mapping between the transmitter producing some transmission with a decibel level and the power system. This enables the drawing of power.
public class TransmitterPowerModel : UniverseModel<Transmitter>
- Inheritance
-
TransmitterPowerModel
Constructors
TransmitterPowerModel()
Construct a motor power model
protected TransmitterPowerModel()
Fields
BaseResistance
Specifies the base level resistance for the power model that will occur when not transmitting.
[Unit(UnitType.OHM)]
public double BaseResistance
Field Value
In_PowerNodeMsg
Gets a reference to the power node message from the transmitter power node mode.
public PowerNodeMessage? In_PowerNodeMsg
Field Value
RecentPower
Stores the recent power levels for averaging (for 20 points)
[Hidden]
public List<double> RecentPower
Field Value
Properties
Power
The total power being drawn from the transmitter
[Unit(UnitType.WATT)]
[ReadOnly]
public double Power { get; }
Property Value
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()
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)