|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
||||
|
||||
|
Re: paper: A programming template for Autonomous Mode
Quote:
I wonder also if you put this function inside another function. Did you put it where it says: /* Add your own autonomous code here. */ ? If I put your code there I get an error on the "unsigned char" line. Try removing all the code in question, and make sure you get a clean compile. Then, add your code at the very end of the file and I think it will compile. The code you have is a complete function and it can't be put in the middle of another function (and I apologize if you already know this.) If it works with your code at the end of user_routines_fast.c then you can call it where you need it. BTW, if you just need a limit_mix function for your autonomous routine, you can call the one in user_routines.c - the significance of the function is determined by where you call it from, not which file it's in. To do so, add this line with the other function prototypes in user_routines.h: unsigned char Limit_Mix (int); Make sure it compiles after you remove your own Lim_Mix(), then you can call Limit_Mix from your autonomous routine. Gary Last edited by garyk : 05-02-2008 at 13:13. Reason: Added emphasis |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A programming template for Autonomous Mode | garyk | Programming | 2 | 05-02-2008 20:08 |
| Help needed in autonomous programming for hybrid mode | Team_STORM | Programming | 3 | 21-01-2008 19:11 |
| White Paper Discuss: C Programming and Autonomous Modes for Newbies | cbolin | Extra Discussion | 3 | 09-01-2008 19:32 |
| Help for finding Autonomous Programming Template | vito3693 | VEX | 2 | 23-11-2006 19:01 |
| Programming Autonomous mode | Jared Stofflett | Programming | 3 | 11-11-2003 09:32 |