Go to Post Just like any good hardware or software product, "insert foot before putting mouth in gear"..... - dhitchco [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 25-01-2006, 02:07
WizardOfAz's Avatar
WizardOfAz WizardOfAz is offline
Lead Mentor
AKA: Bill Bennett
FRC #1011 (CRUSH)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Tucson, AZ
Posts: 101
WizardOfAz will become famous soon enough
Send a message via AIM to WizardOfAz
Re: eclipse & Kevin's camera code

Quote:
Originally Posted by prograid
Sorry for the problems.

However, just to make some things clear. You can't download the plug-in by clicking on the link. You need to copy the URL into Eclipse's update manager.
(I have a feeling that the problem might have something to do with a slight change I made to the plug-in soon after publishing it.)

I'm working on it now. I'll post when I am sure that (at least as sure as I can be) it works.

Thanks for your help,

Ben
Thanks for this work Ben.

We did install the way you suggested, using the update manager. So that's not the problem.

Recreating all existing projects (we have a bunch of them) every time the plugin is updated is a big pain. Then getting the new projects sync'd up with the CVS server is yet more pain. Do you see any way to beat that?

Thanks again, eclipse is so much nicer to work in than the alternative.

Bill
  #17   Spotlight this post!  
Unread 25-01-2006, 18:57
prograid's Avatar
prograid prograid is offline
Registered User
AKA: Ben Cherian
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2004
Location: San Jose
Posts: 80
prograid will become famous soon enough
Re: eclipse & Kevin's camera code

Quote:
Originally Posted by WizardOfAz
Thanks for this work Ben.

We did install the way you suggested, using the update manager.

Bill
Sorry, that was directed to lupjohn, who said that he got an unauthorized access error from the server. (There is no index.html file for that folder so if you click on the link you get a 403 Forbidden error.) For example, if you go to team254.bcp.org/update_site/site.xml you will not get a forbidden error. This is the file Eclipse looks at when searching for plug-ins.

Quote:
Originally Posted by WizardofAz
Recreating all existing projects (we have a bunch of them) every time the plugin is updated is a big pain. Then getting the new projects sync'd up with the CVS server is yet more pain. Do you see any way to beat that?
I am actually not sure if this can be fixed. Eclipse stores a lot of information specific to compiler settings, etc. in each project (Check your .settings directory.) Sorry.

Would you mind trying this again? (I have deleted an old version of the plug-in from the update site. I am not sure if it makes a difference.)

1. Delete any current plug-ins or features (in the eclipse/features folder)
that are begin with org.eclipse.cdt.mcc18
2. Install the plug-in from the update site.
3. When prompted as to whether to restart, first say no.
4. Then close eclipse.
5. then restart eclipse with the option -clean.

For those interested, the reasons I'm making you do the hard work of restarting eclipse by yourself is that the plug-in and feature might be so small that eclipse interrupts the downloading process when it asks you to restart, because it thinks that it is already done downloading. When it restarts it interrupts the downloading process, and corrupts the plug-in.
  #18   Spotlight this post!  
Unread 26-01-2006, 11:55
WizardOfAz's Avatar
WizardOfAz WizardOfAz is offline
Lead Mentor
AKA: Bill Bennett
FRC #1011 (CRUSH)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Tucson, AZ
Posts: 101
WizardOfAz will become famous soon enough
Send a message via AIM to WizardOfAz
Re: eclipse & Kevin's camera code

Quote:
Originally Posted by prograid
1. Delete any current plug-ins or features (in the eclipse/features folder)
that are begin with org.eclipse.cdt.mcc18
2. Install the plug-in from the update site.
3. When prompted as to whether to restart, first say no.
4. Then close eclipse.
5. then restart eclipse with the option -clean.
Hi Ben
Thanks again for the help. I followed the above steps to the tee but the result is the same - I still get the index out of bounds exception when I look at project properties, and can't use the project to build for the FRC.

Bill
  #19   Spotlight this post!  
Unread 28-01-2006, 23:00
prograid's Avatar
prograid prograid is offline
Registered User
AKA: Ben Cherian
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2004
Location: San Jose
Posts: 80
prograid will become famous soon enough
Re: eclipse & Kevin's camera code

Alright, since I can't seem to get the actual update site to work. I'll post the plug-in and feature I'm using in my own installation of eclipse. It's in the attachment.
Copy the jar file to your plugins directory of your eclipse installation.
Copy the folder to your features direcotyr of your eclipse installation.
start eclipse with the option -clean

Important you need CDT 3.0 (and therefore Eclipse 3.1) or later for this plug-in to work.
Attached Files
File Type: zip Robotics Plugin.zip (5.2 KB, 24 views)
  #20   Spotlight this post!  
Unread 29-01-2006, 12:34
WizardOfAz's Avatar
WizardOfAz WizardOfAz is offline
Lead Mentor
AKA: Bill Bennett
FRC #1011 (CRUSH)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Tucson, AZ
Posts: 101
WizardOfAz will become famous soon enough
Send a message via AIM to WizardOfAz
Re: eclipse & Kevin's camera code

Quote:
Originally Posted by prograid
Important you need CDT 3.0 (and therefore Eclipse 3.1) or later for this plug-in to work.
I had managed to miss this in the past, and it was the whole problem. I was running an earlier (2.x) version of cdt, which worked fine with the previous mcc18 plugin, so never suspected. Anyway, I've installed the new CDT then was able to install from your team254 eclipse update link.

Thanks for all the work and help.
Bill
  #21   Spotlight this post!  
Unread 16-02-2006, 18:23
lupjohn's Avatar
lupjohn lupjohn is offline
Registered User
AKA: Larry Upjohn
FRC #0692 (FemBots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2002
Location: Sacramento, CA
Posts: 31
lupjohn is an unknown quantity at this point
Re: eclipse & Kevin's camera code

Quote:
Originally Posted by prograid
Alright, since I can't seem to get the actual update site to work. I'll post the plug-in and feature I'm using in my own installation of eclipse. It's in the attachment.
Copy the jar file to your plugins directory of your eclipse installation.
Copy the folder to your features direcotyr of your eclipse installation.
start eclipse with the option -clean

Important you need CDT 3.0 (and therefore Eclipse 3.1) or later for this plug-in to work.
Ben;
I have been very busy so am just getting around to completing the install of the latest corrections from the thread. I have loaded Kevin Watsons latest CMU2CAM "bells and whistle code" (builds completely in MPLAB IDE) but I get an error 1203 on line 233 of ifi_utilities.c. HELP. I am drawing a blank on fixing this error. Thanks for your time on this and hopefully your robot build is going well. Your team will be missed at the Sacramento\Davis regional. LRU.

P.S. Later edit. I have checked the header file for the call and I need to clarify the call parameters. Thanks for your help but just needed to think about this for a while. LRU.

Last edited by lupjohn : 16-02-2006 at 19:36.
  #22   Spotlight this post!  
Unread 17-02-2006, 01:16
prograid's Avatar
prograid prograid is offline
Registered User
AKA: Ben Cherian
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2004
Location: San Jose
Posts: 80
prograid will become famous soon enough
Re: eclipse & Kevin's camera code

Quote:
Originally Posted by lupjohn
Ben;
I have been very busy so am just getting around to completing the install of the latest corrections from the thread. I have loaded Kevin Watsons latest CMU2CAM "bells and whistle code" (builds completely in MPLAB IDE) but I get an error 1203 on line 233 of ifi_utilities.c. HELP. I am drawing a blank on fixing this error. Thanks for your time on this and hopefully your robot build is going well. Your team will be missed at the Sacramento\Davis regional. LRU.

P.S. Later edit. I have checked the header file for the call and I need to clarify the call parameters. Thanks for your help but just needed to think about this for a while. LRU.
Can you post the code you're using? The default version of ifi_utilities.c doesn't seem to have a line 233.
  #23   Spotlight this post!  
Unread 17-02-2006, 12:43
lupjohn's Avatar
lupjohn lupjohn is offline
Registered User
AKA: Larry Upjohn
FRC #0692 (FemBots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2002
Location: Sacramento, CA
Posts: 31
lupjohn is an unknown quantity at this point
Re: eclipse & Kevin's camera code

Quote:
Originally Posted by prograid
Can you post the code you're using? The default version of ifi_utilities.c doesn't seem to have a line 233.
The code is found on Kevin Watson's site here http://kevin.org/frc/ . I discovered the error was related to which processor was called out and I had it set on the old 2005 processor. ADC.h calls for 3 parameters for the function openadc() for the old processor and 2 parameters for the new processor as called for in the latest code from Kevin. Kevin also provides an example program called ADC.c and reading through that code I discovered that the openadc() call had 3 parameters. Simply adding the 3rd parameter in the call to openadc() in camera.c code allows a full build without errors. The interesting part about this problem is that the same original code as supplied from Kevin compiles in the MPLAB IDE without error or warnings. This tells me that the Eclipse environment may be use a more concise preprocessor to parse the code and thus catch this level of error. Thanks for your response. I just needed some time to work through this and I am a little fuzzy from the late nights on the build. LRU.
Closed Thread


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
Out of the Box Camera Code russell Programming 9 21-10-2009 05:28
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07
Combined Camera and PID/Encoder Code Terry Sherman Programming 1 14-03-2005 17:59
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11


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

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