Go to Post They are "Human Dream and Inspiration Enablement Devices" but since that takes too long to say and explain I use the word "robot". - Foster [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 04-02-2015, 13:15
robat-mentor robat-mentor is offline
Registered User
FRC #3953
 
Join Date: Jan 2013
Location: United States
Posts: 10
robat-mentor is an unknown quantity at this point
Re: C++ deploy code missing

Well after much trouble I think I have found some things that might help. We have found a series of quirks and tricks that are required for deployment to work. In order to help other teams get past these major problems, here's a list of the things you need to know. We learned these the hard way but we're glad to help any other team and save them from the hell we went through.

First of all, it's crucial that you do not have multiple channels active. What I mean by that is that when you plug in the USB cable you MUST disable the wired and wireless LAN adapters in your laptop. This is the ONLY way that Eclipse will not become hopelessly confused and remove the deploy menu option.

Secondly, after you have deployed you MUST unplug the USB and then plug it back in again BEFORE you can deploy again, otherwise Eclipse throws an unrelated error which is very misleading.

Thirdly, after you deploy code you MUST find the "restart robot code" button on the drivers station and press it. Otherwise the drivers station erroneously reports that there is NO ROBOT CODE on the roborio.

Fourthly, don't expect the roborio to flash the RSL like the Crio did. There seems to be only 2 modes. ON SOLID or BLINKING. Neither of these modes seems to have anything to do with robot code or the readiness of the roborio at all.

Finally, As I mentioned, whenever you deploy you MUST disable both wired and wireless LAN adapters so that the USB connection is the ONLY choice that Eclipse has available. Once you have deployed you must unplug the USB connector and enable your wireless adapter so that the drivers station can connect to the roborio. I find this very annoying and time consuming.

We have NEVER been able to deploy using ethernet, wired or wireless at all so we stopped wasting our time trying to make it work. There are always challenges related to the setup and usage of the FRC IDE but this season seems to have magnified those challenges and made them a complete show stopper. Our team has lost 1 week of our build season due to these newly introduced problems. We've been unable to deploy any code and therefore unable to test anything. Is this supposed to be part of the challenge?
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2015, 14:20
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: C++ deploy code missing

Wow - this is a VERY restrictive setup you seem to have. I think the information is GREAT for those having troubles. However, I will say that our team's experience this year is VERY different than yours. We are able to have ethernet and USB connected simultaneously - we are able to deploy via either. We are able to deploy repeatedly - we are able to do so without asking for a robot restart of code or system - and our deploy menu item almost always is present. I do remember seeing it disappear on me once or twice but it came back seemingly without intervention.

I hope your experience can be helpful to WPI/FIRST and to those having troubles, but I don't believe it should be the 'rule' on how to operate.

Good luck and I hope your prescription continues to work for you consistently!

bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2015, 14:34
robat-mentor robat-mentor is offline
Registered User
FRC #3953
 
Join Date: Jan 2013
Location: United States
Posts: 10
robat-mentor is an unknown quantity at this point
Re: C++ deploy code missing

Thank you for taking the time to respond. I am very glad to hear that you haven't faced the problems we and many other teams have. We have learned through bitter experience that to deviate from the hard learned rules only results in many wasted hours reloading Eclipse etc. Your posting actually helps me to highlight another point.

Due to the highly random nature of the problems with the FRC IDE, the playing field is most definately NOT level at all.

I hardly think that it is in the spirit of Gracious Professionalism that our team should lose 1 week of our build season whilst other teams happily have no problems at all.

On the other hand, Solving problems and dealing with all eventualities is what we do best.

If you Google these problems you'll find many that we are not alone.
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2015, 15:52
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,112
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: C++ deploy code missing

Quote:
Originally Posted by robat-mentor View Post
If you Google these problems you'll find many that we are not alone.
In the vast majority of those problems (at least the ones I know of), turning off firewalls and antivirus programs (and following the instructions correctly) has been the solution.


The causes of other less tractable problems are slowly being identified and fixed. One team eventually discovered that their school networking was inappropriately responding to mDNS queries and had to disconnect from that network. Another found that their school networking was actively interfering with their robot's wireless connection as a "rogue access point". As Bag Day is approaching quickly, I recognize that taking time to do deep troubleshooting is a luxury, and I don't know how long it would take to find the underlying issue given your resources. I do know that finding and fixing it will make the development process a lot easier and faster afterward.
Reply With Quote
  #5   Spotlight this post!  
Unread 04-02-2015, 19:44
robat-mentor robat-mentor is offline
Registered User
FRC #3953
 
Join Date: Jan 2013
Location: United States
Posts: 10
robat-mentor is an unknown quantity at this point
Smile Re: C++ deploy code missing

First of all, Thanks everyone for taking the time to respond and offer your help, we greatly appreciate all of it.

I totally agree with everything you've said. Since I own my own industrial automation software development company with a large customer base I can relate to your suggestions and observations. We have already ruled out the things you mentioned including following the instructions properly. As you also mentioned debugging the IDE is a very expensive luxury that our team simply cannot afford. In the absence of working solutions, we have developed a series of workarounds that we are forced to use at this point. We are also happy to share those for all teams having the same troubles. In supporting my customer base I often find that nothing beats being on-site and seeing problems first-hand. Perhaps the best way for our issues to be properly understood would be to come and visit our location. We can demonstrate the problems we're having and the solutions we've found. We'd love it if you can point us in the right direction. Taking that experience away will hopefully lead to some more readily usable solutions for all teams in the future. After many years in the industrial automation software business I am never surprised by the problems that my customer base can run into. Step 1 is always to accept that the customer is actually having the problems they describe and to try accurately identify the swiftest solution that the customer is happy with. No software is ever perfect and no software is ever finished. Customers always find new and interesting ways to make things fail. It's no-ones fault, it's just the way the universe is. There is mind-boggling diversity in life and as we discover more about the universe we discover that we know even less and less, we have more and more questions. If anyone's interested we'd be happy to have you come and see what we've found, we're a sociable bunch so if nothing else we can have a good time.

Thanks again.
Reply With Quote
  #6   Spotlight this post!  
Unread 05-02-2015, 03:06
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,169
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: C++ deploy code missing

Quote:
Originally Posted by robat-mentor View Post
Well after much trouble I think I have found some things that might help. We have found a series of quirks and tricks that are required for deployment to work...

I hope that you find your real problems but these problems and workarounds are a glaring exception, not the rule. We can't be leading other students down this path. What are you going to do at a competition?

We had 5 student programmers (2 with zero experience) install development environments on their own machines (with no help from me) and one of them (mine) is running Linux for development. We have had no problems. All things work as advertised. Admittedly, I've been doing this for 30+ years and I teach others (in corporate settings) about operating systems including VxWorks and embedded Linux. But we've had no unusual issues.

So for teams out there experiencing problems, follow the lead of the consensus of experienced mentors on CD. The problems and solutions described in this thread are an unfortunate anomaly.
__________________
Fast, cheap or working - pick any two!

Last edited by wireties : 05-02-2015 at 04:16.
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 12:07.

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