Table of Contents

Class ElectromagneticSensor

Namespace
NominalSystems.Classes
Assembly
NominalSystems.Classes.dll

[Nominal Systems] Detects any electromagnetic signatures in the simulation

public class ElectromagneticSensor : Sensor
Inheritance
ElectromagneticSensor
Inherited Members

Constructors

ElectromagneticSensor()

public ElectromagneticSensor()

Fields

Out_ElectromagneticSensorMessage

The output electromagnetic sensor message, that is able to determine the amount of sensors within range.

public ElectromagneticSensorMessage Out_ElectromagneticSensorMessage

Field Value

ElectromagneticSensorMessage

Properties

ElectromagneticComponentCount

[-] Total Number of active Electromagnetic components sensed

[EditableVariable("-", true, "", "")]
public int ElectromagneticComponentCount { get; }

Property Value

int

TotalSensed

[Db] The total gain sensed by the sensor

[EditableVariable("Db", true, "", "")]
public double TotalSensed { get; }

Property Value

double

Methods

CalculateAngle(PhysicalComponent, PhysicalComponent)

Calculates the angle between the up vectors of the target and the sensor

protected double CalculateAngle(PhysicalComponent main, PhysicalComponent target)

Parameters

main PhysicalComponent

The main component

target PhysicalComponent

The targeted component

Returns

double

[deg] The angle in degrees

CalculateGain(PhysicalComponent, double)

Calculates the gain of the component based on the look up table

protected double CalculateGain(PhysicalComponent component, double angle)

Parameters

component PhysicalComponent

the physical component

angle double

angle between the two pointing vectors

Returns

double

[dB] The total antenna gain

CalculateSpaceLoss(PhysicalComponent, PhysicalComponent)

Calculates the space loss for the transmission with respect to the signal transmission distance

protected double CalculateSpaceLoss(PhysicalComponent main, PhysicalComponent target)

Parameters

main PhysicalComponent
target PhysicalComponent

Returns

double

[db] The total loss due to space

CanAccess(Vector3)

Calculates the optical access of the component in question with respect to earth

protected virtual bool CanAccess(Vector3 p2)

Parameters

p2 Vector3

position vector of the object in question

Returns

bool

Whether access exists betwen the objects

OnUpdate(double, double)

Called when the 'Component' should update

protected override void OnUpdate(double time, double step)

Parameters

time double

current time (seconds)

step double

the time step (seconds)