Module: ephemeris_converter

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.


class EphemerisConverter : public SysModel

Public Functions

EphemerisConverter()
~EphemerisConverter()
bool LinkMessages()
void UpdateState(uint64_t CurrentSimNanos)
void SelfInit()
void CrossInit()
void readInputMessages()
void convertEphemData(uint64_t clockNow)
void writeOutputMessages(uint64_t Clock)

Public Members

bool messagesLinked

[-] Flag used to determine if messages are cross-linked

std::map<std::string, std::string> messageNameMap

[-] Map between input/output message names

uint64_t numOutputBuffers

[-] Number of output buffers created for messages

BSKLogger bskLogger

BSK Logging

Private Members

std::map<int64_t, IDEphemerisSimMsg> messageIDMap

[-] Map between input/output message IDs