Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
391 Brean 1
#ifndef COPTER_H
2
#define COPTER_H
3
#include <string>
4
 
5
using namespace std;
6
 
7
/**
8
 * This file contains informations and configurations from the Mikrokopter
9
 */
10
 
11
// version information for the serial connection
12
static const int VERSION_SERIAL_MAJOR = 10;
13
static const int VERSION_SERIAL_MINOR = 0;
14
 
15
// Basis-Adresses for different Hardware components
16
static const int ADDRESS_ALL    = 0;
17
static const int ADDRESS_FC     = 1;
18
static const int ADDRESS_NC     = 2;
19
static const int ADDRESS_MK3MAG = 3;
20
 
21
// settings ID
22
static const int SETTINGS_ID = 2;
23
 
24
static const string HardwareType[] = {"Default", "FlightCtrl", "NaviCtrl", "MK3Mag"};
25
 
26
static const int MaxTickerEvents = 5;
27
 
28
static const int MaxAnalog    = 32;
29
static const int MaxPlot      = 50000;
30
 
31
static const int MaxNaviPos   = 2000;
32
 
33
struct sMotor
34
{
35
    int Speed[12];
36
};
37
 
38
struct sMode
39
{
40
    int ID;
41
    int VERSION_MAJOR;
42
    int VERSION_MINOR;
43
    int VERSION_PATCH;
44
    int VERSION_SERIAL_MAJOR;
45
    int VERSION_SERIAL_MINOR;
46
    string Hardware;
47
    string Version;
48
};
49
 
50
struct sGPS_Pos
51
{
52
    long Longitude;
53
    long Latitude;
54
    long Altitude;
55
};
56
 
57
struct sNaviData
58
{
59
    sGPS_Pos Current;
60
    sGPS_Pos Target;
61
    sGPS_Pos Home;
62
 
63
    long Longitude;
64
    long Latitude;
65
    long Altitude;
66
};
67
 
68
struct sNaviString
69
{
70
    float Longitude;
71
    float Latitude;
72
    float Altitude;
73
};
74
 
75
struct sWayPoint
76
{
77
    double Longitude;
78
    double Latitude;
79
    double Altitude;
80
    int Time;
81
};
82
 
83
#endif