Rev 1612 | Rev 1821 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1612 | Rev 1775 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | 4 | ||
Line 5... | Line 5... | ||
5 | #include<inttypes.h> |
5 | #include<inttypes.h> |
6 | 6 | ||
7 | typedef struct { |
7 | typedef struct { |
8 | uint8_t digital[2]; |
8 | uint8_t digital[2]; |
9 | uint8_t eemoteButtons; |
9 | uint8_t remoteButtons; |
10 | int8_t pitch; |
10 | int8_t pitch; |
11 | int8_t roll; |
11 | int8_t roll; |
12 | int8_t yaw; |
12 | int8_t yaw; |
13 | uint8_t throttle; |
13 | uint8_t throttle; |
14 | int8_t height; |
14 | int8_t height; |
15 | uint8_t free; |
15 | uint8_t free; // Let's use that for commands now. |
16 | uint8_t frame; |
16 | uint8_t frame; |
Line 17... | Line 17... | ||
17 | uint8_t config; |
17 | uint8_t config; // Let's use that for arguemnts. |
18 | } __attribute__((packed)) ExternalControl_t; |
18 | } __attribute__((packed)) ExternalControl_t; |