-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwaypoints.h
56 lines (38 loc) · 1.37 KB
/
waypoints.h
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
/************************************************************************/
/* */
/* P R O J E K T A V A L O N */
/* */
/* lakenavigation.h The Class to store navi-Infos */
/* */
/* Last Change 14.April 2009; Gion-Andri Büsser */
/* */
/************************************************************************/
#ifndef LAKENAVIGATION_H
#define LAKENAVIGATION_H
#include <DDXStore.h>
#include <DDXVariable.h>
#define AV_WYP_TYPE_BUOY 2
#define AV_WYP_TYPE_END 1
#define AV_WYP_TYPE_PASSBY 0
DDX_STORE_TYPE(WaypointStruct,
struct {
//heading to the following coordinates:
//
double heading; //in degrees
//coordinates:
int x; //meters
int y; //meters
//info to the type of waypoint:
int wyp_type;
int passed;
//general infos to the previous calculation:
double windspeed; //knots
double winddirection; //global winddirection (-180 to 180)
}
);
DDX_STORE_TYPE(WaypointData,
struct {
WaypointStruct Data[100]; //to store the consecutive waypoints in an array
}
);
#endif //lakenavigation.h