Subversion Repositories Projects

Rev

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

Rev 250 Rev 307
Line 1... Line 1...
1
#ifndef TYPEDEFS_H
1
#ifndef TYPEDEFS_H
2
#define TYPEDEFS_H
2
#define TYPEDEFS_H
Line -... Line 3...
-
 
3
 
-
 
4
#define INVALID 0x00
-
 
5
#define NEWDATA 0x01
-
 
6
#define PROCESSED       0x02
3
 
7
 
-
 
8
typedef struct
-
 
9
{
-
 
10
    int32_t Longitude;  // in 1E-7 deg
-
 
11
    int32_t Latitude;   // in 1E-7 deg
-
 
12
    int32_t Altitude;   // in mm
-
 
13
    uint8_t Status;    // validity of data
Line 4... Line -...
4
#ifdef _BETA_
-
 
5
 
-
 
6
    #define INVALID     0x00
-
 
7
    #define NEWDATA     0x01
-
 
8
    #define PROCESSED   0x02
-
 
9
 
-
 
10
    typedef struct
-
 
11
    {
-
 
12
        int32_t Longitude;  // in 1E-7 deg
-
 
13
        int32_t Latitude;   // in 1E-7 deg
-
 
14
        int32_t Altitude;   // in mm
-
 
15
        uint8_t Status;    // validity of data
-
 
16
    } __attribute__((packed)) GPS_Pos_t;
-
 
17
 
-
 
18
#else
-
 
19
 
-
 
20
    typedef enum
-
 
21
    {
-
 
22
        INVALID     = 0,
-
 
23
        NEWDATA     = 1,
-
 
24
        PROCESSED   = 2
-
 
25
    } Status_t;
-
 
26
 
-
 
27
    typedef struct
-
 
28
    {
-
 
29
        int32_t Longitude;  // in 1E-7 deg
-
 
30
        int32_t Latitude;   // in 1E-7 deg
-
 
31
        int32_t Altitude;   // in mm
-
 
32
        Status_t Status;    // validity of data
-
 
Line 33... Line 14...
33
    } __attribute__((packed)) GPS_Pos_t;
14
} __attribute__((packed)) GPS_Pos_t;
34
#endif
15
 
35
 
16
 
36
typedef struct
17
typedef struct
Line 41... Line 22...
41
    uint8_t   HoldTime;          // in seconds, if the was once in the tolerance area around a WP, this time defies the delay before the next WP is triggered
22
    uint8_t   HoldTime;          // in seconds, if the was once in the tolerance area around a WP, this time defies the delay before the next WP is triggered
42
    uint8_t   Event_Flag;        // future emplementation
23
    uint8_t   Event_Flag;        // future emplementation
43
    uint8_t   reserve[12];       // reserve
24
    uint8_t   reserve[12];       // reserve
44
} __attribute__((packed)) Waypoint_t;
25
} __attribute__((packed)) Waypoint_t;
Line -... Line 26...
-
 
26
 
-
 
27
typedef struct
-
 
28
  {
-
 
29
    char Revision;
-
 
30
    char Name[12];
-
 
31
    signed char Motor[16][4];
-
 
32
  } Mixer_t;
45
 
33