Table of Contents

Class StarTracker

Namespace
NominalSystems.Classes
Assembly
NominalSystems.Classes.dll

[Nominal] A star tracker sensor simulates noise over the top of a navigation state to emulate how a typical star tracker may work.


public class StarTracker : Sensor
Inheritance
StarTracker

Constructors

StarTracker()

Default constructor

protected StarTracker()

Fields

Out_StarTrackerDataMsg

Output message for star tracker data

public StarTrackerDataMessage? Out_StarTrackerDataMsg

Field Value

StarTrackerDataMessage

PMatrix

Cholesky-decomposition or matrix square root of the covariance matrix to apply errors with

[Unit(UnitType.NONE)]
[Metadata(IsAdvanced = true)]
public Matrix3 PMatrix

Field Value

Matrix3

WalkBounds

"3-sigma" errors to permit for states

[Unit(UnitType.NONE)]
[Metadata(IsAdvanced = true)]
public Vector3 WalkBounds

Field Value

Vector3

Properties

Quaternion_LN

Quaternion to go from the Inertial (N) to the sensor in the Body frame in the inertial frame.

[Unit(UnitType.NONE)]
[ReadOnly]
[Metadata(IsAdvanced = true, ContainedIn = "Out_StarTrackerDataMsg")]
public Vector4 Quaternion_LN { get; }

Property Value

Vector4

Sigma_BN

The sensed Sigma in the body frame relative to the inertial frame.

[Unit(UnitType.NONE)]
[ReadOnly]
[Metadata(ContainedIn = "Out_StarTrackerDataMsg")]
public Vector3 Sigma_BN { get; }

Property Value

Vector3

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()

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)

Parameters

time double

[s] Current time of the simulation before the update

step double

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