Module: sunlineEphem¶
This module computes an ephemeris-based sunline heading.
More information can be found in the
PDF Description
Functions
-
void
SelfInit_sunlineEphem
(sunlineEphemConfig *configData, int64_t moduleID)¶ This method sets up the module output message of type NavAttIntMsg
- Return
void
- Parameters
configData
: The configuration data associated with this module
-
void
CrossInit_sunlineEphem
(sunlineEphemConfig *configData, int64_t moduleID)¶ This method performs the second stage of initialization for this module. Its primary function is to link the input messages that were created elsewhere. The required input messages are the sun ephemeris message of type EphemerisIntMsg, the spacecraft translational navigation message of type NavTransIntMsg and the spacecraft attitude navigation message of type NavAttIntMsg.
- Return
void
- Parameters
configData
: The configuration data associated with this module
-
void
Update_sunlineEphem
(sunlineEphemConfig *configData, uint64_t callTime, int64_t moduleID)¶ Updates the sun heading based on ephemeris data. Returns the heading as a unit vector in the body frame.
- Return
void
- Parameters
configData
: The configuration data associated with the modulecallTime
: The clock time at which the function was called (nanoseconds)
-
void
Reset_sunlineEphem
(sunlineEphemConfig *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 module
-
struct
sunlineEphemConfig
¶ - #include <sunlineEphem.h>
Top level structure for the sub-module routines.
Public Members
The name of the output message.
-
char
sunPositionInMsgName
[MAX_STAT_MSG_LENGTH
]¶ The name of the sun ephemeris input message.
-
char
scPositionInMsgName
[MAX_STAT_MSG_LENGTH
]¶ The name of the spacecraft ephemeris input message.
-
char
scAttitudeInMsgName
[MAX_STAT_MSG_LENGTH
]¶ The name of the spacecraft attitude input message.
[-] ID for the outgoing body estimate message
-
int32_t
sunPositionInMsgId
¶ [-] ID for the incoming CSS sensor message
-
int32_t
scPositionInMsgId
¶ [-] ID for the incoming spacecraft position message
-
int32_t
scAttitudeInMsgId
¶ [-] ID for the incoming spacecraft attitude message