Blame |
Last modification |
View Log
| RSS feed
#define _PLANE_HEADER_
#ifndef _CONST_
#include "constants.h"
#endif
#ifndef _INPUT_
#include "input.h"
#endif
#ifndef _ATCSIM_HEADER_
#include "atcsim.h"
#endif
#include <kernel/kern.h> //include the SHARK kernel header
#include <drivers/glib.h> //include the graphics library
#include <drivers/keyb.h> //include the keyboard library
#include <semaphore.h> //include the semaphore library
#include <stdlib.h> //include the standard library
#include <math.h> //include the math library for random
#include <string.h>
#include <modules/hartport.h>
int STARTSIM =-1;
double tick = 1.0; /* system tick = 1 ms */
int number_of_planes=0;
PID pid[MAX_PLANES],pid2;
PID disp;
extern sem_t mut_aeroplane[MAX_PLANES];
extern sem_t graphics_mutex; //graphics mutex
extern airport airports[NUM_OF_AIRPORTS];
extern aeroplane_model_info planeinfo[NUM_OF_AEROPLANE_MODELS];
aeroplane aeroplanes[MAX_PLANES];
atcplanecab atcplanecabmsg[MAX_PLANES];
/* useful colors... */
extern int white;
extern int black;
extern int red;
extern int gray;
extern int green;
extern int blue;
extern PI_mutexattr_t a;
extern mutex_t mut_STARTSIM;
extern mutex_t mut_number_of_planes;
char *plane_atc[]={"PLANEATCCAB0","PLANEATCCAB1","PLANEATCCAB2","PLANEATCCAB3","PLANEATCCAB4","PLANEATCCAB5","PLANEATCCAB6","PLANEATCCAB7","PLANEATCCAB8","PLANEATCCAB9","PLANEATCCAB10","PLANEATCCAB11","PLANEATCCAB12","PLANEATCCAB13","PLANEATCCAB14","PLANEATCCAB15","PLANEATCCAB16","PLANEATCCAB17","PLANEATCCAB18","PLANEATCCAB19","PLANEATCCAB20","PLANEATCCAB21","PLANEATCCAB22","PLANEATCCAB23","PLANEATCCAB24","PLANEATCCAB25","PLANEATCCAB26","PLANEATCCAB27","PLANEATCCAB28","PLANEATCCAB29","PLANEATCCAB30","PLANEATCCAB31","PLANEATCCAB32","PLANEATCCAB33","PLANEATCCAB34","PLANEATCCAB35","PLANEATCCAB36","PLANEATCCAB37","PLANEATCCAB38","PLANEATCCAB39","PLANEATCCAB40","PLANEATCCAB41","PLANEATCCAB42","PLANEATCCAB43","PLANEATCCAB44","PLANEATCCAB45","PLANEATCCAB46","PLANEATCCAB47","PLANEATCCAB48","PLANEATCCAB49"};
char *atc_plane[]={"ATCPLANECAB0","ATCPLANECAB1","ATCPLANECAB2","ATCPLANECAB3","ATCPLANECAB4","ATCPLANECAB5","ATCPLANECAB6","ATCPLANECAB7","ATCPLANECAB8","ATCPLANECAB9","ATCPLANECAB10","ATCPLANECAB11","ATCPLANECAB12","ATCPLANECAB13","ATCPLANECAB14","ATCPLANECAB15","ATCPLANECAB16","ATCPLANECAB17","ATCPLANECAB18","ATCPLANECAB19","ATCPLANECAB20","ATCPLANECAB21","ATCPLANECAB22","ATCPLANECAB23","ATCPLANECAB24","ATCPLANECAB25","ATCPLANECAB26","ATCPLANECAB27","ATCPLANECAB28","ATCPLANECAB29","ATCPLANECAB30","ATCPLANECAB31","ATCPLANECAB32","ATCPLANECAB33","ATCPLANECAB34","ATCPLANECAB35","ATCPLANECAB36","ATCPLANECAB37","ATCPLANECAB38","ATCPLANECAB39","ATCPLANECAB40","ATCPLANECAB41","ATCPLANECAB42","ATCPLANECAB43","ATCPLANECAB44","ATCPLANECAB45","ATCPLANECAB46","ATCPLANECAB47","ATCPLANECAB48","ATCPLANECAB49"};