Beispiel #1
0
        private void FTilt_OnCrashChanged(Object Sender, EventArgs e)
        {
            wclWeDoTiltSensorCrash Crash = FTilt.Crash;

            laX.Text         = Crash.X.ToString();
            laY.Text         = Crash.Y.ToString();
            laZ.Text         = Crash.Z.ToString();
            laDirection.Text = "Unknown";
        }
Beispiel #2
0
        private void UpdateCrash(wclWeDoTiltSensor Sensor)
        {
            wclWeDoTiltSensorCrash Crash = Sensor.Crash;

            if (Sensor.PortId == 0)
            {
                laX1.Text         = Crash.X.ToString();
                laY1.Text         = Crash.Y.ToString();
                laZ1.Text         = Crash.Z.ToString();
                laDirection1.Text = "Unknown";
            }
            else
            {
                laX2.Text         = Crash.X.ToString();
                laY2.Text         = Crash.Y.ToString();
                laZ2.Text         = Crash.Z.ToString();
                laDirection2.Text = "Unknown";
            }
        }