Go to Post A problematic dynamic and culture becomes apparent when failure persists for such a duration and reoccurs so frequently that students begin to accept it as the norm, and never learn the proper way to do things. - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 12-02-2011, 21:25
Programming3335's Avatar
Programming3335 Programming3335 is offline
Registered User
FRC #3335 (Cy-Borgs)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Cypress
Posts: 8
Programming3335 is an unknown quantity at this point
Can't get code running

Although we think that we can download the code to the robot, when we hook up the robot to the driver station (it says there's code on it), the robot doesn't respond to any joystick input and the println at the beginning of the teleop code.

We're not sure where exactly the problem is. We have to kill the (deploy, run) in Netbeans (we're running Java) since it seems to hang there forever, but once again, the driver station says there's code on it (and we just updated to the latest image, which would've erased any code on it).

Output at the the end of deploy, run:
[cRIO] [Squawk VM] Version: 2011 FRC, Feb 2 2011, 13:26:47
[cRIO] FPGA Hardware GUID: 0x(hex address)
[cRIO] FPGA Software GUID: 0x(same hex address)
[cRIO] TEST TEST YAY init (print line from robotInit)
BUILD STOPPED (total time: 4 minutes 1 second)
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2011, 23:51
Garten Haeska's Avatar
Garten Haeska Garten Haeska is offline
Registered User
AKA: Garty
FRC #2861 (Infinity's End)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Lake City, MN
Posts: 219
Garten Haeska has a spectacular aura aboutGarten Haeska has a spectacular aura about
Re: Can't get code running

i big thing to check is to see if your pmw cables are in the right way, make sure motors are working against each other and see if you get a red or green light on your jags if you are using them, but first things first, is your comuter reading your joysticks it might also be helpful to see your code?
Reply With Quote
  #3   Spotlight this post!  
Unread 13-02-2011, 02:04
Programming3335's Avatar
Programming3335 Programming3335 is offline
Registered User
FRC #3335 (Cy-Borgs)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Cypress
Posts: 8
Programming3335 is an unknown quantity at this point
Re: Can't get code running

I'd love to post my code if I could-- but the thing is, I can't access this site on any computer at our build location because they block all forums on their networks, (I was typing the first post out on my phone) and now that I'm at home I don't have a copy of the code with me. I'm 90% sure that the code itself is not the origin of the issue, however, since at one point I went so far as to revert to the basic drive.tankDrive(leftStick, rightStick) but with no change in the condition, and I'm certain that the RobotDrive is instantiated with the proper values for the motor channels.

We're getting communications from the joysticks alright, they light up green on the dashboard and then blue when buttons are pressed down. That was the first thing that I checked.

I also don't think that the motors could "work against each other", since we're using independent wheel mecanum drive.

That pretty much leaves the wiring. I never thought to look in the robot, since I pretty much assumed that the electrical team had done their job correctly. I seem to recall the Jags blinking yellow when the robot was on, so at least they were plugged in. I presume that green means that they're on and receiving a signal to move, correct?

Regardless, that'll be the first thing I check on when I go back tomorrow.
Reply With Quote
  #4   Spotlight this post!  
Unread 13-02-2011, 14:24
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: Can't get code running

Forgive the patronizing question, but did you remember to ENABLE the robot from the Driver Station?
Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2011, 14:55
Programming3335's Avatar
Programming3335 Programming3335 is offline
Registered User
FRC #3335 (Cy-Borgs)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Cypress
Posts: 8
Programming3335 is an unknown quantity at this point
Re: Can't get code running

So we ended up getting the robot running, but it wasn't what either of us thought it was, and it wasn't the fault of the software or electronics teams- the digital sidecar was dead. Thank goodness we had an extra laying around, although we don't have any backups anymore...
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 19:11.

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