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(); }
private void VideoUpdate_Tick_Tick(object sender, EventArgs e) { DVAPI.VideoTimerTick(); videoInput.Image = DVAPI.FrameBitmap; }