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
#include <ephemeris_converter.h>

ephemeric converter class

Public Functions

EphemerisConverter()
~EphemerisConverter()
bool LinkMessages()

class method

void UpdateState(uint64_t CurrentSimNanos)

update module states

Parameters
  • CurrentSimNanos: time in nano-seconds

void SelfInit()

class method

void CrossInit()

class method

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

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