code: function snapShot() {
      var doSnapShot = {};
  
      if (_screenAdjusted) {
        doSnapShot = _do.getScreenAdjustedEuler();
      } else {
        doSnapShot = _do.getFixedFrameEuler();
      }
  
      var accSnapShot = _dm.getScreenAdjustedAcceleration();
      var accGraSnapShot = _dm.getScreenAdjustedAccelerationIncludingGravity();
      var rotRateSnapShot = _dm.getScreenAdjustedRotationRate();
  
      var alphaToSend = 0;
  
      if (_orientationBase === GAME) {
        alphaToSend = doSnapShot.alpha - _calibrationValue;
        alphaToSend = (alphaToSend < 0) ? (360 - Math.abs(alphaToSend)) : alphaToSend;
      } else {
        alphaToSend = doSnapShot.alpha;
      }
  
      var snapShot = {
        do: {
          alpha: rnd(alphaToSend),
          beta: rnd(doSnapShot.beta),
          gamma: rnd(doSnapShot.gamma),
          absolute: _do.isAbsolute()
        },
        dm: {
          x: rnd(accSnapShot.x),
          y: rnd(accSnapShot.y),
          z: rnd(accSnapShot.z),
          gx: rnd(accGraSnapShot.x),
          gy: rnd(accGraSnapShot.y),
          gz: rnd(accGraSnapShot.z),
          alpha: rnd(rotRateSnapShot.alpha),
          beta: rnd(rotRateSnapShot.beta),
          gamma: rnd(rotRateSnapShot.gamma)
        }
      };
  
      // Normalize gravity
      if (_gravityNormalized) {
        snapShot.dm.gx *= _gravityCoefficient;
        snapShot.dm.gy *= _gravityCoefficient;
        snapShot.dm.gz *= _gravityCoefficient;
      }
  
      return snapShot;
    }
docs: /*
  
  Takes a snapshot of the current deviceo orientaion and device motion values