![]() |
Program deployed, no response from robot
Hi, I'm a rookie this year, and I'm having trouble with the confusing documentation that we get. So far we've got the basic build done and the radio hooked up to the cRIO. We've had some networking problems as far as wireless goes, so we just use a long ethernet connection(we'll deal with one problem at a time).
I have been able to deploy the default RobotMain.vi program as-is to the robot. We're programming on the classmate so in order to get to the Driver Station we have to disconnect from the cRIO and switch user to Driver. After a lot of troubleshooting we have been able to get the DS to recognize the cRIO and that it has robot code. It also recognizes one of our joysticks. However, enabling the program doesn't do anything (in any mode). In the error box it mentions something about a while loop taking too long(I can't remember exactly right now, i'll edit this tomorrow when I'm back at school). The jaguars also keep flashing yellow no matter what we do. 1. Does anyone know how to get the program working? 2. Should I image our cRIO? We had it imaged on the kickoff so I don't know if it's the latest or not. 3. Should I install a newer Driver Station? 4. Should I install drivers for the Logitech Attack 3 joystick? 5. Slightly unrelated: Is there a good place to learn how to program the cRIO using LabVIEW? Not just the language itself but to control the robot. |
Re: Program deployed, no response from robot
Check your ribbon cable going from your cRIO and your sidecar. This year some of the cables have been messed up. Follow this guide to fix it.
http://www.usfirst.org/sites/default...structions.pdf |
Re: Program deployed, no response from robot
Quote:
Quote:
First, is the big amber Robot Signal Light plugged into the Digital Sidecar? If not, you can still look at the little green LED next to the RSL connector. What is the light doing when the robot is disabled? What is it doing when you enable the robot? Second, is the Digital Sidecar properly powered? Are the BATT, +5v, and +6v green LEDs all brightly lit? Third, is the cable from the cRIO's digital module to the Digital Sidecar assembled correctly? Some of the ones supplied in the Kit of Parts have one of the connectors backwards. See here for details. Quote:
|
Re: Program deployed, no response from robot
Quote:
Quote:
Quote:
Quote:
We also get an error message on the Driver Station. Something about error -44061 "left and right motor" loop is taking too long. I've heard good things about the http://www.frcmastery.com/ videos.[/quote] |
Re: Program deployed, no response from robot
I would also suggest that you try to get your hands on another computer to program on, it will make your life 100x easier. Even an old laptop donated from someone that isn't using it anymore will work.
|
Re: Program deployed, no response from robot
Quote:
|
Re: Program deployed, no response from robot
Yes a desktop would work, and if you have a wireless router you could just plug into that and not have to worry about wireless card.
|
Re: Program deployed, no response from robot
Quote:
|
Re: Program deployed, no response from robot
Same way it would with a wireless router, you set the IP address of the computer the same way you do for wireless. The router is basically just giving it wireless access. I will try to find the instructions for past years to set up a router configuration.
|
Re: Program deployed, no response from robot
Quote:
|
Re: Program deployed, no response from robot
Here are some instructions on how to set up a router to go in between a computer and the radio.
http://www.usfirst.org/uploadedFiles...ed-Rev-0.7.pdf |
Re: Program deployed, no response from robot
Quote:
|
Re: Program deployed, no response from robot
Yeah, that would be fine. We had the router from previous years.
|
Re: Program deployed, no response from robot
Quote:
|
Re: Program deployed, no response from robot
Quote:
|
Re: Program deployed, no response from robot
Here's the error code we get (obviously the date is wrong, I copied and pasted from elsewhere. But the error is identical):
Code:
ERROR <Code> -44061 occurred at "Left and Right Motors" in the VI path: Robot Main.viOne thing I'm not clear on is the proper way to upload a program to the cRIO. Do we just press run and wait for it to deploy? Somewhere else on CD I found instructions saying to right click the build target and click "build", then "run on startup". Which is the better way to do it, at least for development? |
Re: Program deployed, no response from robot
You get an instance or two of that error, or does it keep repeating? The first is normal, the second is a problem.
|
Re: Program deployed, no response from robot
Quote:
|
Re: Program deployed, no response from robot
We have the same problem and I've triple checked everything!!
I read the posts about the possibly bad cable, but that wouldn't be a problem if we're using last years DB37 cable right? Would appreciate any suggestions for this because I'm stuck... Thanks. |
Re: Program deployed, no response from robot
Is it possible that the default project has some bad code? Could someone upload a project that they know works on their robot, to see if the code is the problem?
|
Re: Program deployed, no response from robot
I'm going to try to create the LV project from scratch tonight. Maybe something got messed when the SW update changed our code to reflect the new slotting in the cRIO.
Perhaps starting fresh and creating the project in LV2011 will work. I'll post when I'm done with the results. |
Re: Program deployed, no response from robot
Nothing new. Tried making a new project from scratch and it didn't work... I'm out of ideas for now.
|
Re: Program deployed, no response from robot
What errors are you getting? Have you tried running an example? Can you elaborate on what you've tried and what does work?
Greg Mckaskle |
Re: Program deployed, no response from robot
Sure. We mostly have camera errors (error 44003 to be exact as well as some communication errors). It says something about not being able to connect to the camera and authenticity. We manually set up the camera to have the username and password that were recommended so I'm not sure what else to do to eliminate this error.
The only thing I can think to try next is to use the setup program for the camera and see if that helps. Like I said, we manually configured the camera so maybe when we setup the camera manually, we missed something but that's my last idea... We also, occasionally, get an error that says the loop that contains robot drive is running too slow, but I've looked through everything and all our loops have a delay built-in so there isn't anything starving the processor that I can see. Plus, robot drive is used in many different places. I'm not sure exactly which part of the code it's talking about and the error message doesn't specify. I appreciate your help. |
Re: Program deployed, no response from robot
Still out of ideas. I'd really appreciate if someone would upload a verified working project that we could test out to see if it really is the code or something else.
|
Re: Program deployed, no response from robot
Maybe you can post some of your code, the vision code is where I would start. (Post a snippet instead of just a screenshot.) Does this happen regardless of driver station mode?
I am guessing something is hogging all of the cRIOs CPU, and the RobotDrive.vi is not getting enough priority to run, or is never executed in the first place. Quote:
*Deploying sets your program to run without the laptop used to deploy. This is more useful for letting the drivers train, while more programming is going on. The code is however erased every time you reboot the cRIO. (That includes power cycles.) If your code is bad, the robot is easily recoverable by simply resetting the power. *Deploying, and setting "run on start-up" will always run your code, even after power cycles. This is for competition and any time you need to use the robot without the computer used to program it. (EG. Drivers training on days without the programmers.) I typically wouldn't use this until I have tested it by simply deploying first. This will rule out issues with your code maxing out the cRIOs CPU. |
Re: Program deployed, no response from robot
We finally got it working. Our electrical team messed with the pins coming from the jaguars, and said they put them on channels 3 and 4 or something. Basically the pins suggested from the quick build were not the right ones. We're not sure why, or how we would go about adding new motors. I guess we'll figure it out.
|
Re: Program deployed, no response from robot
you do not need to put code that is in teleop inside a while loop. it loops automatically
|
Re: Program deployed, no response from robot
the problem is that you put a while loop inside of the teleop code. Because the code automatically repeats itself, if you repeat it inside of the code, and it takes longer than it does to execute teleop again, it would come up with an error. Try taking the while loop out.
|
Re: Program deployed, no response from robot
Quote:
Thanks in advance. |
Re: Program deployed, no response from robot
Quote:
|
Re: Program deployed, no response from robot
Quote:
|
Re: Program deployed, no response from robot
Quote:
We have not tried moving the Jaguar pins into different channels yet (we will look at it when we have our next meet). |
| All times are GMT -5. The time now is 01:32. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi