Go to Post FIRST is the best thing that has ever happened to me...FIRST has taught me so much more than anything I learned in the classroom. The thing with my team, is we are so close, we are family, and I have figured out so much about who I am because of FIRST. - princessnatalie [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-03-2014, 18:06
naldarn naldarn is offline
Registered User
FRC #5257
 
Join Date: Feb 2014
Location: USA
Posts: 14
naldarn is an unknown quantity at this point
Problems with cRIO and driving while competing

Hello,

This weekend, our FIRST team had their event, and it could have gone better.

We are using labview, and with our programming, we were getting poor driving performance and loss of communication. We received help from many people at the event, and still were not able to load or shoot the ball.

To troubleshoot, we swapped out the radio, cRIO, digital sidecar, switched to a different laptop from the classmate, changed network cables, disconnected the digital sidecar, ran tethered in the pits, all to no avail.

We then reimaged the cRIO, and loaded the base code for an arcade drive robot with no edits at all.

We still have lost packets that can precede latency issues, latency issues followed by packet loss, all of which can happen while the robot is not being controlled but enabled and tethered. This is the watchdog error that shows:

ERROR <Code< -44061 occurred at "Left and Right Motors" in the VI path: Robot Main.vi FRC: The loop that contains RobotDrive is not running fast enough. This error can occur if the loop contains too much code, or if one or more other loops are starving the RobotDrive loop.

During the event, we were able to drive, but not very reliably. We were told by someone to press F1 to bring the control back faster, and that seemed to work a little.

Our team is very disappointed and would like to be more competitive in our next event in 2 weeks.

Any help would be appreciated, and more info will be provided as needed.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-03-2014, 18:27
Kevin Phan's Avatar
Kevin Phan Kevin Phan is offline
College Student
FRC #0357 (Royal Assault)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2010
Location: PA, United States
Posts: 95
Kevin Phan will become famous soon enoughKevin Phan will become famous soon enough
Re: Problems with cRIO and driving while competing

My team encouters these errors every match. The only thing that helps reduce these errors is to have most of our code in periodic tasks, with one fast loop(10ms) and one slow loop (100ms) for our various tasks.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-03-2014, 18:37
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,570
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Problems with cRIO and driving while competing

What is the Driver Station CPU usage? It is displayed on the charts tab of the driver station (or you can open Task Manager). It is not in the DS log, however.

I helped one team this week who's netbook had unexpectedly high CPU usage. They were running around 50% usage when idle. Adding the DS and dashboard brought the CPU usage to 100%. Closing the dashboard got it to 70% and their lost packets and latency decreased dramatically.

Can you post a representative Driver Station log? See http://wpilib.screenstepslive.com/s/...og-file-viewer
Reply With Quote
  #4   Spotlight this post!  
Unread 23-03-2014, 19:17
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,752
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: Problems with cRIO and driving while competing

Please post your log files or an image of the log file. I'm curious to see your CPU usage and other errors. To Joe's point, what laptop was used for the DS. Did you happen to notice its CPU usage?

As I've said many times, reimaging is something I rarely recommend. If the controller doesn't boot, reimage it. Otherwise, the time is probably better spent debugging and experimenting with other element.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 24-03-2014, 08:40
naldarn naldarn is offline
Registered User
FRC #5257
 
Join Date: Feb 2014
Location: USA
Posts: 14
naldarn is an unknown quantity at this point
Re: Problems with cRIO and driving while competing

We were using a Classmate that came with the KOP, as well as a Dell XPS laptop.

Here is the base logs and our original code, and the base code for just a driving base.

Original code is the 2014 Robot Project while catapult.zip
Base code is the 2014 Robot Project drive only.zip
Attached Files
File Type: zip logs from competition.zip (607.8 KB, 6 views)
File Type: zip 2014 Robot Project drive only.zip (2.93 MB, 6 views)
File Type: zip 2014 Robot Project while catapult.zip (207.9 KB, 5 views)
Reply With Quote
  #6   Spotlight this post!  
Unread 24-03-2014, 10:19
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,752
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: Problems with cRIO and driving while competing

The Thursday logs show a frequent stream of errors coming from teleop trying to read a Digital Input refnum that doesn't exist. This caused the cRIO CPU to be pegged near 100%.

On Friday, that was resolved, and the errors were just timeouts on RobotDrive during auto.

The 5:30 log on Friday has a one second disabled gap during teleop, but it isn't clear what caused that. The comms were clean and CPU was low.

The three qualification matches on Saturday look clean.

Saturday afternoon around 2:00, there were some tests in the pits where the auto timeouts started happening again

I haven't had a chance to look at the code yet, but the logs do not show communications drops, cRIO CPU usage or errors to be the cause.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 24-03-2014, 10:45
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,752
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: Problems with cRIO and driving while competing

Looking at the code, the first project looks exactly like the template code. Did you have issues driving with the default code?

The other project has one point that looks funny to me. The catapult motor is being controlled in two parallel loops. If the logic is consistent, then this shouldn't be a problem, but it clearly allows for funky interactions if the logic or drivers are doing things the programmers didn't expect.

I searched to see if anyone else is updating the X or Y globals. I didn't see any in the code that was posted. So I don't think this is causing any issues. Another way to do this is simply to read the joystick in the periodic loop.

So at this point, I don't see anything obvious. Can you point out periods in the log file or with specific mechanisms that were problematic? Perhaps I'm not looking at the correct logs?

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 24-03-2014, 12:00
naldarn naldarn is offline
Registered User
FRC #5257
 
Join Date: Feb 2014
Location: USA
Posts: 14
naldarn is an unknown quantity at this point
Re: Problems with cRIO and driving while competing

The problem we were having while driving is lack of control of the robot, especially driving not responding to command.

Here is one log when we switched to another laptop. The packet loss is what we were told was causing the lack of response for steering.
Attached Files
File Type: zip 2014_03_21 18_10_01 Fri.zip (5.7 KB, 5 views)
Reply With Quote
  #9   Spotlight this post!  
Unread 24-03-2014, 13:25
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,752
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: Problems with cRIO and driving while competing

That is very little packet loss.

You only attached the .dslog file and not the .dsevent file, so I can't look at errors, but your packet loss never tops 5 lost packets over 1/2 second intervals.

I've seen better, but I've seen much worse. I see no evidence that your robot dropped communications. I see no evidence that your robot outputs were shutdown because of packet loss.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 24-03-2014, 15:30
naldarn naldarn is offline
Registered User
FRC #5257
 
Join Date: Feb 2014
Location: USA
Posts: 14
naldarn is an unknown quantity at this point
Re: Problems with cRIO and driving while competing

Here is both of the logs for our replacement laptop. The original classmate logs are attached above. If the logs are not showing any issues, why is it that the robot would not respond to the controls for seconds at time, making us a sitting duck on the field?

We ended up just driving and trying to defend, where the robot had been designed to shoot as well as pass.
Attached Files
File Type: zip Log Files.zip (6.4 KB, 5 views)
Reply With Quote
  #11   Spotlight this post!  
Unread 24-03-2014, 21:12
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Problems with cRIO and driving while competing

As Joe Ross said, the logs don't record the laptop's CPU load. If it's bogged down trying to do too much, there's a good chance the Driver Station will get behind on its communication tasks. If that happens, you'll get control delays, with the lag time very likely increasing as the match goes on.

Are you using a custom Dashboard?
Reply With Quote
  #12   Spotlight this post!  
Unread 25-03-2014, 13:12
naldarn naldarn is offline
Registered User
FRC #5257
 
Join Date: Feb 2014
Location: USA
Posts: 14
naldarn is an unknown quantity at this point
Re: Problems with cRIO and driving while competing

Default dashboard. With most of the work being done on the cRIO, how much is the laptop actually doing? It is the default dashboard, shouldn't the laptop be able to do this without issue? If it cannot, why are we getting inferior equipment?
Reply With Quote
  #13   Spotlight this post!  
Unread 25-03-2014, 14:47
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Problems with cRIO and driving while competing

You aren't trying to log on to both the Developer and Driver accounts simultaneously, are you?
Reply With Quote
  #14   Spotlight this post!  
Unread 25-03-2014, 18:38
naldarn naldarn is offline
Registered User
FRC #5257
 
Join Date: Feb 2014
Location: USA
Posts: 14
naldarn is an unknown quantity at this point
Re: Problems with cRIO and driving while competing

No, only driver, and log out, not quick switch when changing between.

Sorry if the previous post sounded nasty, just really frustrated. Thanks for all the suggestions.

Last edited by naldarn : 25-03-2014 at 19:25.
Reply With Quote
  #15   Spotlight this post!  
Unread 25-03-2014, 22:54
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,752
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: Problems with cRIO and driving while competing

I looked at the latest zip. You have one error related to reading the color enabled on the camera at boot up time. Other than that, it is a clean log.

From the battery voltage, I can see that your robot didn't move during auto, and there are a good number of two and three second flat spots where your robot was sitting still.

As Joe mentioned, I'd look at the laptop CPU usage and I'd also look to verify that the ribbon cable was firmly seated at both ends. I'd make sure that the power to the digital breakout board wasn't going in and out or that I didn't have a short to it. I'd also make sure the digital module is fully inserted and the clips are holding it in place.

Greg McKaskle
Reply With Quote
Reply


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 22:48.

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