Go to Post Word of advice:Don't eat a whole box of nutrigrain bars that are loaded with fiber in one sitting...Yeah.. Bad thing. - Elgin Clock [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
  #1   Spotlight this post!  
Unread 09-02-2007, 16:54
ebowla's Avatar
ebowla ebowla is offline
The Overmind
FRC #2016
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2006
Location: Ewing High School
Posts: 15
ebowla is on a distinguished road
Combined Code Error

Well I have been trying to combine the camera code, the encoder code, and our driving code into one. I got the driving code into the camera code without any pain, but when I tried to put the encoder code in there as well, one error came up that I couldn't figure out. The below line came up when I copied the code from the user routines fast from the encoder code over to the combined code. It was in the encoder readme saying that I needed the interrupt handlers. I did that and included the encoder.h in every file that needed it, but this error kept coming up. Any help with this will be much apprieciated.

NOTE: The Error that was on this line is no longer occurring.

EDIT: Today I tried compiling it again, I didn't change anything, but now I get the following errors.

C:\Documents and Settings\All Users\Documents\Combo Code\encoder.c:130:Error [1205] unknown member 'INT3IP' in '__tag_223'
C:\Documents and Settings\All Users\Documents\Combo Code\encoder.c:130:Error [1131] type mismatch in assignment

EDIT2: I found out that for some reason the enable encoders was not commented out. I did that then it built, but if I take it out I still get the above errors. So in otherwords, until I can fix those I can't use encoders. Once again all help will be apprieciated.
__________________
Progamming Master
Disclaimer: May not be actually as good as claimed, not reliable for advice, and shirks away any real work.

Last edited by ebowla : 10-02-2007 at 08:55.
  #2   Spotlight this post!  
Unread 10-02-2007, 12:59
Eclipse's Avatar
Eclipse Eclipse is offline
Registered User
AKA: Sensei Hanzo
FRC #1250 (Gatro-Bots)
Team Role: Programmer
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Dearborn, MI
Posts: 18
Eclipse is an unknown quantity at this point
Re: Combined Code Error

Hm. Might I ask where exactly you're getting this error? The only place I can think of that you would get it would be in Initialize_Encoders(), since I don't think you would be messing with the interrupt priority elsewhere in your code. If you tell us where you're encountering this error in your code, we can help you more.
__________________
xXx.S3nS31-h4nz0.xXx
  #3   Spotlight this post!  
Unread 10-02-2007, 14:31
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Re: Combined Code Error

It explains how to solve this problem in the encoder readme in the code from kevin's site.:
Quote:
Originally Posted by EncoderReadme
The p18f8722.h header file included with the C18 2.4
compiler may have an error that will prevent you from
compiling this software. If you get an error like:

...Error [1205] unknown member 'INT3IP'...

You'll need to replace your copy of p18f8722.h with the
version included with this project. If you installed your
compiler using the default path, this file should be located
at c:\mcc18\h.
I don't quite remeber how to solve the other one, unless this does that too
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
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
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07
Intermittent Code Error Plloyd Programming 9 09-04-2005 21:37
Combined Camera and PID/Encoder Code Terry Sherman Programming 1 14-03-2005 17:59
Error w/ FRC code JamesBrown Programming 2 08-01-2005 16:17
C++ Code Error? Adam Shapiro Programming 9 20-01-2003 13:24


All times are GMT -5. The time now is 00:26.

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