View Single Post
  #11   Spotlight this post!  
Unread 14-02-2005, 23:35
gnormhurst's Avatar
gnormhurst gnormhurst is offline
Norm Hurst
AKA: gnorm
#0381 (The Tornadoes)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Trenton, NJ
Posts: 138
gnormhurst will become famous soon enoughgnormhurst will become famous soon enough
Re: Drive Straight C Code using Encoders without PID?

Quote:
Originally Posted by chakorules
I hope you mean DEBUG printf statements right? Comments aren't suppose to be stored in the controller to my knowledge...??? Are they?
Nope. They don't go farther than the source files.

And I recently was shown (here) that the difference between

Code:
#define BEGIN  0
#define MIDDLE 1
#define END    2
and

Code:
enum
{
  BEGIN,
  MIDDLE,
  END
}
is that the enum{} actually allocates integer storage, but the #defines are just literal constants. I suppose that means that #defines use less RAM than enum{}.
__________________
Trenton Tornadoes 381
2004 Philadelphia Regional Winners
2006 Xerox Creativity Award
---
My corner of the USPTO.
My favorite error message from gcc: main is usually a function
My favorite error message from Windows: There is not enough disk space available to delete this file.