Ejemplo n.º 1
0
        private void btnTrackerInitialize_Click(object sender, RoutedEventArgs e)
        {
            trackerSensor1 = new TrackingSensor(4);
            trackerSensor1.Initialize();
            trackerSensor1.InterruptHandler += TrackerSensor_InterruptHandler;

            trackerSensor2 = new TrackingSensor(6);
            trackerSensor2.Initialize();
            trackerSensor2.InterruptHandler += TrackerSensor_InterruptHandler;

            trackerSensor3 = new TrackingSensor(22);
            trackerSensor3.Initialize();
            trackerSensor3.InterruptHandler += TrackerSensor_InterruptHandler;

            trackerSensor4 = new TrackingSensor(23);
            trackerSensor4.Initialize();
            trackerSensor4.InterruptHandler += TrackerSensor_InterruptHandler;

            trackerSensor5 = new TrackingSensor(27);
            trackerSensor5.Initialize();
            trackerSensor5.InterruptHandler += TrackerSensor_InterruptHandler;
        }
Ejemplo n.º 2
0
        private void TrackerInitialize()
        {
            trackerSensor1 = new TrackingSensor(5);
            trackerSensor1.Initialize();
            trackerSensor1.InterruptHandler += TrackerSensor_InterruptHandler;

            trackerSensor2 = new TrackingSensor(17);
            trackerSensor2.Initialize();
            trackerSensor2.InterruptHandler += TrackerSensor_InterruptHandler;

            trackerSensor3 = new TrackingSensor(22);
            trackerSensor3.Initialize();
            trackerSensor3.InterruptHandler += TrackerSensor_InterruptHandler;

            trackerSensor4 = new TrackingSensor(23);
            trackerSensor4.Initialize();
            trackerSensor4.InterruptHandler += TrackerSensor_InterruptHandler;

            trackerSensor5 = new TrackingSensor(27);
            trackerSensor5.Initialize();
            trackerSensor5.InterruptHandler += TrackerSensor_InterruptHandler;
        }