Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Our Crio Won't Run deployed Code and there are no Error messages (http://www.chiefdelphi.com/forums/showthread.php?t=91182)

Logos 07-02-2011 18:12

Our Crio Won't Run deployed Code and there are no Error messages
 
Hi, Our Crio has not been able to use the driver station since day one of the build period and we have been madly trying to get it working

here's what we are doing.

we format the crio according to the documentations instructions exactly
then we push down the basic default code, and we have tried some of our own versions as well with no avail

after that we log into the driver account and it says we have the crio image in diagnostics and all of the lights are green. the only problem is is that our controls do not make our jaguars work but we do have green lights on our controls and when we press the trigger the light in the driver station responds, it's just our control board doesn't

Robototes2412 07-02-2011 19:47

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
First,

There are 3-5 main languages used by people to program the robot. Can you please specify what language you are using?

Logos 07-02-2011 20:25

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
Sorry about that, we are using c++ in windriver as our language

sam_who 07-02-2011 21:11

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
Are the green lights you mentioned communications, robot code and the stop botton?

sam_who 07-02-2011 21:19

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
I'm making the assumption that you're attempting to control the jaguars via PWM. Can you confirm?

Have you connected the PWM cables to the correct channel on the digital sidecar?

They PWM cables can be plugged in white-red-black or black-red-white
Are the PWM cables plugged in correctly? At both ends?

