Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   roboRIO issues (http://www.chiefdelphi.com/forums/showthread.php?t=135938)

Dave_4539 19-03-2015 10:09

roboRIO issues
 
Last night we changed some stuff in our code. It worked fine then, but this morning when we booted up the driver station it shows that we have no robot code. I have tried re-imaging and updating firmware, we tried different codes, resetting the roboRIO. Is there some other update that we missed, or something we can do? Any help is appreciated.

Alan Anderson 19-03-2015 10:28

Re: roboRIO issues
 
You haven't given enough detail for a good guess as to what might be going on. There are a lot of obvious questions that need to be answered. For instance, what programming language do you use? How are you loading the code onto the roboRIO? What messages do you see when you do it?

Mr.Paulson 19-03-2015 10:48

Re: roboRIO issues
 
Sorry for the lack of information. Here goes:
1. We are programming in LabView.
2. For our first competition in Week 1, we did not have pneumatics on our robot but have since added them to our practice bot. We took off the RoboRIO prior to bag to put onto our practice bot so we could do some testing, so it is the same part as we used for the competition.
3. After we added pneumatics, the program worked for us and we had no issues for the past two weeks.
4. Last night we wrote in pneumatics into our autonomous code and uploaded it this morning. The code built correctly and uploaded successfully.
5. We are able to connect wirelessly from our drivers station, but it says there is no robot code.
6. We tried to install our old codes (even back to just a tank drive code) and it builds and deploys but still the drivers station says there is no code.
7. We have not tried to drive tethered to the drivers station yet.
8. We did reinstall and update the RoboRIO and still have the same problems.
9 We install the code using the USB AB cable.

Please ask for more information if you need it. I am the lead mentor, but have nothing to do with the programming. That mentor is currently unavailable.

Thanks in advance for your help.

Tungrus 19-03-2015 11:03

Re: roboRIO issues
 
May be you already know about it, still, in the build specification you have to choose "...Start up..." (bit vague on verbiage, it set as startup or something) instead of deploy.

Do you see the roboRIO (COM)?

plnyyanks 19-03-2015 12:53

Re: roboRIO issues
 
Quote:

Originally Posted by Tungrus (Post 1459784)
May be you already know about it, still, in the build specification you have to choose "...Start up..." (bit vague on verbiage, it set as startup or something) instead of deploy.

Both of these are from the context menu for your rio target:
- First 'Build' the code.
- Second 'Run as Startup'

Alan Anderson 19-03-2015 12:55

Re: roboRIO issues
 
Quote:

Originally Posted by Mr.Paulson (Post 1459779)
6. We tried to install our old codes (even back to just a tank drive code) and it builds and deploys but still the drivers station says there is no code.

When you say "deploy", what exactly are you choosing on the computer in order to do it? There are menu commands named Deploy, but none of them are what you should be using. In the same popup menu where you choose Build, you should be choosing Run As Startup in order to put the code on the robot.

Make sure you haven't turned on the "No App" option on the roboRIO after using the Imaging Tool.

BradFerg 19-03-2015 13:08

Re: roboRIO issues
 
Is your radio still encrypted from Week 1? You have to reset the network settings on the radio otherwise it will be setup to connect to the competition FMS.

Are you able to access the Web UI on the roboRIO (roboRIO-####.local where #### is your team number)?

Brad

pastelpony 19-03-2015 14:59

Re: roboRIO issues
 
I actually worked with a team at Pine Tree who had trouble like this. I'm not sure what exactly was wrong, but deploying from another computer solved the problem. Whenever code was sent from the main computer, the roboRIO would not acknowledge the code.

Arron1999 19-03-2015 16:03

I am the student that found the problem. So I finished building the auto for the code we were currently using. To build and deploy the code this is what I did. I right clicked on FRC Robot Boot up Deployment, then I clicked on build. After the code built successful I then right clicked on FRC Robot Boot up Deployment and clicked deploy. The computer said that the code deployed successfully. I then power cycled the robot and when the driver station connected with the robot it said that there was no robot code. This is what we have done every time we built and deployed code and had zero problems.

Arron1999 19-03-2015 16:06

We also have two programming computers. I tried to deploy code from both of them and nothing would work like it did in the past.

If there is another way to build or deploy code I would greatly appreciate it.

Tungrus 19-03-2015 16:16

Re: roboRIO issues
 
If you have firewall and/or anti-virus software disable them and try.

pastelpony 19-03-2015 16:38

Re: roboRIO issues
 
Quote:

Originally Posted by Arron1999 (Post 1459848)
I am the student that found the problem. So I finished building the auto for the code we were currently using. To build and deploy the code this is what I did. I right clicked on FRC Robot Boot up Deployment, then I clicked on build. After the code built successful I then right clicked on FRC Robot Boot up Deployment and clicked deploy. The computer said that the code deployed successfully. I then power cycled the robot and when the driver station connected with the robot it said that there was no robot code. This is what we have done every time we built and deployed code and had zero problems.

I'm pretty sure you're supposed to be using "Run As Startup"

xXhunter47Xx 19-03-2015 16:59

Re: roboRIO issues
 
Quote:

Originally Posted by Arron1999 (Post 1459848)
I am the student that found the problem. So I finished building the auto for the code we were currently using. To build and deploy the code this is what I did. I right clicked on FRC Robot Boot up Deployment, then I clicked on build. After the code built successful I then right clicked on FRC Robot Boot up Deployment and clicked deploy. The computer said that the code deployed successfully. I then power cycled the robot and when the driver station connected with the robot it said that there was no robot code. This is what we have done every time we built and deployed code and had zero problems.

AFAIK you don't have to power cycle the robot every time you deploy on the roboRIO.

Geerthan 19-03-2015 18:38

Re: roboRIO issues
 
Quote:

Originally Posted by Arron1999 (Post 1459848)
I am the student that found the problem. So I finished building the auto for the code we were currently using. To build and deploy the code this is what I did. I right clicked on FRC Robot Boot up Deployment, then I clicked on build. After the code built successful I then right clicked on FRC Robot Boot up Deployment and clicked deploy. The computer said that the code deployed successfully. I then power cycled the robot and when the driver station connected with the robot it said that there was no robot code. This is what we have done every time we built and deployed code and had zero problems.

Your second step will not keep code on the robot after a power cycle. The alternate mode for downloading code, however, fixes this problem.

According to WPI,
Quote:

In the Project Explorer, click the + next to Build Specifications to expand it.
Right-click on FRC Robot Boot-up Deployment and select Build. Wait for the build to complete.
Right-click again on FRC Robot Boot-Up Deployment and select Run as Startup. If you receive a conflict dialog, click OK. This dialog simply indicates that there is currently a program on the roboRIO which will be terminated/replaced.
Either check the box to close the deployment window on successful completion or click the close button when the deployment completes.
The roboRIO will automatically start running the deployed code within a few seconds of the dialog closing.
This should keep code saved even after cycling power on the RoboRio. However, a detailed link can be found here and has fancy images. (under Deploying the Program)

Greg McKaskle 19-03-2015 19:36

Re: roboRIO issues
 
Deploy does copy the built exe to the controller, but doesn't mark it as the startup app. This is useful for the user with more than one deployed app. I would prefer to hide it for FRC, but we haven't gotten to it yet.

Greg McKaskle


All times are GMT -5. The time now is 04:23.

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