void DirectionMeasurementHandler(DirectionData measurement) { //Tracer.Trace("TrackRoamerBrickProximityBoardService::DirectionMeasurementHandler()"); try { _state.LastSampleTimestamp = new DateTime(measurement.TimeStamp); _state.MostRecentDirection = new DirectionDataDssSerializable(measurement); _state.LinkState = "receiving Direction Data"; // // Inform subscribed services that the state has changed. // _submgrPort.Post(new submgr.Submit(_state, DsspActions.ReplaceRequest)); UpdateDirectionData usd = new UpdateDirectionData(); usd.Body = _state.MostRecentDirection; base.SendNotification <UpdateDirectionData>(_submgrPort, usd); } catch (Exception e) { _state.LinkState = "Error while receiving Direction Data"; LogError(e); } }
void DirectionMeasurementHandler(DirectionData measurement) { //Tracer.Trace("TrackRoamerBrickProximityBoardService::DirectionMeasurementHandler()"); try { _state.LastSampleTimestamp = new DateTime(measurement.TimeStamp); _state.MostRecentDirection = new DirectionDataDssSerializable(measurement); _state.LinkState = "receiving Direction Data"; // // Inform subscribed services that the state has changed. // _submgrPort.Post(new submgr.Submit(_state, DsspActions.ReplaceRequest)); UpdateDirectionData usd = new UpdateDirectionData(); usd.Body = _state.MostRecentDirection; base.SendNotification<UpdateDirectionData>(_submgrPort, usd); } catch (Exception e) { _state.LinkState = "Error while receiving Direction Data"; LogError(e); } }