Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
279 KeyOz 1
#ifndef TYPEDEFS_H
2
#define TYPEDEFS_H
3
 
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
33
    } __attribute__((packed)) GPS_Pos_t;
34
#endif
35
 
36
typedef struct
37
{
38
    GPS_Pos_t Position;          // the gps position of the waypoint, see ubx.h for details
39
    int16_t   Heading;           // orientation, future implementation
40
    uint8_t   ToleranceRadius;   // in meters, if the MK is within that range around the target, then the next target is triggered
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
42
    uint8_t   Event_Flag;        // future emplementation
43
    uint8_t   reserve[12];       // reserve
44
} __attribute__((packed)) Waypoint_t;
45
 
46
#endif // TYPEDEFS_H