Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   eclipse & Kevin's camera code (http://www.chiefdelphi.com/forums/showthread.php?t=42304)

WizardOfAz 25-01-2006 02:07

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

prograid 25-01-2006 18:57

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.

WizardOfAz 26-01-2006 11:55

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

prograid 28-01-2006 23:00

Re: eclipse & Kevin's camera code
 
1 Attachment(s)
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.

WizardOfAz 29-01-2006 12:34

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

lupjohn 16-02-2006 18:23

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.

prograid 17-02-2006 01:16

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.

lupjohn 17-02-2006 12:43

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.


All times are GMT -5. The time now is 20:28.

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