Module: cssComm¶
This module is responsible for correcting the raw CSS output values to the expected cosine values. This requires a pre-calibrated Chebyshev residual model which calculates the expected deviation from the expected CSS cosine output given a raw CSS measurement at a given distance from the sun. More information on can be found in the
PDF Description.
Defines
- 
MAX_NUM_CHEBY_POLYS¶
Functions
- 
void SelfInit_cssProcessTelem(CSSConfigData *configData, int64_t moduleID)¶
- This method initializes the configData for theCSS sensor interface. It checks to ensure that the inputs are sane and then creates the output message - Return
- void 
- Parameters
- configData: The configuration data associated with the CSS sensor interface
 
 
- 
void CrossInit_cssProcessTelem(CSSConfigData *configData, int64_t moduleID)¶
- This method performs the second stage of initialization for the CSS sensor interface. It’s primary function is to link the input messages that were created elsewhere. - Return
- void 
- Parameters
- configData: The configuration data associated with the CSS interface
 
 
- 
void Update_cssProcessTelem(CSSConfigData *configData, uint64_t callTime, int64_t moduleID)¶
- This method takes the raw sensor data from the coarse sun sensors and converts that information to the format used by the CSS nav. - Return
- void 
- Parameters
- configData: The configuration data associated with the CSS interface
- callTime: The clock time at which the function was called (nanoseconds)
 
 
- 
void Reset_cssProcessTelem(CSSConfigData *configData, uint64_t callTime, int64_t moduleID)¶
- 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. - Return
- void 
- Parameters
- configData: The configuration data associated with the guidance module
 
 
- 
struct CSSConfigData¶
- #include <cssComm.h>Top level structure for the CSS sensor interface system. Contains all parameters for the CSS interface. Public Members - 
uint32_t NumSensors¶
- The number of sensors we are processing. 
 - 
char SensorListName[MAX_STAT_MSG_LENGTH]¶
- The message name that contains CSS data. 
 - 
char OutputDataName[MAX_STAT_MSG_LENGTH]¶
- The name of the output message. 
 - 
int32_t SensorMsgID¶
- Sensor ID tied to the sensor data name. 
 - 
int32_t OutputMsgID¶
- Message ID for the output port. 
 - 
CSSArraySensorIntMsg InputValues¶
- Input values we took off the messaging system. 
 - 
double MaxSensorValue¶
- Scale factor to go from sensor values to cosine. 
 - 
uint32_t ChebyCount¶
- Count on the number of chebyshev polynominals we have. 
 - 
double KellyCheby[MAX_NUM_CHEBY_POLYS]¶
- Chebyshev polynominals to fit output to cosine. 
 
- 
uint32_t