Go to Post I am speechless......but I will think of something by the time it becomes an obvious candidate for the photo caption contest. - Rich Wong [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 08-03-2012, 21:22
patcc2 patcc2 is offline
Registered User
FRC #1980 (The Brigade)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: United States
Posts: 10
patcc2 is an unknown quantity at this point
Exclamation Field lag please help

My team is having a serious problem working with the field. In the pits we operate fine. As soon as we connect to any field practice or real we get an error every second or two reporting that the tank drive vi is bogged down. I can't believe this to be code since I started fresh with just task drive in a desperate attempt to remove the problem but no dice. Please help if you can I can't play in a match if our bot keeps lagging after connection.
  #2   Spotlight this post!  
Unread 08-03-2012, 21:24
alectronic alectronic is offline
Registered User
no team (Volunteer)
Team Role: Alumni
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Nevada
Posts: 342
alectronic has a brilliant futurealectronic has a brilliant futurealectronic has a brilliant futurealectronic has a brilliant futurealectronic has a brilliant futurealectronic has a brilliant futurealectronic has a brilliant futurealectronic has a brilliant futurealectronic has a brilliant futurealectronic has a brilliant futurealectronic has a brilliant future
Re: Field lag please help

More often then not, the field is not to blame. They use super high quality equipment that for the most part does not lag or have traffic issues with a normal robot load. However, if you think it is for sure the field, you could talk with your FTA about looking through the log data on your robot. They may not be willing or able to, but you could try.
I would also recommend finding the NI Representative for your event and having them take a look.
good luck
__________________
  #3   Spotlight this post!  
Unread 08-03-2012, 21:49
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 992
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Field lag please help

Make sure your robot is up high and as exposed as you can get while still keeping it safe from contact with other robots.
  #4   Spotlight this post!  
Unread 08-03-2012, 21:52
rcmolloy's Avatar
rcmolloy rcmolloy is offline
Remote Mentor
AKA: Robert Cory Molloy
FRC #0973 (Greybots)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Los Angeles, California
Posts: 425
rcmolloy has a reputation beyond reputercmolloy has a reputation beyond reputercmolloy has a reputation beyond reputercmolloy has a reputation beyond reputercmolloy has a reputation beyond reputercmolloy has a reputation beyond reputercmolloy has a reputation beyond reputercmolloy has a reputation beyond reputercmolloy has a reputation beyond reputercmolloy has a reputation beyond reputercmolloy has a reputation beyond repute
Re: Field lag please help

Quote:
Originally Posted by RufflesRidge View Post
Make sure your robot is up high and as exposed as you can get while still keeping it safe from contact with other robots.
I apologize to interject but I believe that you meant to say radio is up high and keeping it safe from other robots. 1647 had a similar issue last year where we had intermittent communications with the radio nestled in the dead center of the bot under multiple motors and such.
__________________
FRC 1647: Iron Devils - 2009 - 2011
FRC 973: Greybots - 2011 - 20XX
"While I was a student in FIRST, it was all about becoming inspired. Now as a mentor/engineering student, it's all about making sure learn everything I can so I can carry that on inspiration for future generations while having a hell of a lot of fun!"
  #5   Spotlight this post!  
Unread 08-03-2012, 21:56
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 992
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Field lag please help

Quote:
Originally Posted by rcmolloy View Post
I apologize to interject but I believe that you meant to say radio is up high and keeping it safe from other robots. 1647 had a similar issue last year where we had intermittent communications with the radio nestled in the dead center of the bot under multiple motors and such.
Yes, I meant radio
Thanks!
  #6   Spotlight this post!  
Unread 09-03-2012, 06:40
patcc2 patcc2 is offline
Registered User
FRC #1980 (The Brigade)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: United States
Posts: 10
patcc2 is an unknown quantity at this point
Re: Field lag please help

Thank you for the advice I sure hope this works
  #7   Spotlight this post!  
Unread 09-03-2012, 09:22
linuxboy linuxboy is offline
Registered User
AKA: Oliver Graff
FRC #3780
Team Role: Alumni
 
Join Date: Nov 2010
Rookie Year: 2009
Location: MI, USA
Posts: 217
linuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud of
Re: Field lag please help

While in the pits, check the CPU usage on the robot, you can do this by plugging your computer into the radio with an ethernet cable and looking at the Charts tab while the robot is enabled. There is a legend, but I believe that CPU usage will be a red line. If this is at or near 100% you are doing to much processing on the cRIO for one reason or another, so it can't process incoming packets as fast, and therefore it can't process the joysticks as fast. Another thing to check in there is trip time and dropped packets, since you will be plugged into the radio, you should be able to see if it is a wifi or programming issue, because if it is wifi, the trip times will be way down, if it is programming, they will still be high.

Good Luck,
Oliver
  #8   Spotlight this post!  
Unread 09-03-2012, 11:53
Steve Warner Steve Warner is offline
Controls / Programming
FRC #0234 (Cyber Blue)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Indiana
Posts: 43
Steve Warner is an unknown quantity at this point
Re: Field lag please help

Are you using a camera and are you diplaying the images on the dashboard? If so, disable the video display. This is a big load on the classmate. You can also see the chart data in much more detail by using the Driver Station Log Viewer. I think it is located in the c:\program files\driver station folder on the classmate.
  #9   Spotlight this post!  
Unread 09-03-2012, 20:08
om23 om23 is offline
Registered User
AKA: Om Mahida
no team
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Mount Laurel, NJ
Posts: 69
om23 is a jewel in the roughom23 is a jewel in the roughom23 is a jewel in the rough
Re: Field lag please help

Quote:
Originally Posted by Steve Warner View Post
Are you using a camera and are you diplaying the images on the dashboard? If so, disable the video display. This is a big load on the classmate. You can also see the chart data in much more detail by using the Driver Station Log Viewer. I think it is located in the c:\program files\driver station folder on the classmate.
the lag MIGHT be due to the camera's fps rate. My team experienced this problem today- we had the fps rate unlimited since we didn't find any rules limiting us. But then we ran into some problems in a match and had to put the camera's fps rate down to 20 fps- and the problem was fixed!
good luck!
__________________
College Student | "It won't fail because of me."
  #10   Spotlight this post!  
Unread 09-03-2012, 22:01
dsherw00d dsherw00d is offline
Registered User
FRC #0378
 
Join Date: Jan 2012
Location: Newfane NY
Posts: 44
dsherw00d is a jewel in the roughdsherw00d is a jewel in the roughdsherw00d is a jewel in the rough
Re: Field lag please help

At the Finger Lakes, the head inspector was going around to teams that were having packet loss and advising them to change the camera FPS from 30 to 10 in the driver station code. We were one of them. We did not notice any negative affect at 30, but some teams did. It defaults in the LabView driver station project to 30 FPS. I can't remember the name of the VI to change, but in the middle loop, there will be an IMAQ object outside the loop. You should be able to find the FPS constant of 30. Change it to 10, re-build, then replace the existing exe in the driver station program folder (rename existing exe to save it).

You could disable the camera if you aren't actively using it and test. You could just unplug it's Ethernet cable.
  #11   Spotlight this post!  
Unread 10-03-2012, 15:22
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Field lag please help

If you haven't improved things yet, I'll add that you can use the Log File Viewer to look at logged data for a given match. It is located in the Program Files/FRC Driver Station folder. The interesting data will be the round trip time (green), lost packets (blue), and CPU usage (red). If you want more interpretation, you can upload a picture of the graph or upload the log file. Files are stored in the Public Documents/FRC/Logs.

Greg McKaskle
  #12   Spotlight this post!  
Unread 13-03-2012, 23:58
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: Field lag please help

are you reciving an error to the effect of " the loop that contains robot drive is running too slow"? if so, this will cause problems with the FMS.
__________________
2009 Regional Winners
2011 Regional Chairman's Award
2012 Regional Winners
2013 Regional Chairman's Award
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


All times are GMT -5. The time now is 01:40.

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