示例#1
0
        protected virtual void OnBlocksReceived(ObjectBlocksEventArgs e)
        {
            EventHandler <ObjectBlocksEventArgs> handler = BlocksReceived;

            if (handler != null)
            {
                handler(this, e);
            }
        }
示例#2
0
 private void Controller_BlocksReceived(object sender, ObjectBlocksEventArgs e)
 {
     if (showCameraDebug)
     {
         lock (cameraLock)
         {
             foreach (ObjectBlock block in e.Blocks)
             {
                 updateUI(block);
             }
         }
     }
 }
 protected virtual void OnBlocksReceived(ObjectBlocksEventArgs e)
 {
     EventHandler<ObjectBlocksEventArgs> handler = BlocksReceived;
     if (handler != null)
     {
         handler(this, e);
     }
 }
示例#4
0
 private void Controller_OnNewBlocksDetected(object source, ObjectBlocksEventArgs e)
 {
     var blocks = e.Blocks;
     if (blocks != null && blocks.Length > 0)
     {
         var controller = source as ObjectTrackingController;
         controller.motorDriver.Buzz(500f, 500);
     }
 }