Module: ephemerisConverter
Executive Summary
This class is used to take ephemeris data from the environmental models and convert it over to a FSW representation so that the ephemeris from SPICE can be patched into the FSW directly instead of generating data from an ephemeris model.
The module
PDF Description
contains further information on this module’s function,
how to run it, as well as testing.
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 |
---|---|---|
ephemOutMsgs |
vector of planet ephemeris output messages |
|
spiceInMsgs |
vector of planet spice state input messages |
-
class EphemerisConverter : public SysModel
- #include <ephemerisConverter.h>
ephemeric converter class
Public Functions
-
EphemerisConverter()
-
~EphemerisConverter()
-
void UpdateState(uint64_t CurrentSimNanos)
update module states
- Parameters:
CurrentSimNanos – time in nano-seconds
-
void Reset(uint64_t CurrentSimNanos)
Reset the module to origina configuration values.
- Returns:
void
-
void readInputMessages()
class method
-
void convertEphemData(uint64_t clockNow)
convert ephemeris data
- Parameters:
clockNow –
-
void writeOutputMessages(uint64_t Clock)
write output message
- Parameters:
CurrentSimNanos – time in nano-seconds
-
void addSpiceInputMsg(Message<SpicePlanetStateMsgPayload> *msg)
add a planet spice input message
Public Members
-
std::vector<Message<EphemerisMsgPayload>*> ephemOutMsgs
vector of planet ephemeris output messages
-
std::vector<ReadFunctor<SpicePlanetStateMsgPayload>> spiceInMsgs
vector of planet spice state input messages
-
BSKLogger bskLogger
— BSK Logging
Private Members
-
std::vector<EphemerisMsgPayload> ephemOutBuffers
output message buffers
-
std::vector<SpicePlanetStateMsgPayload> spiceInBuffers
spice input message copies
-
EphemerisConverter()