Rev 2099 | Rev 2103 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2099 | Rev 2102 | ||
---|---|---|---|
Line 94... | Line 94... | ||
94 | 94 | ||
95 | uint8_t controlMixer_getSignalQuality(void); |
95 | uint8_t controlMixer_getSignalQuality(void); |
Line 96... | Line 96... | ||
96 | extern uint8_t controlMixer_didReceiveSignal; |
96 | extern uint8_t controlMixer_didReceiveSignal; |
97 | - | ||
98 | /* |
- | |
99 | * The controls operate in [-1024, 1024] just about. |
- | |
100 | * Throttle is [0..255] just about. |
- | |
101 | */ |
- | |
102 | // Scale controls to 1 byte: |
- | |
103 | #define CONTROL_SCALING (1024/256) |
- | |
104 | - | ||
105 | // Scale throttle levels to byte: |
- | |
106 | #define MOTOR_SCALING (1024/256) |
- | |
107 | 97 | ||
108 | /* |
98 | /* |
109 | * Gets the argument for the current command (a number). |
99 | * Gets the argument for the current command (a number). |
110 | * |
100 | * |
111 | * Stick position to argument values (for stick control): |
101 | * Stick position to argument values (for stick control): |