starTracker#

Executive Summary#

Sensor model to simulate a Star Tracker.

The module PDF Description contains further information on this module’s function, how to run it, as well as testing. The corruption types are outlined in this PDF Description.

Message Connection Descriptions#

The following table lists all the module input and output messages. The module msg connection is set by the user from python. The msg type contains a link to the message structure definition, while the description provides information on what this message is used for.

Module I/O Messages#

Msg Variable Name

Msg Type

Description

scStateInMsg

SCStatesMsgPayload

sc input state message

sensorOutMsg

STSensorMsgPayload

sensor output state message

Class StarTracker#

class StarTracker : public SysModel#

star tracker class

Public Functions

void updateState(uint64_t currentSimNanos)#

update module states

void reset(uint64_t CurrentClock)#

This method is used to reset the module.

Parameters:

currentSimNanos – The current simulation time from the architecture

Returns:

void

void readInputMessages()#

read input messages

void writeOutputMessages(uint64_t Clock)#

write output messages

void computeSensorErrors()#

compute sensor errors

void applySensorErrors()#

apply sensor errors

void computeTrueOutput()#

compute true output values

void computeQuaternion(Eigen::Vector3d *sigma, STSensorMsgPayload *sensorValue)#

compute quaternion from MRPs

Parameters:
  • sigma

  • sensorValues

void computeAngularVelocity(uint64_t currentSimNanos)#

compute platform angular velocity from sensed quaternions

void setDcmCB(const Eigen::Matrix3d &dcm_CB)#

Setter method for dcm_CB.

Parameters:

dcm_CB

Returns:

void

void setPMatrix(const Eigen::Matrix3d &PMatrix)#

Setter method for PMatrix.

Parameters:

PMatrix

Returns:

void

void setWalkBounds(const Eigen::Vector3d &walkBounds)#

Setter method for walkBounds.

Parameters:

walkBounds

Returns:

void

const Eigen::Matrix3d &getDcmCB() const#

Getter method for dcm_CB.

Returns:

const Eigen::Matrix3d

const Eigen::Matrix3d &getPMatrix() const#

Getter method for PMatrix.

Returns:

const Eigen::Matrix3d

const Eigen::Vector3d &getWalkBounds() const#

Getter method for walkBounds.

Returns:

const Eigen::Vector3d

Public Members

ReadFunctor<SCStatesMsgPayload> scStateInMsg#

Sc input state message.

Message<STSensorMsgPayload> sensorOutMsg#

Sensor output state message.

BSKLogger bskLogger#

BSK Logging.