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.

Module I/O Messages#

Msg Variable Name

Msg Type

Description

ephemOutMsgs

EphemerisMsgPayload

vector of planet ephemeris output messages

spiceInMsgs

SpicePlanetStateMsgPayload

vector of planet spice state input messages

Class EphemerisConverter#

class EphemerisConverter : public SysModel#

ephemeric converter class

Public Functions

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#

&#8212; BSK Logging