Rev 2109 | Rev 2116 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2109 | Rev 2110 | ||
---|---|---|---|
Line 19... | Line 19... | ||
19 | #define CH_AILERONS 1 |
19 | #define CH_AILERONS 1 |
20 | #define CH_THROTTLE 2 |
20 | #define CH_THROTTLE 2 |
21 | #define CH_RUDDER 3 |
21 | #define CH_RUDDER 3 |
22 | #define CH_MODESWITCH 4 |
22 | #define CH_MODESWITCH 4 |
23 | #define CH_POTS 4 |
23 | #define CH_POTS 4 |
24 | #define POT_OFFSET 128 |
- | |
Line 25... | Line -... | ||
25 | - | ||
- | 24 | ||
26 | /* |
25 | // These are a little individual for differnt R/C systems... trim for zero channel readings at zero |
27 | int16_t RC_getPitch (void); |
26 | // stick, and trim VARIABLE_OFFSET for full variable range 0..255. |
28 | int16_t RC_getYaw (void); |
27 | #define VARIABLE_OFFSET 128 |
29 | int16_t RC_getRoll (void); |
28 | #define RC_TRIM 23 |
30 | uint16_t RC_getThrottle (void); |
29 | // Set this for a full stick range of about -1024..1024. |
31 | uint8_t RC_hasNewRCData (void); |
- | |
Line 32... | Line 30... | ||
32 | */ |
30 | #define RC_SCALING 2 |
33 | 31 | ||
34 | // void RC_periodicTask(void); |
32 | // void RC_periodicTask(void); |
35 | void RC_periodicTaskAndPRYT(int16_t* PRYT); |
33 | void RC_periodicTaskAndPRYT(int16_t* PRYT); |