Class BoresightSensor
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
[Nominal] Defines a support class that can be added to a sensor to perform a range of boresight calculations.
public class BoresightSensor : Sensor
- Inheritance
-
BoresightSensor
Constructors
BoresightSensor()
Default constructor
protected BoresightSensor()
Fields
In_SpacecraftStateMsg
A reference to the base spacecraft's state message for computing the state of the object.
public SpacecraftStateMessage? In_SpacecraftStateMsg
Field Value
In_TargetPlanetStateMsg
State of the celestial body that the sensor is targeting
public SpicePlanetStateMessage? In_TargetPlanetStateMsg
Field Value
Out_BoresightDataMsg
Output state of the boresight angle
public BoresightDataMessage? Out_BoresightDataMsg
Field Value
Properties
Azimuth
Quadrant to put the miss angle in, relative to the boresight.
[Unit(UnitType.DEGREE)]
[ReadOnly]
[Metadata(ContainedIn = "Out_BoresightDataMsg")]
public double Azimuth { get; }
Property Value
MissAngle
Angular distance between the boresight and body.
[Unit(UnitType.DEGREE)]
[ReadOnly]
[Metadata(ContainedIn = "Out_BoresightDataMsg")]
public double MissAngle { get; }
Property Value
Methods
OnBegin(double)
Called when the object is beginning ticking for the first time. This is when the simulation calls the very first tick and will run before the update call.
protected override void OnBegin(double time)
Parameters
time
double[s] Current time of the simulation before the tick
OnCreate()
Called when the 'Component' is created from the controller.
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)