Rev 250 | Rev 391 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
250 | KeyOz | 1 | #ifndef TYPEDEFS_H |
2 | #define TYPEDEFS_H |
||
3 | |||
307 | KeyOz | 4 | #define INVALID 0x00 |
5 | #define NEWDATA 0x01 |
||
6 | #define PROCESSED 0x02 |
||
250 | KeyOz | 7 | |
307 | KeyOz | 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 |
||
14 | } __attribute__((packed)) GPS_Pos_t; |
||
250 | KeyOz | 15 | |
16 | |||
17 | typedef struct |
||
18 | { |
||
19 | GPS_Pos_t Position; // the gps position of the waypoint, see ubx.h for details |
||
20 | int16_t Heading; // orientation, future implementation |
||
21 | uint8_t ToleranceRadius; // in meters, if the MK is within that range around the target, then the next target 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 |
||
23 | uint8_t Event_Flag; // future emplementation |
||
24 | uint8_t reserve[12]; // reserve |
||
25 | } __attribute__((packed)) Waypoint_t; |
||
26 | |||
307 | KeyOz | 27 | typedef struct |
28 | { |
||
29 | char Revision; |
||
30 | char Name[12]; |
||
31 | signed char Motor[16][4]; |
||
32 | } Mixer_t; |
||
33 | |||
250 | KeyOz | 34 | #endif // TYPEDEFS_H |