Go to Post I don't mean to sound harsh, but I do not want you to get your hopes up. There are deadlines in FIRST. - RoboMom [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 27-01-2010, 18:32
ajdecker1022 ajdecker1022 is offline
Registered User
FRC #2879
 
Join Date: Jan 2009
Location: SLP, Minnesota
Posts: 8
ajdecker1022 is an unknown quantity at this point
Missing sample code

Hello, all. I'm having trouble with java and netbeans. First, the sample code doesn't show up under the project samples folder. I have installed and reinstalled the .nbm files (trying both the .xml "autoupdating" way and the manual download and install). The three sources under the folder "FRC Java" have three sources in them, but the "FRC Java" under the samples folder has only the TrackerDemoProject.

I got this to work on a mac, but can't seem to get it to work on the class mate. (The mac was just for experimenting with getting the FRC API...which apparently didn't help .

Also, when trying to deploy code, we are getting a message saying that it is connecting to 10.28.79.2 (the cRIO) on port 8001. However, it simply says waiting for command OTA. I know this has been discussed elsewhere, but the date on that thread was before the kickoff and I don't think the solution applies anymore. The solution they suggested was to get newer version of the code, but the URL of the updates.xml file is correct in the "Getting started with Java" guide, as far as I know.

What gives?

Thanks for the help!
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2010, 00:02
fiferdc fiferdc is offline
Registered User
AKA: David Fifer
FRC #1747 (Harrison Boiler Robotics)
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2010
Location: Brownsburg, IN
Posts: 10
fiferdc is an unknown quantity at this point
Re: Missing sample code

What are you referring to as the "three sources"? My team has all of the files up and running on the classmate and several other PCs. There should be five update files for Netbeans, which it seems like you have installed on your Mac.

As for your other problem, there might be a few causes. Have you set your team number under the FRC Configuration tab in Options? This could cause a problem when connecting to the cRIO. Also, are you using a wireless connection? At times my team has had problems with a wireless connection for some reason or other and have resorted to connecting the cRIO to the router via Ethernet cable. Sometimes turning the power off and then back on on the robot fixes any communication error.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2010, 12:37
ajdecker1022 ajdecker1022 is offline
Registered User
FRC #2879
 
Join Date: Jan 2009
Location: SLP, Minnesota
Posts: 8
ajdecker1022 is an unknown quantity at this point
Re: Missing sample code

The "IterativeRobot" "Simple Robot" and one other (I don't have the Classmate with me right now) are in the FRC Java folder. We have set the team number via the FRC configuration option and we are hard linked with ethernet.
Reply With Quote
  #4   Spotlight this post!  
Unread 28-01-2010, 19:39
Lakedaimon's Avatar
Lakedaimon Lakedaimon is offline
Registered User
FRC #3012 (Spartans)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2003
Location: Cypress Lakes HS, Katy, TX
Posts: 23
Lakedaimon is an unknown quantity at this point
Re: Missing sample code

When you are opening the project, don't click on "open project", click on "new project". Then you will see a different list that contains the projects you are looking for (if you are seeing the same problem we were when we ran into a similar issue.)
__________________
Firmware is the most expensive thing in the universe. - Jack G. Ganssle
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sample Code Belly Programming 1 21-01-2010 14:34
Sample Code Japper Programming 2 01-12-2008 22:36
Sample PID code??? EHaskins Programming 14 08-08-2006 14:18
Vex Sensor Sample Code nonother FIRST Tech Challenge 2 08-05-2006 16:49
Is there a sample code? The Stargazer Programming 3 17-02-2005 19:22


All times are GMT -5. The time now is 14:13.

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