Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1664 pj 1
#define _PLANE_HEADER_
2
 
3
#ifndef _CONST_
4
#include "constants.h"
5
#endif
6
 
7
#ifndef _INPUT_
8
#include "input.h"
9
#endif
10
 
11
#ifndef _ATCSIM_HEADER_
12
#include "atcsim.h"
13
#endif
14
 
15
#include <kernel/kern.h>   //include the SHARK kernel header
16
#include <drivers/glib.h>  //include the graphics library
17
#include <drivers/keyb.h>  //include the keyboard library
18
#include <semaphore.h>     //include the semaphore library
19
#include <stdlib.h>                //include the standard library
20
#include <math.h>          //include the math library for random
21
#include <string.h>
22
#include <modules/hartport.h>
23
 
24
int STARTSIM =-1;
25
 
26
double  tick = 1.0;             /* system tick = 1 ms           */
27
 
28
int  number_of_planes=0;
29
 
30
PID pid[MAX_PLANES],pid2;
31
PID disp;
32
extern sem_t mut_aeroplane[MAX_PLANES];
33
extern sem_t graphics_mutex;   //graphics mutex
34
extern airport airports[NUM_OF_AIRPORTS];
35
extern aeroplane_model_info planeinfo[NUM_OF_AEROPLANE_MODELS];
36
aeroplane aeroplanes[MAX_PLANES];
37
atcplanecab atcplanecabmsg[MAX_PLANES];
38
 
39
/* useful colors... */
40
extern int white;
41
extern int black;
42
extern int red;
43
extern int gray;
44
extern int green;
45
extern int blue;
46
 
47
extern PI_mutexattr_t a;
48
extern mutex_t mut_STARTSIM;
49
extern mutex_t mut_number_of_planes;
50
 
51
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"};
52
 
53
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"};