27 m_cycleStarted(false),
40 this->m_numContexts = numContexts;
43 this->m_contexts[entry] = contexts[entry];
51 void ActiveRateGroup::preamble() {
62 this->m_cycleStarted =
false;
81 if (cycleTime > this->m_maxTime) {
82 this->m_maxTime = cycleTime;
90 if (this->m_cycleStarted) {
94 this->m_overrunThrottle++;
99 if (this->m_overrunThrottle > 0) {
100 this->m_overrunThrottle--;
111 this->m_cycleStarted =
true;
114 void ActiveRateGroup::PingIn_handler(
NATIVE_INT_TYPE portNum, U32 key) {
void tlmWrite_RgCycleSlips(U32 arg, Fw::Time _tlmTime=Fw::Time())
ActiveRateGroup(const char *compName)
ActiveRateGroup constructor.
void PingOut_out(FwIndexType portNum, U32 key)
Invoke output port PingOut.
PlatformIntType NATIVE_INT_TYPE
Status now() override
Get the current time.
~ActiveRateGroup()
ActiveRateGroup destructor.
void log_DIAGNOSTIC_RateGroupStarted() const
FwIndexType getNum_RateGroupMemberOut_OutputPorts() const
void tlmWrite_RgMaxTime(U32 arg, Fw::Time _tlmTime=Fw::Time())
C++-compatible configuration header for fprime configuration.
void log_WARNING_HI_RateGroupCycleSlip(U32 cycle) const
void configure(NATIVE_INT_TYPE contexts[], NATIVE_INT_TYPE numContexts)
ActiveRateGroup configuration function.
bool isConnected_RateGroupMemberOut_OutputPort(FwIndexType portNum)
Auto-generated base for ActiveRateGroup component.
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
Number of overruns allowed before overrun event is throttled.
void RateGroupMemberOut_out(FwIndexType portNum, U32 context)
Invoke output port RateGroupMemberOut.
Status getDiffUsec(const RawTime &other, U32 &result) const
Calculate the difference in microseconds between two RawTime objects.