Rev 2052 | Rev 2058 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2052 | Rev 2053 | ||
---|---|---|---|
Line 116... | Line 116... | ||
116 | * Update the variables indicating stick position from the sum of R/C, GPS and external control |
116 | * Update the variables indicating stick position from the sum of R/C, GPS and external control |
117 | * and whatever other controls we invented in the meantime... |
117 | * and whatever other controls we invented in the meantime... |
118 | * Update variables. |
118 | * Update variables. |
119 | * Decode commands but do not execute them. |
119 | * Decode commands but do not execute them. |
120 | */ |
120 | */ |
121 | int16_t tempPRTY[4]; |
- | |
Line 122... | Line 121... | ||
122 | 121 | ||
- | 122 | void controlMixer_periodicTask(void) { |
|
- | 123 | int16_t tempPRTY[4] = { 0, 0, 0, 0 }; |
|
123 | void controlMixer_periodicTask(void) { |
124 | |
124 | // Decode commands. |
125 | // Decode commands. |
125 | uint8_t rcCommand = (RC_getSignalQuality() >= SIGNAL_OK) ? RC_getCommand() |
126 | uint8_t rcCommand = (RC_getSignalQuality() >= SIGNAL_OK) ? RC_getCommand() |
126 | : COMMAND_NONE; |
127 | : COMMAND_NONE; |
127 | uint8_t ecCommand = (EC_getSignalQuality() >= SIGNAL_OK) ? EC_getCommand() |
128 | uint8_t ecCommand = (EC_getSignalQuality() >= SIGNAL_OK) ? EC_getCommand() |