Quote:
|
Originally Posted by mtrawls
What? #include statements are pre-processor directives ... they are (quite necessarily) executed before compilation and definately before you upload the code to the robot. For conditional includes, you'd have to use the pre-processor directive #ifdef ... #endif -- but this isn't what you mean to do.
|
I didn't use #ifdef or #endif because thats not what I'm trying to accomplsh. The #include directive simply takes the contents of that file and shoves it into the spot where the #include line was.
You get the conveinence of having the autonomous routine in 1 file and the main routine in the other file, and you save the CPU cycles necessary to jump to and from the function.