|
Re: paper: A programming template for Autonomous Mode
David,
I did a cut and paste of the code and inserted it in My user_routines_fast
If I place the code in the autonomous section of the program I get the compile error.
If I place it above with the other function declarations it compiles fine.
Somebody with a greater knowledge of why C does what it does will have to explain why that happens. (I'm just a hacker..I like to stay on the hardware side of things...Instead of stupid compile errors we get blue smoke or sparks and that makes trouble shooting REAL easy!)
Anyway, I assume you can place the code outside the autonomous area and still call it. I may be wrong but that MIGHT solve the problem.
Steve
PS ...Oh you're placing a function within a function. User_Autonomous_Code . I don't think that's legal.
Steve
Last edited by Steve_Alaniz : 05-02-2008 at 12:52.
Reason: grammar
|