Rev 2048 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2048 | Rev 2189 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | #include<inttypes.h> |
5 | #include<inttypes.h> |
Line 6... | Line 6... | ||
6 | 6 | ||
7 | typedef struct { |
7 | typedef struct { |
8 | uint8_t digital[2]; |
8 | uint8_t digital[2]; |
9 | uint8_t remoteButtons; |
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; // Let's use that for commands now. |
15 | uint8_t command; // Let's use that for commands now. |
16 | uint8_t frame; |
16 | uint8_t frame; |
17 | uint8_t config; // Let's use that for arguemnts. |
17 | uint8_t argument; // Let's use that for arguemnts. |
Line 18... | Line 18... | ||
18 | }__attribute__((packed)) ExternalControl_t; |
18 | }__attribute__((packed)) ExternalControl_t; |
19 | 19 | ||
Line 20... | Line 20... | ||
20 | extern ExternalControl_t externalControl; |
20 | extern ExternalControl_t externalControl; |
21 | extern uint8_t externalControlActive; |
21 | extern volatile uint8_t externalControlActive; |
22 | 22 | ||
23 | void EC_periodicTaskAndPRTY(int16_t* PRTY); |
23 | void EC_periodicTaskAndRPTY(int16_t* RPTY); |
24 | uint8_t EC_getArgument(void); |
24 | uint8_t EC_getArgument(void); |
25 | uint8_t EC_getCommand(void); |
25 | uint8_t EC_getCommand(void); |