00001 
00007 #ifndef _H1_H_
00008 #define _H1_H_
00009 
00010 #include <unistd.h>
00011 #include <stdio.h>
00012 #include <stdlib.h>
00013 #include <string.h>
00014 #include <sys/types.h>
00015 #include <sys/ipc.h>
00016 #include <sys/shm.h>
00017 #include <signal.h>
00018 #include <fcntl.h>
00019 #include <error.h>
00020 #include <termios.h>
00021 #include <gtk/gtk.h>
00022 
00023 
00024 #ifdef _MAIN_
00025   int sig_1=0;
00026   int pid;
00027 #else
00028   extern int sig_1;
00029   extern int pid;
00030 #endif
00031 
00032 
00033 #define SHM_SIZE 1024           
00034 #define max_sensors 5           
00035 #define distance_limit 10       
00036 
00037 
00038 
00039 
00040 typedef struct {unsigned char sh[max_sensors + 3];} testing;
00041 
00042 
00043 #endif