Module: 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.
Msg Variable Name |
Msg Type |
Description |
---|---|---|
scStateInMsg |
sc input state message |
|
sensorOutMsg |
sensor output state message |
-
class StarTracker : public SysModel
- #include <starTracker.h>
star tracker class
Public Functions
-
StarTracker()
-
~StarTracker()
-
void UpdateState(uint64_t CurrentSimNanos)
update module states
-
void Reset(uint64_t CurrentClock)
Method for reseting the module.
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(double *sigma, STSensorMsgPayload *sensorValue)
compute quaternion from MRPs
- Parameters:
sigma –
sensorValues –
Public Members
-
uint64_t sensorTimeTag
[ns] Current time tag for sensor out
-
ReadFunctor<SCStatesMsgPayload> scStateInMsg
[-] sc input state message
-
Message<STSensorMsgPayload> sensorOutMsg
[-] sensor output state message
-
Eigen::Matrix3d PMatrix
[-] Cholesky-decomposition or matrix square root of the covariance matrix to apply errors with
-
Eigen::Vector3d walkBounds
[-] “3-sigma” errors to permit for states
[-] Current navigation errors applied to truth
-
double dcm_CB[3][3]
[-] Transformation matrix from body to case
-
STSensorMsgPayload trueValues
[-] total measurement without perturbations
-
STSensorMsgPayload sensedValues
[-] total measurement including perturbations
-
double mrpErrors[3]
[-] Errors to be applied to the input MRP set indicating whether
-
SCStatesMsgPayload scState
[-] Module variable where the input State Data message is stored
-
BSKLogger bskLogger
— BSK Logging
Private Members
-
Eigen::Matrix3d AMatrix
[-] AMatrix that we use for error propagation
-
GaussMarkov errorModel
[-] Gauss-markov error states
-
StarTracker()