Rev 440 | Rev 449 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 440 | Rev 442 | ||
---|---|---|---|
Line 7... | Line 7... | ||
7 | /** |
7 | /** |
8 | * This file contains informations and configurations from the Mikrokopter |
8 | * This file contains informations and configurations from the Mikrokopter |
9 | */ |
9 | */ |
Line 10... | Line 10... | ||
10 | 10 | ||
11 | // version information for the serial connection |
11 | // version information for the serial connection |
12 | static const int VERSION_SERIAL_MAJOR = 10; |
12 | #define VERSION_SERIAL_MAJOR 10 |
Line 13... | Line 13... | ||
13 | static const int VERSION_SERIAL_MINOR = 0; |
13 | #define VERSION_SERIAL_MINOR 0 |
14 | 14 | ||
15 | // Basis-Adresses for different Hardware components |
15 | // Basis-Adresses for different hardware components |
16 | static const int ADDRESS_ALL = 0; |
16 | #define ADDRESS_ALL 0 |
17 | static const int ADDRESS_FC = 1; |
17 | #define ADDRESS_FC 1 |
- | 18 | #define ADDRESS_NC 2 |
|
- | 19 | #define ADDRESS_MK3MAG 3 |
|
- | 20 | ||
Line 18... | Line 21... | ||
18 | static const int ADDRESS_NC = 2; |
21 | //maximum amount of motors |
19 | static const int ADDRESS_MK3MAG = 3; |
22 | #define MAX_MOTORS 12 |
Line 20... | Line 23... | ||
20 | 23 | ||
Line 21... | Line 24... | ||
21 | // settings ID |
24 | // settings ID |
Line 22... | Line 25... | ||
22 | static const int SETTINGS_ID = 2; |
25 | #define SETTINGS_ID 2 |
23 | 26 | ||
Line 24... | Line 27... | ||
24 | static const string HardwareType[] = {"Default", "FlightCtrl", "NaviCtrl", "MK3Mag"}; |
27 | static const string HardwareType[] = {"Default", "FlightCtrl", "NaviCtrl", "MK3Mag"}; |
Line 25... | Line -... | ||
25 | - | ||
26 | static const int MaxTickerEvents = 5; |
- | |
27 | - | ||
28 | static const int MaxAnalog = 32; |
- | |
29 | static const int MaxPlot = 50000; |
- | |
30 | 28 | ||
31 | static const int MaxNaviPos = 2000; |
29 | static const int MaxTickerEvents = 5; |
- | 30 | ||
- | 31 | static const int MaxAnalog = 32; |
|
- | 32 | static const int MaxPlot = 50000; |
|
32 | 33 | ||
- | 34 | static const int MaxNaviPos = 2000; |
|
33 | struct sMotor |
35 | |
34 | { |
36 | struct sMotorData |
35 | int Speed[12]; |
37 | { |
Line 36... | Line 38... | ||
36 | }; |
38 | int mixer_gas[MAX_MOTORS]; |
37 | 39 | int mixer_nick[MAX_MOTORS]; |
|
38 | struct MotorData |
40 | int mixer_roll[MAX_MOTORS]; |
39 | { |
41 | int mixer_yaw[MAX_MOTORS]; |
40 | int motor[16][4]; |
42 | int desired_speed[MAX_MOTORS]; |
41 | string mixerName; |
43 | string mixer_name; |
42 | int mixerVersion; |
44 | int mixer_version; |
43 | }; |
45 | }; |
44 | 46 | ||
45 | struct sMode |
47 | struct sMode |
46 | { |
48 | { |
Line 47... | Line 49... | ||
47 | int ID; |
49 | int id; |
48 | int VERSION_MAJOR; |
50 | int version_major; |
49 | int VERSION_MINOR; |
51 | int version_minor; |
Line 86... | Line 88... | ||
86 | */ |
88 | */ |
87 | class KopterData { |
89 | class KopterData { |
88 | public: |
90 | public: |
89 | sMode mode; |
91 | sMode mode; |
90 | sNaviData navi; |
92 | sNaviData navi; |
91 | sMotor motor; |
93 | sMotorData motor; |
92 | int analogData[MaxAnalog]; |
94 | int analogData[MaxAnalog]; |
93 | // current LCD page |
95 | // current LCD page |
94 | int lcd_cur; |
96 | int lcd_cur; |
95 | //max count of LCD pages |
97 | //max count of LCD pages |
96 | int lcd_max; |
98 | int lcd_max; |