Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   The three lights are green, but the robot is unresponsive. (http://www.chiefdelphi.com/forums/showthread.php?t=112955)

tomyurek 07-02-2013 09:08

The three lights are green, but the robot is unresponsive.
 
Our robot worked fine with last year's software, but once I updated everything we're having issues. We can connect to the robot just fine and deploy code to it. Upon going to the Driver Station, the three green lights are lit, but when we hit Teleop Enable, nothing happens. The Jaguars on the robot continue to blink and we don't get an image from the camera. I have tried programming our robot both in Java and LabVIEW, but both had the same problem. This problem persists whether we have a wireless or wired connection. To my knowledge, everything is up to date. Any suggestions?

z_beeblebrox 07-02-2013 09:17

Re: The three lights are green, but the robot is unresponsive.
 
First, whether you get a camera image isn't related to whether teleoperated is enabled. The camera is enabled and disabled with a button on the dashboard.

The main problem that you describe of is possibly with your software. If the code doesn't do what you want, it will still compile and download but won't work when you enable the robot. Carefully look through that. Also, check that all the wiring is correct and the PWM cables are connected to the right ports.

Pardon my bad spelling; this was typed on my phone.

Mark McLeod 07-02-2013 09:34

Re: The three lights are green, but the robot is unresponsive.
 
To isolate the problem to code vs hardware, I'd suggest creating a default LabVIEW program to Build/Run as Startup just to see if the robot responds.
I assume you are using the FRC cRIO Imaging Tool to change languages?

Wildcats1378 07-02-2013 11:38

Re: The three lights are green, but the robot is unresponsive.
 
Make sure to check the wiring on the sidecar. If the jaguars are blinking, that means they aren't getting a signal... Try flipping the wire ;)
There is a little diagram on the sidecar actually, it will tell you like
SIG
+
-

So make sure the signal wire (normally white) is plugged into the signal port. Same on the jaguar.

ehochstein 07-02-2013 11:59

Re: The three lights are green, but the robot is unresponsive.
 
Also ensure you have a cable going to your digital sidecar from you crio slot 2. Our ribbon cable fell out in the middle of a climb last night and it took us awhile to figure out why we quit moving!

tomyurek 07-02-2013 16:50

Re: The three lights are green, but the robot is unresponsive.
 
To my knowledge, it's a software issue. The same code worked just fine before I updated everything. I am using the cRIO imaging tool to change languages. The camera does not broadcast anything to the screen when the enable button is pushed (but it used to before the update). When I programmed in LabVIEW I had it run as startup.
The code did not run on the old electrical configuration or the new one we just setup (same error). I'll still check hardware when I get back on Friday, but I doubt that's the issue.

Greg McKaskle 08-02-2013 07:55

Re: The three lights are green, but the robot is unresponsive.
 
The camera from the dashboard should work even when disabled. If using LabVIEW, please open the teleop VI and probe to see if the code is being called and if anything is being written to the motors.

It may also be useful to use Test mode. Put the DS into test mode, click on the dashboard tab for test, select the motor output value and set it to something nonzero. Enable the robot and hit the enable button. If the motor doesn't move or the controller doesn't blink as expected, check the PWM values in the table to the electrical wiring.

If it moves in test mode, electrical is fine, and the code is not giving the motor a value or not giving it often enough.

Greg McKaskle

Tom Line 08-02-2013 08:14

Re: The three lights are green, but the robot is unresponsive.
 
Just for my peace of mind, did you remember to reimage the cRIO with the latest image?

Mark McLeod 08-02-2013 08:28

Re: The three lights are green, but the robot is unresponsive.
 
1 Attachment(s)
For the camera problem...
The camera to Dashboard doesn't depend on the cRIO.
That should work event if there's no cRIO at all.

There are new reasons that the camera might not be working that didn't exist last year.

If you've used the FRC Bridge Configuration tool on your DLink, then there is now a 7Mb/s bandwith limit that affects the camera video stream. The easy check for this is to enable the camera then use the new Dashboard video controls to cut the video resolution/fps/compression way down, just to see if a picture appears.

tomyurek 09-02-2013 08:33

Re: The three lights are green, but the robot is unresponsive.
 
Okay guys, I got it working. It turns out that it actually was a hardware problem, specifically that the Digital Sidecar was not receiving power. I'm not sure how we missed that twice, but oh well.
Thanks for the help everyone!


All times are GMT -5. The time now is 02:09.

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