Go to Post The more women we have as 'rock stars' in FIRST, the more girls we'll see celebrating math and science and the doors they can open. - JaneYoung [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 31-01-2005, 08:57
Gamer930's Avatar
Gamer930 Gamer930 is offline
Team 930 and 171 Alumni
AKA: Justin
no team
Team Role: Alumni
 
Join Date: Mar 2002
Rookie Year: 2002
Location: New Berlin, WI
Posts: 388
Gamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to behold
_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
__________________
2010 to Present, Scorekeeper/Field Power Volunteer for FRC/FTC/FLL
2005 - 2010, Team 171 College Mentor
2002 - 2005, Team 930 Student
  #2   Spotlight this post!  
Unread 31-01-2005, 09:14
Jon_Kunkee Jon_Kunkee is offline
Registered User
#1288
 
Join Date: Jan 2005
Location: St. Charles, MO
Posts: 1
Jon_Kunkee is an unknown quantity at this point
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
  #3   Spotlight this post!  
Unread 31-01-2005, 09:24
Gamer930's Avatar
Gamer930 Gamer930 is offline
Team 930 and 171 Alumni
AKA: Justin
no team
Team Role: Alumni
 
Join Date: Mar 2002
Rookie Year: 2002
Location: New Berlin, WI
Posts: 388
Gamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to behold
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
__________________
2010 to Present, Scorekeeper/Field Power Volunteer for FRC/FTC/FLL
2005 - 2010, Team 171 College Mentor
2002 - 2005, Team 930 Student
  #4   Spotlight this post!  
Unread 31-01-2005, 10:30
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,854
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: _USE_CMU_CAMERA

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
Attached Thumbnails
Click image for larger version

Name:	MPLAB Compiler Flags.jpg
Views:	79
Size:	51.5 KB
ID:	2863  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 31-01-2005 at 10:33.
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


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

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