Rev 674 | Rev 750 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 674 | Rev 711 | ||
---|---|---|---|
1 | /*************************************************************************** |
1 | /*************************************************************************** |
2 | * Copyright (C) 2009 by Manuel Schrape * |
2 | * Copyright (C) 2009 by Manuel Schrape * |
3 | * manuel.schrape@gmx.de * |
3 | * manuel.schrape@gmx.de * |
4 | * * |
4 | * * |
5 | * This program is free software; you can redistribute it and/or modify * |
5 | * This program is free software; you can redistribute it and/or modify * |
6 | * it under the terms of the GNU General Public License as published by * |
6 | * it under the terms of the GNU General Public License as published by * |
7 | * the Free Software Foundation; either version 2 of the License. * |
7 | * the Free Software Foundation; either version 2 of the License. * |
8 | * * |
8 | * * |
9 | * This program is distributed in the hope that it will be useful, * |
9 | * This program is distributed in the hope that it will be useful, * |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
12 | * GNU General Public License for more details. * |
12 | * GNU General Public License for more details. * |
13 | * * |
13 | * * |
14 | * You should have received a copy of the GNU General Public License * |
14 | * You should have received a copy of the GNU General Public License * |
15 | * along with this program; if not, write to the * |
15 | * along with this program; if not, write to the * |
16 | * Free Software Foundation, Inc., * |
16 | * Free Software Foundation, Inc., * |
17 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
17 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
18 | ***************************************************************************/ |
18 | ***************************************************************************/ |
19 | #ifndef KOPTER_H |
19 | #ifndef KOPTER_H |
20 | #define KOPTER_H |
20 | #define KOPTER_H |
21 | 21 | ||
22 | #include <QString> |
22 | #include <QString> |
23 | #include <QRgb> |
- | |
24 | 23 | ||
25 | #include <stdint.h> |
24 | #include <stdint.h> |
26 | 25 | ||
27 | #ifdef _BETA_ |
26 | #ifdef _BETA_ |
28 | static const QString QA_HWVERSION = "FlightCtrl v0.76e & NaviCtrl v0.17e"; |
27 | static const QString QA_HWVERSION = "FlightCtrl v0.76e & NaviCtrl v0.17e"; |
29 | #else |
28 | #else |
30 | static const QString QA_HWVERSION = "FlightCtrl v0.76e & NaviCtrl v0.17e"; |
29 | static const QString QA_HWVERSION = "FlightCtrl v0.76e & NaviCtrl v0.17e"; |
31 | #endif |
30 | #endif |
32 | 31 | ||
33 | // Datenfeld-ID's |
32 | // Datenfeld-ID's |
34 | static const int DATA_VERSION = 1; |
33 | static const int DATA_VERSION = 1; |
35 | static const int DATA_READ_SETTINGS = 2; |
34 | static const int DATA_READ_SETTINGS = 2; |
36 | static const int DATA_WRITE_SETTINGS = 3; |
35 | static const int DATA_WRITE_SETTINGS = 3; |
37 | static const int DATA_READ_MIXER = 4; |
36 | static const int DATA_READ_MIXER = 4; |
38 | static const int DATA_WRITE_MIXER = 5; |
37 | static const int DATA_WRITE_MIXER = 5; |
39 | static const int DATA_READ_LABEL = 6; |
38 | static const int DATA_READ_LABEL = 6; |
40 | static const int DATA_WRITE_WAYPOINT = 7; |
39 | static const int DATA_WRITE_WAYPOINT = 7; |
41 | 40 | ||
42 | //static const |
41 | //static const |
43 | 42 | ||
44 | static const QString HardwareType[] = {"Default", "FlightCtrl", "NaviCtrl", "MK3Mag"}; |
43 | static const QString HardwareType[] = {"Default", "FlightCtrl", "NaviCtrl", "MK3Mag"}; |
45 | 44 | ||
46 | static const int MAX_DebugData = 32; |
45 | static const int MAX_DebugData = 32; |
47 | 46 | ||
48 | static const QString DEF_DebugNames[] = {"Integral Nick", "Integral Roll", "ACC Nick", "ACC Roll", "Gyro Gier", "Hoehen-Wert", "ACC Z", "GAS", "Kompass-Value", "Spannung", "Empfang", "Ersatzkompass", "Motor Vorne", "Motor Hinten", "Motor Links", "Motor Rechts", "Analog 16", "Distance", "OSD-Bar", "MK3Mag", "Servo", "Nick", "Roll", "Analog 23", "Analog 24", "Analog 25", "Analog 26", "Kalman Max", "Analog 28", "Kalman K", "GPS Nick", "GPS Roll"}; |
47 | static const QString DEF_DebugNames[] = {"Integral Nick", "Integral Roll", "ACC Nick", "ACC Roll", "Gyro Gier", "Hoehen-Wert", "ACC Z", "GAS", "Kompass-Value", "Spannung", "Empfang", "Ersatzkompass", "Motor Vorne", "Motor Hinten", "Motor Links", "Motor Rechts", "Analog 16", "Distance", "OSD-Bar", "MK3Mag", "Servo", "Nick", "Roll", "Analog 23", "Analog 24", "Analog 25", "Analog 26", "Kalman Max", "Analog 28", "Kalman K", "GPS Nick", "GPS Roll"}; |
49 | - | ||
50 | static const QRgb DEF_DebugColors[] = {0x00FF0000, 0x0000FF00, 0x00FFFF00, 0x000000FF, 0x00FF00FF, 0x0000FFFF, 0x00FFFFFF, 0x00660000, 0x00006600, 0x00666600, 0x00000066, 0x00660066, 0x000066, 0x00666666, 0x00990000, 0x00009900, 0x00999900, 0x00000099, 0x00990099, 0x00009999, 0x00999999, 0x00CC0000, 0x0000CC00, 0x00CCCC00, 0x000000CC, 0x00CC00CC, 0x0000CCCC, 0x00CCCCCC, 0x0066FF99, 0x009966FF, 0x00FF9966, 0x0099FF66}; |
- | |
51 | 48 | ||
52 | #endif // KOPTER_H |
49 | #endif // KOPTER_H |
53 | 50 |