Main Page | File List | Globals

basic.h

Go to the documentation of this file.
00001 //
00002 // C Interface: basic
00003 //
00004 // Description: File for station with fundamental datatypes
00005 //
00006 //
00007 // Author: Leonhard Klein <leoklein@gmx.net>, (C) 2004
00008 #ifndef __BASIC_H__
00009 #define __BASIC_H__
00010 
00011 //#define TEST
00012 
00013 #define ROBOT 
00015 #define IRCONT      
00016 #define SCRIPT      
00017 #define SCRIPT2     
00018 #define PROGRAMMING 
00019 #define BEHAVIOUR   
00020 //#define SINUS
00021 
00022 
00023 #define _NOP asm volatile ("nop\n\t"::)  
00025 enum modtype { boredom, sleep, connected, searching, flee, empty, script, ircont, radar, ir_s, ir_r, irstring_s};
00026 enum admodtype {none,       
00027                 irstation,  
00028                 irfr2,      
00029                 irpos,      
00030                 light,      
00031                 vcc,        
00032                 vcco        
00033                };
00034 
00035 enum modtype modus;
00036 enum modtype oldmodus;
00037 enum modtype oldmodus2;    //< only for use with irstring_s
00038 enum admodtype admodus;
00039 
00040 
00041 typedef unsigned char u08; 
00042 typedef unsigned int u16;  
00043 typedef signed char s08;   
00044 typedef signed int s16;    
00045 
00046 struct measuretype { u08 irstation:1, irpos:1, light:1, vcc:1, vcco:1, radar:1, irr:1; };
00047 
00048 struct measuretype measuremodus[13];
00049 
00050 #endif

Generated on Wed Feb 2 20:03:50 2005 for Robot by doxygen 1.3.6