Subversion Repositories Projects

Rev

Rev 442 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 442 Rev 449
Line 1... Line 1...
1
#ifndef COPTER_H
1
#ifndef COPTER_H
2
#define COPTER_H
2
#define COPTER_H
3
#include <string>
-
 
4
 
-
 
5
using namespace std;
-
 
Line 6... Line 3...
6
 
3
 
7
/**
4
/**
8
 * This file contains informations and configurations from the Mikrokopter
5
 * This file contains informations and configurations from the Mikrokopter
Line -... Line 6...
-
 
6
 */
-
 
7
 
9
 */
8
#define MAX_DATA_SIZE 150
10
 
9
 
11
// version information for the serial connection
10
// version information for the serial connection
Line 12... Line 11...
12
#define VERSION_SERIAL_MAJOR 10
11
#define VERSION_SERIAL_MAJOR 10
Line 22... Line 21...
22
#define MAX_MOTORS 12
21
#define MAX_MOTORS 12
Line 23... Line 22...
23
 
22
 
24
// settings ID
23
// settings ID
Line 25... Line 24...
25
#define SETTINGS_ID 2
24
#define SETTINGS_ID 2
Line 26... Line 25...
26
 
25
 
Line 27... Line 26...
27
static const string HardwareType[] = {"Default", "FlightCtrl", "NaviCtrl", "MK3Mag"};
26
static const char * HardwareType[] = {"Default", "FlightCtrl", "NaviCtrl", "MK3Mag"};
28
 
27
 
Line 38... Line 37...
38
    int mixer_gas[MAX_MOTORS];
37
    int mixer_gas[MAX_MOTORS];
39
    int mixer_nick[MAX_MOTORS];
38
    int mixer_nick[MAX_MOTORS];
40
    int mixer_roll[MAX_MOTORS];
39
    int mixer_roll[MAX_MOTORS];
41
    int mixer_yaw[MAX_MOTORS];
40
    int mixer_yaw[MAX_MOTORS];
42
    int desired_speed[MAX_MOTORS];
41
    int desired_speed[MAX_MOTORS];
43
    string mixer_name;
42
    char * mixer_name;
44
    int mixer_version;
43
    int mixer_version;
45
};
44
};
Line 46... Line 45...
46
 
45
 
47
struct sMode
46
struct sMode
Line 50... Line 49...
50
    int version_major;
49
    int version_major;
51
    int version_minor;
50
    int version_minor;
52
    int version_patch;
51
    int version_patch;
53
    int version_serial_major;
52
    int version_serial_major;
54
    int version_serial_minor;
53
    int version_serial_minor;
55
    string hardware;
54
    char * hardware;
56
    string version;
55
    char * version;
57
};
56
};
Line 58... Line 57...
58
 
57
 
59
struct sGPS_Pos
58
struct sGPS_Pos
60
{
59
{