Go to Post "If I say its name three times, will it appear in my lab?" - Madison [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 14-11-2012, 20:44
Butter's Butter's is offline
Registered User
AKA: Joe Kent
FRC #0522 (Robo Wizards)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Staten Island, New York
Posts: 21
Butter's is an unknown quantity at this point
Cannot move robot

So, this has been an issue for a month now. The other programmers & myself are looking to switch to Java. We inherited C++ from the old programmer, but we are better in Java. Sadly, we can't get Java or C++ to work. I could care less if C++ works, I'm just looking for help in getting Java to run.

What makes this really annoying is...
  • Communication is fine.
  • RobotCode is on the robot (Deploys fine with netbeans).
  • Code is exact copy from the Java Starting Guide: Github link
  • Joysticks have a green light & respond on the I/O dashboard.
  • The jaguars stop blinking when we enable the robot (Which as far as I know means they are functioning).
  • Running latest netbeans plugins for FRC.
  • Teleop AND autonomous don't work.
  • Were not even using wireless, were wired in.

The cRIO is running on 2012_v43, and this is the only thing I'm not sure about (Is this latest?).

Things we have tried...
  • Restart the robot / change battery.
  • Re-imaged cRio.
  • Creating a new java project.
  • Different Java Code.
  • Change the joystick ports.
  • Prevented Windows firewall from blocking communications.
  • Pinging robot (Which works fine).
  • And other little things I forgot which we read online.

The only thing I wish to try is seeing if the compressor & piston work. If they do I know this is a jaguar/motor/electrical problem (Which doesn't make any sense, since we have not modified the robot mechanically or electrically sine last competition. And it worked fine then).

I'm literally clueless right now, for those interested, I even took pictures of all of it on my phone:

Link to photos

Any help would be awesome right now, I really want to practice with Java before the season starts!
Reply With Quote
  #2   Spotlight this post!  
Unread 15-11-2012, 02:54
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: Cannot move robot

What are the LEDs on the cRIO doing? Check the cRIO support PDF if you don't know what I'm talking about. Page 15 explains some of the different blink codes.
__________________
Mike B
Reply With Quote
  #3   Spotlight this post!  
Unread 15-11-2012, 10:25
Butter's Butter's is offline
Registered User
AKA: Joe Kent
FRC #0522 (Robo Wizards)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Staten Island, New York
Posts: 21
Butter's is an unknown quantity at this point
Re: Cannot move robot

We are not having any blink codes on the cRio
Reply With Quote
  #4   Spotlight this post!  
Unread 15-11-2012, 18:11
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: Cannot move robot

Quote:
Originally Posted by Butter's View Post
Teleop AND autonomous don't work.
What do you mean by this? The driver station won't engage the tele-op or auto modes, or it engages, but does nothing?
Are there any error messages displayed in the driver station?
__________________
Mike B
Reply With Quote
  #5   Spotlight this post!  
Unread 15-11-2012, 18:33
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,861
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Cannot move robot

Verify that you are downloading the program you think you are.
ftp to the cRIO and verify that the date of the Java program matches when you last downloaded it.

It sort of sounds like you're running a default program with different controls in it.
The Jaguars going solid mean they are being instantiated by the code.

Let us know if the Driver Station Diagnostics tab shows any messages.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 15-11-2012 at 18:38.
Reply With Quote
  #6   Spotlight this post!  
Unread 15-11-2012, 18:45
Butter's Butter's is offline
Registered User
AKA: Joe Kent
FRC #0522 (Robo Wizards)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Staten Island, New York
Posts: 21
Butter's is an unknown quantity at this point
Re: Cannot move robot

Quote:
Originally Posted by Mark McLeod View Post
Verify that you are downloading the program you think you are.
ftp to the cRIO and verify that the date of the Java program matches when you last downloaded it.

It sort of sounds like you're running a default program with different controls in it.
The Jaguars going solid mean they are being instantiated by the code.

Let us know if the Driver Station Diagnostics tab shows any messages.
Will try this tomorrow / let you know the results.

Quote:
Originally Posted by SuperS_5 View Post
What do you mean by this? The driver station won't engage the tele-op or auto modes, or it engages, but does nothing?
Are there any error messages displayed in the driver station?
Another words, I enable the mode via driver station, its on according to the driver station, but isn't doing anything.
Reply With Quote
  #7   Spotlight this post!  
Unread 16-11-2012, 14:07
Butter's Butter's is offline
Registered User
AKA: Joe Kent
FRC #0522 (Robo Wizards)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Staten Island, New York
Posts: 21
Butter's is an unknown quantity at this point
Re: Cannot move robot

No error on console, and I was able to FTP into the robot fine. However, which directory is it in on the cRio?
Reply With Quote
  #8   Spotlight this post!  
Unread 16-11-2012, 23:10
thephpdev's Avatar
thephpdev thephpdev is offline
Registered User
AKA: Josh Larson
FRC #2502 (Talon Robotics)
Team Role: Programmer
 
Join Date: Mar 2012
Rookie Year: 2012
Location: Eden Prairie, MN
Posts: 16
thephpdev is an unknown quantity at this point
Re: Cannot move robot

A possible issue would be that your code throws an exception, or another error of sorts. Can you check your console window in netbeans to see if any error messages are being output'ed.
Reply With Quote
  #9   Spotlight this post!  
Unread 17-11-2012, 13:31
Butter's Butter's is offline
Registered User
AKA: Joe Kent
FRC #0522 (Robo Wizards)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Staten Island, New York
Posts: 21
Butter's is an unknown quantity at this point
Re: Cannot move robot

No, there is no stack trace. Can someone answer my question still? Where can I locate the code on the cRIO after I FTP in?
Reply With Quote
  #10   Spotlight this post!  
Unread 18-11-2012, 14:53
Butter's Butter's is offline
Registered User
AKA: Joe Kent
FRC #0522 (Robo Wizards)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Staten Island, New York
Posts: 21
Butter's is an unknown quantity at this point
Re: Cannot move robot

Huh, my original post didn't go through. Anyway, no stacktrace from netbeans. It builds & deploys fine. Can someone tell me where to look on the cRio? I went in via FTP but I have no idea where the directory is.
Reply With Quote
  #11   Spotlight this post!  
Unread 18-11-2012, 17:08
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,750
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Cannot move robot

Are you enabling the robot on the driver station? It was not enabled in the picture you posted.
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
Reply With Quote
  #12   Spotlight this post!  
Unread 18-11-2012, 21:18
Butter's Butter's is offline
Registered User
AKA: Joe Kent
FRC #0522 (Robo Wizards)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Staten Island, New York
Posts: 21
Butter's is an unknown quantity at this point
Re: Cannot move robot

Yeah we did, the picture of the DS was to show a green light for the robot code & communications.

Is anyone able to answer my question? Where is the code located on the cRIO?
Reply With Quote
  #13   Spotlight this post!  
Unread 19-11-2012, 03:44
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: Cannot move robot

I just want to confirm that you have the cRIO modules in the correct locations.
The Getting Started PDF explains this on page 12. (Just trying to narrow things down)
__________________
Mike B
Reply With Quote
  #14   Spotlight this post!  
Unread 19-11-2012, 10:26
Butter's Butter's is offline
Registered User
AKA: Joe Kent
FRC #0522 (Robo Wizards)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Staten Island, New York
Posts: 21
Butter's is an unknown quantity at this point
Re: Cannot move robot

As I said in my original post, the robot worked at our last event, and we have not modified it electrically or mechanically since then.

Also, can someone tell me where the directory is on the cRIO for the code. I was asked to confirm it's there but I'm not sure what directory it's in.
Reply With Quote
  #15   Spotlight this post!  
Unread 20-11-2012, 13:09
Butter's Butter's is offline
Registered User
AKA: Joe Kent
FRC #0522 (Robo Wizards)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Staten Island, New York
Posts: 21
Butter's is an unknown quantity at this point
Re: Cannot move robot

Just tested the compressor, doesn't start either. I think the suggestion of default code being on the robot is correct, however, after I FTP in, what directory should I look in?
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 12:51.

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