Go to Post Differentiating based on any superficial criteria (gender, race, or other demographic) only serves to reinforce the false idea that they matter. - JamesCH95 [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #22   Spotlight this post!  
Unread 07-02-2004, 21:08
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Compiler Help Needed

Quote:
Originally Posted by Mike Soukup
... From the names of your variables & the way you use them, it looks like those are values that will never change while your code is being executed, ie a constant. If so, there is no need to use a variable to store the values, use a #define instead:

Code:
#define axelWidth  .725
#define wheelRadius  .105
#define clicksPerRevolution  16
...
I, personally, have had problems with #declare in place of const, and only use it for alias, Example:
Code:
//Some constants
const char Varience = 10;
const char True = 255;
const char bLAH = 152;

//Some aliases
#declare Left_OI p1_y
#declare Left_Motor pwm01
#declare DyNoMiTe relay8
As long as you keep it in headers and include them, you should be ok.
 


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
C compiler for 2004 Tim Skloss Technical Discussion 11 05-11-2003 22:02
C compiler for 2004 Tim Skloss Robotics Education and Curriculum 2 04-11-2003 16:19
The Grand FIRST team.. programmers and others needed randomperson Programming 0 31-05-2003 23:46
Weight needed to tilt bridge... archiver 2001 4 23-06-2002 23:43
Inventor 5.0 help needed Larry Barello Inventor 4 27-01-2002 10:54


All times are GMT -5. The time now is 23:58.

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