View Single Post
  #10   Spotlight this post!  
Unread 11-02-2008, 16:20
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
Re: KOP Gear Tooth Encoder Trouble

I have some files that need some define/setup/config stuff or they won't work correctly. The setup depends on the configuration of the robot - like pins and stuff - and I'm always forgetting to go in and do this as I roll projects forward and do what I call a "refresh" of the code (pull in latest library modules, drivers, etc. from source pool).

So I've resorted to putting the following in the source files to remind me. Yes, its stupid... but it works.

Not saying this was the latest issue above... but I've seen a number of threads related to something similar...


Code:
//
// Cause a syntax error, after you read the "readme" section above, 
// remove this line.
unsigned char tmp = someone_forgot_to_read_the_included_readme_section;
Code:

encoder.c:3:Error [1105] symbol 'someone_forgot_to_read_the_included_readme_section' has not been defined