Class Orion::GroundCommsDriver¶
ClassList > Orion > GroundCommsDriver
#include <GroundCommsDriver.hpp>
Inherits the following classes: GroundCommsDriverComponentBase
Public Functions¶
| Type | Name |
|---|---|
| GroundCommsDriver (const char * compName) |
|
| ~GroundCommsDriver () |
Private Attributes¶
| Type | Name |
|---|---|
| U32 | m_bytesDownlinked |
| MissionMode | m_currentMode Current mission mode from EventAction . |
| U32 | m_framesDownlinked |
| U32 | m_framesQueued |
| U32 | m_queueFileIndex Monotonic counter for queue filenames. |
| U32 | m_transmitFailures |
Private Functions¶
| Type | Name |
|---|---|
| void | fileDownlinkIn_handler (FwIndexType portNum, Fw::Buffer & buffer, const Fw::StringBase & reason) override |
| U32 | flushQueue () |
| void | modeChangeIn_handler (FwIndexType portNum, const Orion::MissionMode & mode) override Mode change handler: stores the current mission mode. |
| void | saveToQueue (const Fw::Buffer & buffer) Save a buffer to the disk queue for later transmission. |
| void | schedIn_handler (FwIndexType portNum, U32 context) override Rate group handler: flushes disk queue when in DOWNLINK mode. |
| bool | transmit (const Fw::Buffer & buffer) |
| bool | transmitRaw (const U8 * data, FwSizeType size) Transmit raw bytes from a memory buffer (used for queue flush). |
Public Functions Documentation¶
function GroundCommsDriver¶
explicit Orion::GroundCommsDriver::GroundCommsDriver (
const char * compName
)
function ~GroundCommsDriver¶
Orion::GroundCommsDriver::~GroundCommsDriver ()
Private Attributes Documentation¶
variable m_bytesDownlinked¶
U32 Orion::GroundCommsDriver::m_bytesDownlinked;
variable m_currentMode¶
Current mission mode from EventAction .
MissionMode Orion::GroundCommsDriver::m_currentMode;
variable m_framesDownlinked¶
U32 Orion::GroundCommsDriver::m_framesDownlinked;
variable m_framesQueued¶
U32 Orion::GroundCommsDriver::m_framesQueued;
variable m_queueFileIndex¶
Monotonic counter for queue filenames.
U32 Orion::GroundCommsDriver::m_queueFileIndex;
variable m_transmitFailures¶
U32 Orion::GroundCommsDriver::m_transmitFailures;
Private Functions Documentation¶
function fileDownlinkIn_handler¶
void Orion::GroundCommsDriver::fileDownlinkIn_handler (
FwIndexType portNum,
Fw::Buffer & buffer,
const Fw::StringBase & reason
) override
function flushQueue¶
U32 Orion::GroundCommsDriver::flushQueue ()
Flush all queued frames from disk (called when comm window opens). Returns the number of frames successfully transmitted.
function modeChangeIn_handler¶
Mode change handler: stores the current mission mode.
void Orion::GroundCommsDriver::modeChangeIn_handler (
FwIndexType portNum,
const Orion::MissionMode & mode
) override
function saveToQueue¶
Save a buffer to the disk queue for later transmission.
void Orion::GroundCommsDriver::saveToQueue (
const Fw::Buffer & buffer
)
function schedIn_handler¶
Rate group handler: flushes disk queue when in DOWNLINK mode.
void Orion::GroundCommsDriver::schedIn_handler (
FwIndexType portNum,
U32 context
) override
function transmit¶
bool Orion::GroundCommsDriver::transmit (
const Fw::Buffer & buffer
)
Opens a TCP connection to the ground station, sends the frame header and raw pixel payload, then closes the socket. Returns true on success.
function transmitRaw¶
Transmit raw bytes from a memory buffer (used for queue flush).
bool Orion::GroundCommsDriver::transmitRaw (
const U8 * data,
FwSizeType size
)
The documentation for this class was generated from the following file flight_segment/orion/Orion/Components/GroundCommsDriver/GroundCommsDriver.hpp