-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfms.h
More file actions
64 lines (49 loc) · 895 Bytes
/
fms.h
File metadata and controls
64 lines (49 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef FMS_H
#define FMS_H
#define r 6378.388
typedef struct Coordinates
{
int CoordDeg;
int CoordMin;
int CoordSec;
}Coordinates;
typedef struct Time
{
unsigned char Hours[8];
unsigned char Minutes[8];
}Time;
typedef struct Airport
{
char icao[5];
char iata[4];
Coordinates pCoordLat;
Coordinates pCoordLon;
float hAMSL;
}Airport;
typedef struct FlightPath
{
char pathName[256];
Airport *pDepAirport;
Airport *pArrAirport;
Time DepTime;
Time ArrTime;
}FlightPath;
typedef struct Airplane
{
char AirplaneName[256];
char AirVehReg[256];
FlightPath *pFlightPath;
unsigned int cntFlightPath;
}Airplane;
typedef struct Airline
{
char AirlineName[256];
Airplane *pAirplane;
unsigned int cntAirplane;
}Airline;
typedef struct FMS
{
Airline *pAirline;
unsigned int cntAirline;
}FMS;
#endif