-
Notifications
You must be signed in to change notification settings - Fork 0
/
gpxlog.h
52 lines (41 loc) · 1.14 KB
/
gpxlog.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
/*
X-Plane Plugin SDK
Copyright (C) Sandy Barbour and Ben Supnik
---------------------------------------------------------------------------
gpxlog.h
*/
#ifndef GPXLOG_H
#define GPXLOG_H
#include <inttypes.h>
#include "XPLMDataAccess.h"
#include "XPLMMenus.h"
// Number of seconds to delay before checking position
static const float GPXLOG_INTERVAL = 1.0;
// Status of logging. OFF or ON
enum gpxlog_status {GPXLOG_OFF, GPXLOG_ON};
// Data type for compatibility with GPXLOG.DLL.
typedef uint32_t DWORD;
// Data type for compatibility with GPXLOG.DLL.
typedef uint16_t WORD;
PLUGIN_API int XPluginStart(char *, char *, char *);
PLUGIN_API void XPluginStop(void);
PLUGIN_API int XPluginEnable(void);
PLUGIN_API void XPluginDisable(void);
PLUGIN_API void XPluginReceiveMessage( XPLMPluginID, long, void *);
void MyMenuHandlerCallback(void *, void *);
float MyFlightLoopCallback(float, float, int, void *);
// -------------------
struct geopos {
time_t t;
double lat;
double lon;
double alt;
double hdg;
double gsp;
int psd;
int spd;
};
void get_geopos(geopos&);
void gpxlog_stop(void);
void gpxlog_start(void);
#endif