Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Camera Lag After the Mandatory Updates (http://www.chiefdelphi.com/forums/showthread.php?t=83440)

bls0620 22-02-2010 22:34

Camera Lag After the Mandatory Updates
 
Hi all,

My team applied the mandatory update last night to our cRIO and the Driver Station. After the update, we tried running our program to observe the "improvement in performance in vision processing"(if I remember correctly from previous threads in delphi). However, our program lagged significantly enough to interfere with continuous driving. I tried changing the resolution on the camera and other stuff to eliminate the lag, but I couldn't eliminate the latency entirely(yes, with lower resolution I was able to smooth out the latency between the controller and the robot, but it didn't really help).

Is there any hotfix for this issue? Or is it just our team having this problem?

p.s. We didn't change anything on our program... So, I don't think it's our program problem... :confused:

rath358 22-02-2010 22:41

Re: Camera Lag After the Mandatory Updates
 
You are not the only ones. There are several threads about the problem, but no solution YET. If I am remembering things correctly, someone from NI is looking into it.

waialua359 22-02-2010 22:44

Re: Camera Lag After the Mandatory Updates
 
Our team has fought with this as well.
One thing we did was take out some of the camera processing which helped quite a bit. So far, we are only using the camera for basic visual to help the driver aim.

bls0620 22-02-2010 22:47

Re: Camera Lag After the Mandatory Updates
 
Quote:

Originally Posted by waialua359 (Post 926806)
Our team has fought with this as well.
One thing we did was take out some of the camera processing which helped quite a bit. So far, we are only using the camera for basic visual to help the driver aim.

We are doing the same thing right now.... only using the camera for drivers to aim

cmh0114 23-02-2010 22:18

Re: Camera Lag After the Mandatory Updates
 
Our team solved this by downloading a custom Dashboard and using that instead. It removed a few of the graphs that were included in the latest update, but we didn't use those anyways, and we now have almost live video feed, which is amazing. :D

Elean Atencio 23-02-2010 22:51

Re: Camera Lag After the Mandatory Updates
 
Quote:

Originally Posted by cmh0114 (Post 927583)
Our team solved this by downloading a custom Dashboard and using that instead. It removed a few of the graphs that were included in the latest update, but we didn't use those anyways, and we now have almost live video feed, which is amazing. :D


how do you download a custom Dashboard?. Our team is having a tough time with camera lag. Before the update it was like 2 seconds but after the update it went up to 5 seconds. All we are doing with the camera is calling the getinstance in the constructor.

Radical Pi 23-02-2010 23:44

Re: Camera Lag After the Mandatory Updates
 
Quote:

Originally Posted by Elean Atencio (Post 927627)
how do you download a custom Dashboard?. Our team is having a tough time with camera lag. Before the update it was like 2 seconds but after the update it went up to 5 seconds. All we are doing with the camera is calling the getinstance in the constructor.

To use a custom dashboard, you can either write one yourself (in LabVIEW) or download someone else's custom one. I believe the one the poster above you was referring to was this. To install it, take the files in the zip folder and copy them to C:\Program Files\FRC Dashboard (MAKE A BACKUP FIRST!!!). It should automatically load the new dashboard when driver station is run.

Mark McLeod 24-02-2010 11:31

Re: Camera Lag After the Mandatory Updates
 
How to Create Your Own Dashboard:
  1. Exit the Driver account to close everything (Setup tab -> Exit)
  2. Login to the Developer Account
  3. Use LabVIEW and create a new Dashboard project.
  4. You'll then need to create an exe
    1. Right click on Build Specifications -> New -> Application (EXE)
    2. In the Popup:
      1. "target filename" - change the name to Dashboard.exe
      2. Change the Destination Directory to "C:\Program Files\FRC Dashboard"
    3. Tell it where to begin:
      1. In the left list click on "Source Files"
      2. Click on "Dashboard Main.vi"
      3. Click on the right pointing arrow that will highlight
      4. You should see Dashboard Main appear on the right hand side under "Startup VIs"
    4. Click on "Build" at the bottom to create your exe
  5. Login to the Driver account to start up the new dashboard and see if it works.

Jon Stratis 24-02-2010 12:06

Re: Camera Lag After the Mandatory Updates
 
We've customized our dashboard a bit as well, and we even have our own custom camera code. It was pretty cool Sunday night sitting in the programming room watching people work on the robot.

rath358 24-02-2010 15:43

Re: Camera Lag After the Mandatory Updates
 
Turn off automatic error logging on the robot.

search for this thread to see how:
"Turning off automatic error logging in LabVIEW may improve loop timing "
(no link so this appears faster)


All times are GMT -5. The time now is 03:31.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi