Class EarthHorizonSensor
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
[Nominal] Calculates "roll" and "pitch" error to earth horizon from it's field of view
public class EarthHorizonSensor : Sensor
- Inheritance
-
EarthHorizonSensor
Constructors
EarthHorizonSensor()
Default constructor
protected EarthHorizonSensor()
Fields
FOV
The field of view of the sensor, which limits the data that can be read from the horizon.
[Unit(UnitType.DEGREE)]
public double FOV
Field Value
Out_EarthHorizonDataMsg
'EarthHorizonSensor' output message
public EarthHorizonDataMessage? Out_EarthHorizonDataMsg
Field Value
Properties
IsEarthVisible
Is earth currently in view.
[Unit(UnitType.NONE)]
[ReadOnly]
[Metadata(ContainedIn = "Out_EarthHorizonDataMsg")]
public bool IsEarthVisible { get; }
Property Value
PitchError
The sensor's pitch error.
[Unit(UnitType.DEGREE)]
[ReadOnly]
[Metadata(ContainedIn = "Out_EarthHorizonDataMsg")]
public double PitchError { get; }
Property Value
RollError
The sensor's roll error.
[Unit(UnitType.DEGREE)]
[ReadOnly]
[Metadata(ContainedIn = "Out_EarthHorizonDataMsg")]
public double RollError { get; }
Property Value
Methods
OnCreate()
Called when the 'Component' is created from the controller.
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
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)