Table of Contents

Class RWEncoderSoftware

Namespace
NominalSystems.Classes
Assembly
NominalSystems.Classes.dll

[Nominal] This module encodes RW telemetry into reaction wheel speeds. This will encode the signals from the reaction wheels based on the status.


public class RWEncoderSoftware : Software
Inheritance
RWEncoderSoftware

Constructors

RWEncoderSoftware()

Default constructor

protected RWEncoderSoftware()

Fields

ClicksPerRotation

[-] Clicks per reaction wheel rotation

[Unit(UnitType.NONE)]
public double ClicksPerRotation

Field Value

double

ConvertedSpeeds

The converted speeds based on the current encoder signals

[Unit(UnitType.NONE)]
[ReadOnly]
public double[] ConvertedSpeeds

Field Value

double[]

EncoderSignals

Array of reaction wheel operating status messages

[ReadOnly]
public RWEncoderSignalType[] EncoderSignals

Field Value

RWEncoderSignalType[]

In_RWArrayConfigMsg

Incoming RW configuration message

public RWArrayConfigMessage? In_RWArrayConfigMsg

Field Value

RWArrayConfigMessage

In_RWArraySpeedMsg

Incoming RW speed data

public RWArraySpeedMessage? In_RWArraySpeedMsg

Field Value

RWArraySpeedMessage

Out_RWArraySpeedMsg

Outgoing RW speed data that is estimated

public RWArraySpeedMessage? Out_RWArraySpeedMsg

Field Value

RWArraySpeedMessage

RemainingClicks

Remaining clicks from the previous iteration

[Unit(UnitType.NONE)]
[ReadOnly]
public double[] RemainingClicks

Field Value

double[]

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 object is created from the controller and has been attached to the parent object. By this point, it has been registered to the simulation and will run after the constructor.

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)

Parameters

time double

[s] Current time of the simulation before the update

step double

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