_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

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

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