cssWlsEst#

Executive Summary#

A weighted least-squares minimum-norm algorithm is used to estimate the body-relative sun heading using a cluster of coarse sun sensors. Using two successive sun heading evaluation the module also computes the inertial angular velocity vector. As rotations about the sun-heading vector are not observable, this angular velocity vector only contains body rates orthogonal to this sun heading vector. More information on can be found in the 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

cssDataInMsg

CSSArraySensorMsgPayload

name of the CSS sensor input message

cssConfigInMsg

CSSConfigMsgPayload

name of the CSS configuration input message

navStateOutMsg

NavAttMsgPayload

name of the navigation output message containing the estimated states

cssWLSFiltResOutMsg

SunlineFilterMsgPayload

name of the CSS filter state data out message

Class CssWlsEst#

class CssWlsEst : public SysModel#

Top level structure for the CSS weighted least squares estimator. Used to estimate the sun state in the vehicle body frame.

Public Functions

void reset(uint64_t callTime) override#

This method performs a complete reset of the module. Local module variables that retain time varying states between function calls are reset to their default values.

Parameters:

callTime – The clock time at which the function was called (nanoseconds)

Returns:

void

void updateState(uint64_t callTime) override#

This method takes the parsed CSS sensor data and outputs an estimate of the sun vector in the ADCS body frame

Parameters:

callTime – The clock time at which the function was called (nanoseconds)

Returns:

void

Public Members

ReadFunctor<CSSArraySensorMsgPayload> cssDataInMsg#

The name of the CSS sensor input message.

ReadFunctor<CSSConfigMsgPayload> cssConfigInMsg#

The name of the CSS configuration input message.

Message<NavAttMsgPayload> navStateOutMsg#

The name of the navigation output message containing the estimated states.

Message<SunlineFilterMsgPayload> cssWLSFiltResOutMsg#

The name of the CSS filter data out message.

uint32_t numActiveCss#

[-] Number of currently active CSS sensors

uint32_t useWeights#

Flag indicating whether or not to use weights for least squares.

uint32_t priorSignalAvailable#

Flag indicating if a recent prior heading estimate is available.

double dOld[3]#

The prior sun heading estimate.

double sensorUseThresh#

Threshold below which we discount sensors.

uint64_t priorTime#

[ns] Last time the attitude control is called

CSSConfigMsgPayload cssConfigInBuffer#

CSS constellation configuration message buffer.

SunlineFilterMsgPayload filtStatus#

Filter message.

BSKLogger bskLogger = {}#

BSK Logging.