Esempio n. 1
0
        private void OnMeasurementComplete(Gyro sender, MeasurementCompleteEventArgs e)
        {
            if (this.onMeasurementComplete == null)
            {
                this.onMeasurementComplete = this.OnMeasurementComplete;
            }

            if (Program.CheckAndInvoke(this.MeasurementComplete, this.onMeasurementComplete, sender, e))
            {
                this.MeasurementComplete(sender, e);
            }
        }
Esempio n. 2
0
        void gyro_MeasurementComplete(Gyro sender, Gyro.SensorData sensorData)
        {
            Debug.Print("gyro state, x: " + sensorData.X + ", y: " + sensorData.Y + ", z: " + sensorData.Z);
            if (System.Math.Abs(sensorData.Y) > 20)
            {

                // ask user if the machine has just been loaded

            }
        }
Esempio n. 3
0
        private void OnMeasurementComplete(Gyro sender, MeasurementCompleteEventArgs e)
        {
            if (this.onMeasurementComplete == null)
                this.onMeasurementComplete = this.OnMeasurementComplete;

            if (Program.CheckAndInvoke(this.MeasurementComplete, this.onMeasurementComplete, sender, e))
                this.MeasurementComplete(sender, e);
        }
Esempio n. 4
0
 void gyro_MeasurementComplete(Gyro sender, Gyro.SensorData sensorData)
 {
     c.addLocation(sensorData.X,sensorData.Y,sensorData.Z);
 }