Table of Contents

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

double

In_PowerNodeMsg

Gets a reference to the power node message from the transmitter power node mode.

public PowerNodeMessage? In_PowerNodeMsg

Field Value

PowerNodeMessage

RecentPower

Stores the recent power levels for averaging (for 20 points)

[Hidden]
public List<double> RecentPower

Field Value

List<double>

Properties

Power

The total power being drawn from the transmitter

[Unit(UnitType.WATT)]
[ReadOnly]
public double Power { get; }

Property Value

double

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)

Parameters

time double

[s] Current time of the simulation before the update

step double

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