Go to Post Also, I'm tired of the "FIRST is a simulation of the real world"-- it isn't. If the real world was like FIRST, there wouldn't be any need for this organization. - cadandcookies [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC 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 14-03-2013, 20:41
ehfeinberg's Avatar
ehfeinberg ehfeinberg is offline
Registered User
AKA: Evan
FRC #0449 (Blair Robot Project)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Silver Spring, MD
Posts: 232
ehfeinberg has a brilliant futureehfeinberg has a brilliant futureehfeinberg has a brilliant futureehfeinberg has a brilliant futureehfeinberg has a brilliant futureehfeinberg has a brilliant futureehfeinberg has a brilliant futureehfeinberg has a brilliant futureehfeinberg has a brilliant futureehfeinberg has a brilliant futureehfeinberg has a brilliant future
Comms/FMS Problems

Our team was having a comms problem recently at the Pittsburgh regional.
Info:
Labview
CAN Jaguars
Driverstation pc runs in windows 7

During one of our practice matches, autonomous was functioning fine. However, right when we started teleop we then lost comms to the cRIO but still had the camera feed.

In the pit we found out that if we deployed code, and ran code, the robot would drop comms right after given a command. If we stuck code, power cycled, and then ran the code without deploying, the robot operated fine. However, we did not and will have a chance to test if the code will work with FMS before our qualifying matches.

Obviously, we are concerned that this will affect our qualifying performance, so it would be great if anyone had a theory on whats going on?
__________________
“They’ve done studies, you know. 60 percent of the time, it works every time.” — Brian Fantana
"You miss 100% of the shots you don't take." - Wayne Gretzky
"Simplicity is the ultimate form of sophistication" - Leonardo da Vinci
Reply With Quote
  #2   Spotlight this post!  
Unread 14-03-2013, 21:05
engunneer's Avatar
engunneer engunneer is offline
Alumni turned Mentor
AKA: Branden Gunn
FRC #4761
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1996
Location: Reading, MA
Posts: 847
engunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond repute
Re: Comms/FMS Problems

does the default code have the same issues? (that rules out many programming issues if default code fails too)

Do you have any sensors unplugged?

does it still fail without the camera?

what camera settings (FPS, resolution)
__________________
Student FRC23 (1996-1999), Mentor FRC246 (2000), Mentor FRC1318 (2007-2009), Mentor FRC93 (2011), Mentor FRC2151 (2012), Mentor FRC23 (2013), Mentor FRC4761 (2014-2017)
1998 - National Chairman's Award and Woodie Flowers Award (FRC23, Mike Bastoni ) | 2007 - PNW SF (488, 1595) | 2008 - Oregon RCA - Seattle #2 Seed, SF (488, 1696) | 2009 - Oregon #1 Seed, Winners (1983, 2635) - Seattle SF (945, 2865) - Galileo #2 Seed, SF (973, 25) | 2012 Midwest F (111, 71) | 2014 RIDE Winners (78, 125), Inspector - NEU #24, QF (3479, 3958) - NECMP #35 | 2015 Reading #11, SF (1058, 190), Inspector - RIDE #17, QF(4055, 5494), Inspector - NECMP #57 | 2016 Reading #4, SF (133, 4474), DCA, Inspector - Ride #22, SF (1735, 2067), Creativity, Inspector - NECMP #48, RCA - Archimedes
Reply With Quote
  #3   Spotlight this post!  
Unread 14-03-2013, 21:30
MagiChau's Avatar
MagiChau MagiChau is offline
Registered User
AKA: Michael Chau
FRC #0085 (B.O.B. (Built on Brains))
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Zeeland, Michigan
Posts: 875
MagiChau is just really niceMagiChau is just really niceMagiChau is just really niceMagiChau is just really nice
Re: Comms/FMS Problems

I do not know the cause but a safe thing to always check are the wire connections and WAGO connectors for the cRIO secure and tight. If it is loose the cRIO power could be resetting.
Reply With Quote
  #4   Spotlight this post!  
