Subversion Repositories Projects

Rev

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

Rev 391 Rev 440
Line 33... Line 33...
33
struct sMotor
33
struct sMotor
34
{
34
{
35
    int Speed[12];
35
    int Speed[12];
36
};
36
};
Line -... Line 37...
-
 
37
 
-
 
38
struct MotorData
-
 
39
{
-
 
40
    int motor[16][4];
-
 
41
    string mixerName;
-
 
42
    int mixerVersion;
-
 
43
};
37
 
44
 
38
struct sMode
45
struct sMode
39
{
46
{
40
    int ID;
47
    int ID;
41
    int VERSION_MAJOR;
48
    int VERSION_MAJOR;
Line 63... Line 70...
63
    long Longitude;
70
    long Longitude;
64
    long Latitude;
71
    long Latitude;
65
    long Altitude;
72
    long Altitude;
66
};
73
};
Line 67... Line -...
67
 
-
 
68
struct sNaviString
-
 
69
{
-
 
70
    float Longitude;
-
 
71
    float Latitude;
-
 
72
    float Altitude;
-
 
73
};
-
 
74
 
74
 
75
struct sWayPoint
75
struct sWayPoint
76
{
76
{
77
    double Longitude;
77
    double Longitude;
78
    double Latitude;
78
    double Latitude;
79
    double Altitude;
79
    double Altitude;
80
    int Time;
80
    int Time;
Line -... Line 81...
-
 
81
};
-
 
82
 
-
 
83
/**
-
 
84
 * The KopterData class represents the current state of the MikroKopter.
-
 
85
 * It containes all data that was sent from the Mikrokopter
-
 
86
 */
-
 
87
class KopterData {
-
 
88
    public:
-
 
89
        sMode mode;
-
 
90
        sNaviData navi;
-
 
91
        sMotor motor;
-
 
92
        int analogData[MaxAnalog];
-
 
93
        // current LCD page
-
 
94
        int lcd_cur;
-
 
95
        //max count of LCD pages
-
 
96
        int lcd_max;
81
};
97
};
82
 
98