Rev 440 | 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 | |
449 | Brean | 8 | #include <stdint.h> |
9 | |||
307 | KeyOz | 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; |
||
250 | KeyOz | 17 | |
18 | |||
19 | typedef struct |
||
20 | { |
||
21 | GPS_Pos_t Position; // the gps position of the waypoint, see ubx.h for details |
||
22 | int16_t Heading; // orientation, future implementation |
||
23 | uint8_t ToleranceRadius; // in meters, if the MK is within that range around the target, then the next target is triggered |
||
24 | 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 |
||
25 | uint8_t Event_Flag; // future emplementation |
||
26 | uint8_t reserve[12]; // reserve |
||
27 | } __attribute__((packed)) Waypoint_t; |
||
28 | |||
307 | KeyOz | 29 | typedef struct |
30 | { |
||
31 | char Revision; |
||
32 | char Name[12]; |
||
33 | signed char Motor[16][4]; |
||
34 | } Mixer_t; |
||
35 | |||
250 | KeyOz | 36 | #endif // TYPEDEFS_H |