Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Controller Lag on Feild (http://www.chiefdelphi.com/forums/showthread.php?t=94250)

XXShadowXX 02-04-2011 21:48

Controller Lag on Feild
 
My team was experiencing bad controller latency on the field. Our issue is simple as that, when tethered, or communicating wireless with our team equipment there is no issue but as soon as our robot touches the field we slow down.

We ran pings, sniffers, etc. Its to the point that our programming team was starting to think that our drive team was using it as an excuse xD or simply trying to give us problems because we cannot create issue at all.

Any suggestions please?

Thank you
William Cody Laeder

Mark McLeod 02-04-2011 21:51

Re: Controller Lag on Feild
 
You might check your Classmate CPU load while on the field to see if circumstances have it bogged down. (Cntl-Shift-Esc)

Ask the field staff to watch your packet transit time to see if it's really, really slow.

WizenedEE 02-04-2011 21:52

Re: Controller Lag on Feild
 
You may want to use the system manager (tools -> real time module -> system manager) to see how much CPU the C RIO is using. If it's near 100%, then it may just be the FMS is sending it over the edge.

You may want to try speeding up your code in general though, perhaps by adding longer delays to everything (it may be a good idea to put one in the main loop). If you're just edging the line between lag and no lag, you probably want to back it off a little bit.

Kevin Sevcik 02-04-2011 21:53

Re: Controller Lag on Feild
 
Are you using CAN? Were you getting any errors in the diagnostic window one the Driver Station? Are you cRIO and DS as up to date as possible?

Kevin Sevcik 02-04-2011 21:57

Re: Controller Lag on Feild
 
Quote:

Originally Posted by WizenedEE (Post 1048523)
You may want to use the system manager (tools -> real time module -> system manager) to see how much CPU the C RIO is using. If it's near 100%, then it may just be the FMS is sending it over the edge.

You may want to try speeding up your code in general though, perhaps by adding longer delays to everything (it may be a good idea to put one in the main loop). If you're just edging the line between lag and no lag, you probably want to back it off a little bit.

The FMS should add a completely negligible load to the cRIO CPU, if any. The FMS talks with the DS, not the cRIO. Mark's suggestion of checking the Classmate CPU load makes more sense.

rsisk 02-04-2011 23:31

Re: Controller Lag on Feild
 
Double check the wiring on your radio, it goes to the power converter, power converter plugs into the 12v plug on the end of your power distribution board.

Also confirm you are running version 2.27.11 on the driver station.

I have seen both of these conditions cause the symptoms you are describing.

Greg McKaskle 03-04-2011 10:30

Re: Controller Lag on Feild
 
In addition to what has been said, I'd take care of any other code that causes error messages to be sent to the driver station. The auto-error-handler is not really that efficient and is one of the first things to correct. It is not common, but certainly possible that the errors happen on the field and not in your tests. To check for this, I'd recommend using the Practice Mode of the DS and if necessary, vary some of the bootup sequencing -- boot the robot first, then plug in the DS, reboot the robot with the DS already present, etc.

Greg McKaskle


All times are GMT -5. The time now is 09:29.

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