Rev 250 | Go to most recent revision | Show entire file | Regard 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 3... | Line -... | ||
3 | - | ||
4 | #ifdef _BETA_ |
- | |
5 | 3 | ||
6 | #define INVALID 0x00 |
4 | #define INVALID 0x00 |
7 | #define NEWDATA 0x01 |
5 | #define NEWDATA 0x01 |
Line 8... | Line 6... | ||
8 | #define PROCESSED 0x02 |
6 | #define PROCESSED 0x02 |
Line 13... | Line 11... | ||
13 | int32_t Latitude; // in 1E-7 deg |
11 | int32_t Latitude; // in 1E-7 deg |
14 | int32_t Altitude; // in mm |
12 | int32_t Altitude; // in mm |
15 | uint8_t Status; // validity of data |
13 | uint8_t Status; // validity of data |
16 | } __attribute__((packed)) GPS_Pos_t; |
14 | } __attribute__((packed)) GPS_Pos_t; |
Line 17... | Line -... | ||
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; |
- | |
Line 34... | Line 15... | ||
34 | #endif |
15 | |
35 | 16 | ||
36 | typedef struct |
17 | typedef struct |
37 | { |
18 | { |
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 |