Go to Post Of course even though its less than a week until kickoff, dave can still change the rules to make bearhugging me in automode a bonus - Mike Schroeder [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-02-2010, 22:34
bls0620's Avatar
bls0620 bls0620 is offline
Registered User
FRC #0368 (Team Kika Mana)
Team Role: College Student
 
Join Date: Jun 2008
Rookie Year: 2008
Location: Honolulu, HI
Posts: 29
bls0620 will become famous soon enoughbls0620 will become famous soon enough
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...
__________________
  #2   Spotlight this post!  
Unread 22-02-2010, 22:41
rath358's Avatar
rath358 rath358 is offline
Registered User
AKA: max
FRC #0093 (NEW Apple Corps)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Wisconsin
Posts: 27
rath358 is on a distinguished road
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.
  #3   Spotlight this post!  
Unread 22-02-2010, 22:44
waialua359's Avatar
waialua359 waialua359 is offline
Mentor
AKA: Glenn
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Apr 2003
Rookie Year: 2000
Location: Waialua, HI
Posts: 3,306
waialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond repute
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.
__________________

2016 Hawaii Regional #1 seed, IDesign, Safety Award
2016 NY Tech Valley Regional Champions, #1 seed, Innovation in Controls Award
2016 Lake Superior Regional Champions, #1 seed, Quality Award, Dean's List
2015 FRC Worlds-Carver Division Champions
2015 Hawaii Regional Champions, #1 seed.
2015 Australia Regional Champions, #2 seed, Engineering Excellence Award
2015 Inland Empire Regional Champions, #1 seed, Industrial Design Award
2014 OZARK Mountain Brawl Champions, #1 seed.
2014 Hawaii Regional Champions, #1 seed, UL Safety Award
2014 Dallas Regional Champions, #1 seed, Engineering Excellence Award
2014 Northern Lights Regional Champions, #1 seed, Entrepreneurship Award
2013 Championship Dean's List Winner
2013 Utah Regional Champion, #1 seed, KP&B Award, Deans List
2013 Boilermaker Regional Champion, #1 seed, Motorola Quality Award
2012 Lone Star Regional Champion, #1 seed, Motorola Quality Award
2012 Hawaii Regional Champions #1 seed, Motorola Quality Award
  #4   Spotlight this post!  
Unread 22-02-2010, 22:47
bls0620's Avatar
bls0620 bls0620 is offline
Registered User
FRC #0368 (Team Kika Mana)
Team Role: College Student
 
Join Date: Jun 2008
Rookie Year: 2008
Location: Honolulu, HI
Posts: 29
bls0620 will become famous soon enoughbls0620 will become famous soon enough
Re: Camera Lag After the Mandatory Updates

Quote:
Originally Posted by waialua359 View Post
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
__________________
  #5   Spotlight this post!  
Unread 23-02-2010, 22:18
cmh0114 cmh0114 is offline
Registered User
AKA: Cam H
FRC #0217 (Thunderchickens)
Team Role: Alumni
 
Join Date: Jan 2009
Rookie Year: 2005
Location: Michigan
Posts: 61
cmh0114 will become famous soon enoughcmh0114 will become famous soon enough
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.
__________________


Thank you to teams 174, 188, 191, 610, and 1551 for some great matches in the FLR finals!!
  #6   Spotlight this post!  
Unread 23-02-2010, 22:51
Elean Atencio's Avatar
Elean Atencio Elean Atencio is offline
Software Mentor
AKA: Elean-1065
FRC #1065 (The Moose)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Kissimme
Posts: 3
Elean Atencio is an unknown quantity at this point
Re: Camera Lag After the Mandatory Updates

Quote:
Originally Posted by cmh0114 View Post
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.

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.
  #7   Spotlight this post!  
Unread 23-02-2010, 23:44
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Camera Lag After the Mandatory Updates

Quote:
Originally Posted by Elean Atencio View Post
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.
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
  #8   Spotlight this post!  
Unread 24-02-2010, 11:31
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #9   Spotlight this post!  
Unread 24-02-2010, 12:06
Jon Stratis's Avatar
Jon Stratis Jon Stratis is online now
Mentor, LRI, MN RPC
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,816
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
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.
  #10   Spotlight this post!  
Unread 24-02-2010, 15:43
rath358's Avatar
rath358 rath358 is offline
Registered User
AKA: max
FRC #0093 (NEW Apple Corps)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Wisconsin
Posts: 27
rath358 is on a distinguished road
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)
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Camera Lag Jonanin FRC Control System 3 05-02-2010 11:29
Camera lag...again ideasrule Programming 5 02-02-2010 13:09
Camera lag solution ringo115 Programming 11 31-01-2010 22:05
Camera Lag tutkows1 Java 1 27-01-2010 00:20
Camera Lag jmanela NI LabVIEW 6 25-12-2009 08:48


All times are GMT -5. The time now is 23:17.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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