Ejemplo n.º 1
0
        public DroneProject2()
        {
            InitializeComponent();

            //let's bind some video events.
            DVAPI.VideoWorkerBinder();

            DC.NavigationPacketAcquired += DVAPI.OnNavigationPacketAcquired;
            DC.VideoPacketAcquired      += DVAPI.OnVideoPacketAcquired;

            //rebind the nav data
            DC.NavigationDataAcquired += data => DVAPI.NavigationData = data;

            //start all the timers.
            VideoUpdate_Tick.Enabled = true;
            StatusTick.Enabled       = true;

            //now drop the video packet decoder worker if it registers an issue.
            DVAPI.VideoPacketDecoderWorker.UnhandledException += UnhandledException;


            csv = new CSVReader();
            csv.Load_Files();
        }
Ejemplo n.º 2
0
 private void VideoUpdate_Tick_Tick(object sender, EventArgs e)
 {
     DVAPI.VideoTimerTick();
     videoInput.Image = DVAPI.FrameBitmap;
 }