public AccelerometerDataDssSerializable(AccelerometerData accelerometerData)
        {
            TimeStamp = new DateTime(accelerometerData.TimeStamp);

            accX = accelerometerData.accX;
            accY = accelerometerData.accY;
            accZ = accelerometerData.accZ;
        }
        void AccelerometerMeasurementHandler(AccelerometerData measurement)
        {
            //Tracer.Trace("TrackRoamerBrickProximityBoardService::AccelerometerMeasurementHandler()");

            try
            {
                _state.LastSampleTimestamp = new DateTime(measurement.TimeStamp);
                _state.MostRecentAccelerometer = new AccelerometerDataDssSerializable(measurement);
                _state.LinkState = "receiving Accelerometer Data";

                //
                // Inform subscribed services that the state has changed.
                //
                _submgrPort.Post(new submgr.Submit(_state, DsspActions.ReplaceRequest));

                UpdateAccelerometerData usd = new UpdateAccelerometerData();
                usd.Body = _state.MostRecentAccelerometer;

                base.SendNotification<UpdateAccelerometerData>(_submgrPort, usd);
            }
            catch (Exception e)
            {
                _state.LinkState = "Error while receiving Accelerometer Data";
                LogError(e);
            }
        }