|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
bool Variables, Autonomous Mode
First off, can you declare bool variables? I tried to compile a boolean variable, just because 1 bit is more efficient than wasting a whole byte on a char or 2 on a short.
Second, I looked at ifi_aliases.h in the default code. At the bottom it uses a #define compiler directive to define the macro autonomous_mode. Could anyone show me how to use this? Would you use code like if(autonomous_mode) { /* Do whatever I want the robot to do during autonomous mode. */ } in the Process_Data_From_Local_IO() function user_routines_fast.c? Thanks for the help. lasindi |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how can you use a gyro in autonomous mode | magical hands | Programming | 3 | 02-01-2004 13:31 |
| Help On Coding 2K1 Controller | GregTheGreat | Programming | 9 | 05-12-2003 18:35 |
| Programming Autonomous mode | Jared Stofflett | Programming | 3 | 11-11-2003 09:32 |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |
| autonomous mode timer | Don | Programming | 6 | 09-02-2003 22:16 |