Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   _USE_CMU_CAMERA (http://www.chiefdelphi.com/forums/showthread.php?t=33694)

Gamer930 31-01-2005 08:57

_USE_CMU_CAMERA
 
Our team is build of rookie programmers. We looked but couldn't find the statement that decides whether or not the #if _USE_CMU_CAMERA is done or not. We are using the FrcCode2005v2.4 default code. If someone could point that out and explain it that would be great.

Thanks in advance

Jon_Kunkee 31-01-2005 09:14

Re: _USE_CMU_CAMERA
 
Good morning!

I have no idea how rookie you are, so here's a general picture of the situation.

When the compiler compiles, you can give it flags that satisfy these #if statements. To see if it is set, go to [project]->[build options]->[build all]. Take this with a grain of salt; I don't have the compiler in front of me, so I could be somewhat off base. There will be a box with a list of flags in similar format, including that one; if I recall correctly, there are normally two.

Even if you can't find it, the default code and workspace should have it already set.

Best of luck to you!
--Jonathan Kunkee, Team 1288
Highest Rookie Seed Award, 2004

Gamer930 31-01-2005 09:24

Re: _USE_CMU_CAMERA
 
Quote:

Originally Posted by Jon_Kunkee
When the compiler compiles, you can give it flags that satisfy these #if statements. To see if it is set, go to [project]->[build options]->[build all]. Take this with a grain of salt; I don't have the compiler in front of me, so I could be somewhat off base. There will be a box with a list of flags in similar format, including that one; if I recall correctly, there are normally two.

My ultimate question is how to make it unset if I wanted

Mark McLeod 31-01-2005 10:30

Re: _USE_CMU_CAMERA
 
1 Attachment(s)
Quote:

Originally Posted by Gamer2028
My ultimate question is how to make it unset if I wanted

As Jon described above, in MPLAB go to Project -> Build Options... -> Project,
then the MPLAB C18 tab and you will see the attached.

If you want to disable that section of code, then under "Macro Definitions" click on
_USE_CMU_CAMERA
to highlight it, then click on "Remove."

When you want to include the code again, simply click on "Add..." and type in
_USE_CMU_CAMERA


All times are GMT -5. The time now is 02:49.

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