public UavTalkProto(ICommChannel communicationChannel, UAVObjectManager objMgr) { this.objMgr = objMgr; parser = new UavDataparser(objMgr); parser.onObjectReceived += new UavDataparser.onObjectReceivedDelegate(parser_onObjectReceived); txStats = new ComStats(); ch = communicationChannel; ch.onDataReceived += ch_onDataReceived; statTimer = new Timer(1000); statTimer.Elapsed += statTimer_Elapsed; statTimer.Start(); }
public UavLogReader(UAVObjectManager mgr) { _objmgr = mgr; parser = new parser.UavDataparser(mgr); parser.onObjectReceived += new UavTalk.parser.UavDataparser.onObjectReceivedDelegate(parser_onObjectReceived); }