/* called by the base class before the first :: Iterate is called . Place startup code here − especially code which reads configuration data from the mission file */ bool MOOSNode::OnStartUp() { appTick = 1; commsTick = 1; if(!m_MissionReader.GetConfigurationParam("AppTick",appTick)){ MOOSTrace("Warning, AppTick not set.\n"); } if(!m_MissionReader.GetConfigurationParam("CommsTick",commsTick)){ MOOSTrace("Warning, CommsTick not set.\n"); } SetAppFreq(appTick); SetCommsFreq(commsTick); DoRegistrations(); return true; }
bool OnStartUp(){ count_=0;mean_latency_=0.0;max_latency_=0.0; SetAppFreq(2,0.0); return SetIterateMode(REGULAR_ITERATE_AND_COMMS_DRIVEN_MAIL); }