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
Properties
ElectromagneticComponentCount
[-] Total Number of active Electromagnetic components sensed
[EditableVariable("-", true, "", "")]
public int ElectromagneticComponentCount { get; }
Property Value
TotalSensed
[Db] The total gain sensed by the sensor
[EditableVariable("Db", true, "", "")]
public double TotalSensed { get; }
Property Value
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
PhysicalComponentThe main component
target
PhysicalComponentThe 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
PhysicalComponentthe physical component
angle
doubleangle 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
PhysicalComponenttarget
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
Vector3position 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)