Unread 14-03-2013, 21:53
hzheng_449 hzheng_449 is offline
Registered User
AKA: Harrison Zheng
FRC #0449 (Blair Robot Project)
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Rockville, MD
Posts: 36
hzheng_449 will become famous soon enough
Re: Comms/FMS Problems

So I am a programmer on OP's team

First off thanks a bunch for the responses already

We're pretty sure its not an electronics issue, since as we mentioned before, if we reboot w/ stuck code it works fine. We even managed to test our climber (which isn't too gentle) with this stick/reboot method and it was completely fine.

This testing of the climber also happened w/ the camera on, so we're pretty sure it isn't a camera issue and the bandwith its using is aound 3.4mb/s out of our 7 so we dont think its bandwith either

The real puzzle is why the code wont work from a deploy, but will work after we stick and reboot.
Reply With Quote
  #5   Spotlight this post!  
Unread 14-03-2013, 22:03
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,567
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: Comms/FMS Problems

Can you enable netconsole and look at the output when this happens?
Reply With Quote
  #6   Spotlight this post!  
Unread 14-03-2013, 22:08
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is online now
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,671
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Comms/FMS Problems

Firstly, what on earth do you mean by stuck/stick code?

Secondly, try using Netconsole and see what output you get when you run the command that breaks things. Also look at what diagnostic messages you're getting when you run that command. That info will help troubleshoot the problem.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #7   Spotlight this post!  
Unread 14-03-2013, 22:36
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,800
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: Comms/FMS Problems

You should be running the DS practice match option in the pits to try reproducing the issue.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 14-03-2013, 23:02
LaggFTW LaggFTW is offline
Registered User
AKA: Bowen Zhi
FRC #0449 (The Blair Robot Project)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Maryland
Posts: 1
LaggFTW is an unknown quantity at this point
Re: Comms/FMS Problems

Quote:
Originally Posted by Kevin Sevcik View Post
Firstly, what on earth do you mean by stuck/stick code?
Stuck code is basically a description for the process of building/compiling the code, and then setting it to run as startup on the cRIO (the communications issue seems to pop up less often when we run the code that's already on the cRIO whenever we start, when compared to deploying/running code from a computer to the cRIO).

Netconsole seems useful, I will look into it, thanks.

Another issue that may factor into this is possible concurrent modifications to the Jaguars, as we are looping reading inputs and setting outputs in different loops. I don't exactly know what the Jaguar is doing on lower layers of software, so to what extent this may affect our issues is unknown.
Reply With Quote
  #9   Spotlight this post!  
Unread 14-03-2013, 23:24
MikeE's Avatar
MikeE MikeE is offline
Wrecking nice beaches since 1990
no team (Volunteer)
Team Role: Engineer
 
Join Date: Nov 2008
Rookie Year: 2008
Location: New England -> Alaska
Posts: 381
MikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond repute
Re: Comms/FMS Problems

Have you run with the Driver Station in "Practice" mode?
This simulates the field conditions by running in Autonomous then moving into Teleop.

It wasn't clear to me from the earlier post if you have ruled out the possibility that the problem only occurs when you leave Autonomous (e.g. on the field) rather than starting from reboot in Teleop (testing in pit).

In other words, what Marc said more concisely

Last edited by MikeE : 14-03-2013 at 23:26. Reason: Spotted Marc's response after posting
Reply With Quote
  #10   Spotlight this post!  
Unread 14-03-2013, 23:52
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
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: Comms/FMS Problems

Running with Front Panels open can significantly affect the CPU Usage an consequently the timing of your VIs. When combined with usage of the CAN Bus, running from the PC may be causing CAN timeouts. These timeouts trigger errors which are computationally expensive to process, leading to more errors resulting in never being able to communicate with your Jags.

Just a theory, but I would check the Diagnostics tab of the DS and the cRIO CPU Usage on the Charts tab in addition to the NetConsole suggested above.
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 23:31.

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