Go to Post This is a benefit of the district model. It brings the events back into the schools. - ezygmont708 [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 05-03-2011, 02:54
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Robot Code Making Programming Laptop Disconnect

We are getting an extremely weird problem here. When we run a certain version of our code on a practice bot, the robot responds to commands for about a half of a second, then the robot stops and on the programming laptop, a "Lost connection to real time target" message is displayed. If you don't click abort, after about 20 seconds it gets connection for another few seconds, and then loses connection again.

Our setup has two laptops, the 2010 classmate and a windows seven programming laptop our team bought. The programming laptop is running code via pressing the "run" button (not running as startup). I believe the C RIO had some startup code on it, but that was overwritten. Both laptops are connected to the router from the 2011 KOP via their onboard wireless systems. The router connects to Port 1 of the C RIO. We are using CAN for our jaguars, with the black jaguar bridge.

With an older version of the code, the robot still runs and everything works perfectly. The newer version has some added functionality though. We can go back and forth between the two, and the older code consistently works, and the newer code consistently doesn't.

When the error message appears on the programming laptop, the classmate does not state either a connection or robot code loss (judging from the lights on the driver station). However, the robot does stop responding to driver signals.

We have a custom dashboard, but it is only sending back a few things (two or three clusters of 2 numbers each and the array coming out of elapsed times). We are not sending back any camera feed. I don't see what would be starving the connection.

As far as I can tell from the limited debug information we're getting (since it freezes so often we don't get much), the teleop loop is not running abnormally slow.

Tomorrow, I'll try swapping out each vi individually and see when it breaks.

If anybody has any suggestions for what might be happening, please post them. I'll try to get our team leader to upload the robot code on our website, so I'll post the link when that gets up. Otherwise, thanks for helping!
  #2   Spotlight this post!  
Unread 05-03-2011, 06:28
Dkt01's Avatar
Dkt01 Dkt01 is offline
Programming Mentor
AKA: David
FRC #1756 (Argos)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Peoria, Il
Posts: 145
Dkt01 will become famous soon enough
Re: Robot Code Making Programming Laptop Disconnect

Try disabling the wireless on whichever laptop you aren't currently using. For example, if you are doing a real-time deployment, only use wireless on the laptop that is executing the deployment.
This seemed to solve much of our problems, but we still lost communication occasionally.
On a similar note, we seemed to notice that we lost communication more frequently during a real-time deployment when the driver station was open. We didn't look into this much, but it seemed strange to us.
  #3   Spotlight this post!  
Unread 05-03-2011, 14:58
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Robot Code Making Programming Laptop Disconnect

Quote:
Originally Posted by Dkt01 View Post
Try disabling the wireless on whichever laptop you aren't currently using. For example, if you are doing a real-time deployment, only use wireless on the laptop that is executing the deployment.
This seemed to solve much of our problems, but we still lost communication occasionally.
On a similar note, we seemed to notice that we lost communication more frequently during a real-time deployment when the driver station was open. We didn't look into this much, but it seemed strange to us.
We're using both, one to host the code and the other to host the driver station.

Also, using both laptops in the exact same configuration worked fine with a different version of the robot code.
  #4   Spotlight this post!  
Unread 06-03-2011, 11:04
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,801
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: Robot Code Making Programming Laptop Disconnect

Sounds like an overly saturated CPU -- code demanding too much CPU time.

Try running the System Manager and watching the CPU utilization.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #5   Spotlight this post!  
Unread 08-03-2011, 01:55
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Robot Code Making Programming Laptop Disconnect

Found the problem - one single loop in periodic tasks didn't have a wait on it. Ugh. I should remember to use the CPU measurer thing (See, I don't even know its name!) more often.
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 03:52.

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