Also, did you set your team number at Window -> Preferences -> FIRST Downloader Preferences (can't remember how crucial this last item is)?

sam_who 07-02-2011 21:22

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
Whenever I deploy new C code, I have to issue a 'reboot' command over the serial port or power cycle the crio for the changes to take effect.

sam_who 07-02-2011 21:30

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
Are you enabling the robot?

When the crio reaches some magic point during its boot sequence, the signal light starts blinking rapidly. Once the crio is fully booted and ready to be enabled, the signal light blinks more slowly than before. When the robot is enabled, the signal is on with very minimal blinking. For all intents and purposes, the signal light is on steady.

Once you see the above three states, you'll know what I'm talking about.

The driver station has a setup tab. Is the team number set correctly?

One last thing while I'm thinking about it. Does the driver station show the battery voltage?

Logos 07-02-2011 22:18

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
yes we are using pwms we reboot it every time, yes i mean the communications robot code and stop button green lights the team number is set correctly, the pwms are correctly plugged in yes the driver station shows battery voltage

thanks for looking at this sry i took a while to reply

Matt Krass 07-02-2011 23:13

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
Are you pressing the green enable button? The status indicator should read "Teleoperated Enabled" in the driver station after you push the button.

When you try to drive, do you notice if the lights on the Jaguars are doing anything? I believe when they're receiving a neutral PWM signal they're solid orange, and then they flash green and red depending on which direction you're driving them. This is based on my (somewhat quirky) memory and CAN mode, so I'm not 100% sure. What are your Jags doing?

Matt

davidthefat 08-02-2011 00:57

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
Remember to change your battery constantly... If it drops below 11V, it sometimes does not respond.

Logos 08-02-2011 15:48

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
After we enable it, it syas teleop enabled and the jaguars lights keep flashing yellow like they are on standby. Our battery voltage is just above 12v

Matt Krass 08-02-2011 16:02

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
Quote:

Originally Posted by Logos (Post 1018542)
After we enable it, it syas teleop enabled and the jaguars lights keep flashing yellow like they are on standby. Our battery voltage is just above 12v

Flashing yellow like that indicates no signal I believe. Re-check all of your PWM cables for proper orientation and a snug fit. Otherwise it sounds like your robot is up and running.

Logos 09-02-2011 15:41

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
Except that it's not working, all of our pwm's are connected properly and our robot should be working but it isn't, thanks for your time guys

Mark McLeod 09-02-2011 15:58

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
Could be code and could be electrical.

Take a photo of the Digital Sidecar, so we can see what's connected where.

I don't remember if the basic default code actually does anything.

Matt Krass 09-02-2011 17:51

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
It may also be worth connecting a servo motor (any standard servo will do) to the sidecar and putting the 6V jumper in place to power it, and just seeing if it reacts at all to your joystick inputs.

Just to clarify, the servo should connect to one of the PWM outputs you're trying to drive a Jaguar with, just to clarify a valid signal is being generated.

Matt

Matt Krass 09-02-2011 17:59

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
If you're going to be working in the shop with your robot this evening, and you have available internet near the robot, PM me tonight, I can do a live troubleshooting session with you via Skype or some other system.

Logos 12-02-2011 09:59

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
sry i couldn't do that but i can give you our robotiocs schedule if you want to try again

we do saturdays 9am-3pm eastern time
and weekdays from 3:30 pm-6:30 except sometimes we leave by 5:30

Thanks a lot

chuckmerja 21-03-2011 23:48

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
We just ran into a similar problem...we were going to practice a bit with our "junkyard" bot - altho it has legit cRio, digital sidecar, power distribution, we use Victors instead of Jags, and of course some spikes.
Anyway, the code will deploy, and we can ping all the way to the cRio, moreover, the drivers station reports green lights for communications, robot code, etc, but we get nothing - I mean nothing, when we try to drive. Not one button or joystick axis will respond. Ironically, we get video from the camera, again indicating communications are good. We have reimaged, redeployed several times, but nothing. It is almost like the digital sidecar is not working or we have ALLL the wires wrong, since nothing will work. This has befuddled us for two nights, and is getting a bit frustrating. Help would be appreciated! Thanks, Chuck.

Chexposito 22-03-2011 00:36

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
have you tried looking at your target consul? errors that don't show up in compilation because they are not syntax errors will appear there (ex. code with the gyro not on analog 1 will compile because the syntax is correct, but will not operate because it is not on analog 1).
if you are 100% sure that you connected all of your pwm's correctly on both ends and have declared all of your motor controllers correctly, then they are not receiving a signal from the side-car which could electrically be (based on previous info):
1. Bad C-Rio Card
2. Bad Side-Car Cable
3. Bad Side-Car
4. Bad Motor Controllers
the best way to try to determine which it is, is to replace each individually to see which is the problem... a very expensive problem if you don't have backups...

rwood359 22-03-2011 03:35

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
Quote:

Originally Posted by chuckmerja (Post 1043507)
We just ran into a similar problem...we were going to practice a bit with our "junkyard" bot - altho it has legit cRio, digital sidecar, power distribution, we use Victors instead of Jags, and of course some spikes.
Anyway, the code will deploy, and we can ping all the way to the cRio, moreover, the drivers station reports green lights for communications, robot code, etc, but we get nothing - I mean nothing, when we try to drive. Not one button or joystick axis will respond. Ironically, we get video from the camera, again indicating communications are good. We have reimaged, redeployed several times, but nothing. It is almost like the digital sidecar is not working or we have ALLL the wires wrong, since nothing will work. This has befuddled us for two nights, and is getting a bit frustrating. Help would be appreciated! Thanks, Chuck.

First the obvious potential error - is the DIO module in slot 4?
Are you getting any errors in the message window in the Diagnostic Tab?
Do the LEDs on the Victors change from blinking to solid when you enable?
If you are using LV, when you probe the joystick functions, are you getting correct readings?

Mark McLeod 22-03-2011 07:32

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
I've got another direction to look, as well.

Test your driver controls.

Go to the Driver Station Setup tab and check to see that your USB devices are all listed on the right.

Push a button on each of your joysticks one-at-a-time and the corresponding USB input should light up blue.
If you're using the Cypress, that entry may already be blue if one of your switches is normally closed.

We see a lot of this type of behavior (lack of controls) when a bunch of stuff is plugged into a single USB hub and it isn't getting the power it needs to run everything.

msulaimain 22-03-2011 07:57

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
You may also want to check your code and see if the number that you've set for the jaguars/victors to connect into the sidecar are connected properly.

If you have stated that the drives should be connected to port 1 in the code, then connect it into port 1 of the PWM side of the sidecar. I made a mistake like this once.

Hope it helps.

Alan Anderson 22-03-2011 15:06

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
Quote:

Originally Posted by chuckmerja (Post 1043507)
It is almost like the digital sidecar is not working or we have ALLL the wires wrong, since nothing will work.

What is the Robot Status Light doing? If the robot is enabled in Teleop, it should be on with a brief wink off every second or two.

JoCo909 02-02-2012 17:17

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
Hi. I've been browsing around the forums and I noticed this thread. Our problem is very similar to this, with some minor differences. We have built and deployed a code for doing multiple things (using C++), and it has deployed fine with no error codes, no indication that anything was wrong. However, we noticed that our alterations to the code do absolutely nothing. We essentially commented out almost the entire code, built and deployed it, and yet it still ran (ex: we commented out our joystick control [2 joys, tank drive setup] and yet when moving the joysticks the robot still drove even when there was no drive built in). All our PWM connections look fine and react perfectly normal, it just seems like the code we're deploying to the robot simply isn't being implemented. Thoughts?

Mark McLeod 02-02-2012 17:20

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
You are pointing to an old .out file.
Check your .out path and the date on that file to see how recent it might be.

slijin 02-02-2012 17:57

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
Although the complete lack of reaction indicates to me that this may not be the case, check your DB37 cable. Have you properly fixed it as per the directions here?

Quote:

Originally Posted by JoCo909 (Post 1118691)
Hi. I've been browsing around the forums and I noticed this thread. Our problem is very similar to this, with some minor differences. We have built and deployed a code for doing multiple things (using C++), and it has deployed fine with no error codes, no indication that anything was wrong. However, we noticed that our alterations to the code do absolutely nothing. We essentially commented out almost the entire code, built and deployed it, and yet it still ran (ex: we commented out our joystick control [2 joys, tank drive setup] and yet when moving the joysticks the robot still drove even when there was no drive built in). All our PWM connections look fine and react perfectly normal, it just seems like the code we're deploying to the robot simply isn't being implemented. Thoughts?

How do you know that your PWM connections "reactly perfectly normally"?
Do lights on your Victors (or Jaguars) turn to a solid orange/yellow, or flash orange/yellow when you enable the robot? If not, what color do they indicate and when do they change?

vraimondi94 02-02-2012 23:44

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
My team has had the same problem. You may not be connected to your CRio or its not recognizing the code.

JoCo909 03-02-2012 15:45

Re: Our Crio Won't Run deployed Code and there are no Error messages
 
Quote:

Originally Posted by slijin (Post 1118725)

How do you know that your PWM connections "reactly perfectly normally"?
Do lights on your Victors (or Jaguars) turn to a solid orange/yellow, or flash orange/yellow when you enable the robot? If not, what color do they indicate and when do they change?

We switched each connection of our PWMs around and tested to see if they were communicating properly (which they are). I'm going to double check, but I believe the last time we tried enabling it it was solid orange/yellow (then flashed green and red rapidly like it should going forwards and backwards). What it seems like to me at the moment is somehow the cRIO is storing one of our old codes and for whatever reason is not replacing it with our new code (even though it gives us no errors when deploying).

If it is of any possible relation, ports 6-10 on our digital sidecar are not working period (but I think that's a problem with our code possibly, I'm working with another of our programmers to look into the issue).


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

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